Re: [Audacity-nyquist] Trying to build phase-shifter plug-in using (snd-tapv ....) with no luck.
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: <dav...@ya...> - 2009-06-27 21:20:33
|
Unfortunately, using (snd-tapv (snd-normalize s) ....) did not work. The results were the same as without the snd-normalize. Do you have any other suggestions? Also, Thanks, David Sky for the information on the len variable which is the number of samples in the selected sound. I did not know about that -- did I miss it in the Audacity-Nyquist manual or is it not in the manual yet? Dave Roger Dannenberg wrote: It looks to me like Audacity's version of SND-TAPV does not check the incoming sound for a scale factor, so in this case it will compute the wrong answer. I'm not sure why your fix works. In any case, the standalone nyquist shows a number of changes to the code, apparently to fix a bug. I think you can wrap the input modulation signal to SND-TAPV with SND-NORMALIZE, which just forces the multiplication of the scale factor, and that should work around the problem, which I bet is already fixed in the latest version Audacity under development. (What's with scale factors? Nyquist scales signals lazily by just attaching the scale factor to a data structure used to access the sound. Many times, scale factors can be "factored out" of the inner loops, which makes scaling, a very common operation with signals, free in many cases.) -Roger |