Page 1 of 2

VST Effects 8192 samples delay

Posted: Wed Oct 31, 2012 8:48 pm
by TheRoofInhabitant
Hello, everybody.
I use very often VST effects in Audacity, and each time I use them I notice that after applying an effect the first 8192 samples are zero, the audio is delayed by this value while the last 8192 samples are cutted out. Is there a way to prevent this?

Re: VST Effects 8192 samples delay

Posted: Wed Oct 31, 2012 9:02 pm
by steve
2 choices come to mind:
1) Find another effect that does not do that.
2) Add some padding (just a bit of silence would do) before applying the effect, then trim the track to the correct size after applying the effect.

Re: VST Effects 8192 samples delay

Posted: Wed Oct 31, 2012 9:47 pm
by TheRoofInhabitant
I already do that but I use the effect several times for few seconds, so it's really annoying.

Re: VST Effects 8192 samples delay

Posted: Wed Oct 31, 2012 10:33 pm
by steve
Is this with all VST effects, or just with some VST effects?

Which version of Audacity are you using? (Look in "Help > About Audacity")
Which version of Windows?
Which VST effects are you using?

Re: VST Effects 8192 samples delay

Posted: Wed Oct 31, 2012 10:49 pm
by TheRoofInhabitant
This is with all VST Effects, and not just with this version of Audacity, it always did it.
Anyway I'm using Audacity 2.0.1 on Windows XP Professional (x64), and I'm using several VST effects, the ones I use the most are Antares Audio ones (Autotune and all the tools) and some freeware VST as kn0ck0ut, it depends on what i have to do.

Re: VST Effects 8192 samples delay

Posted: Wed Oct 31, 2012 11:06 pm
by steve
I have just tried several VST effects on a Windows XP SP3 (32 bit) machine and I don't see this problem. One effect was out by 1 sample. The rest produced the exact correct result.

Try some of these (free) VST plug-ins and see if they have the same problem: http://antress.blogspot.co.uk/

Re: VST Effects 8192 samples delay

Posted: Thu Nov 01, 2012 10:17 am
by TheRoofInhabitant
They work fine, I don't understand why this is happening, then...

Re: VST Effects 8192 samples delay

Posted: Fri Nov 02, 2012 3:43 am
by Gale Andrews
TheRoofInhabitant wrote:This is with all VST Effects, and not just with this version of Audacity, it always did it.
Anyway I'm using Audacity 2.0.1 on Windows XP Professional (x64), and I'm using several VST effects, the ones I use the most are Antares Audio ones (Autotune and all the tools) and some freeware VST as kn0ck0ut, it depends on what i have to do.
AutoTune isn't fully supported by Audacity in my opinion (Audacity has no MIDI control).

I tested kn0ck0ut on Windows 7 and it has the same output delay in Wavosaur and Goldwave (using a DX wrapper) as in Audacity - but only when "extract centre" is OFF (the "vocal removal" option). The only difference is that in Audacity the right-hand (unprocessed) channel is silenced but is left "as is" in Wavosaur and Goldwave. The README with the plug-in has nothing to say about this, but I assume it is not what the author intended.


Gale

Re: VST Effects 8192 samples delay

Posted: Fri Nov 02, 2012 4:06 am
by steve
I'm not an expert on VST effects, but as I understand it the issue is to do with how the effects handle audio buffers. To provide smooth real-time output the plug-in needs to pre-load data into an audio buffer (typically between 512 and 8192 samples). In the absence of the host program reporting its real time latency capability it is not surprising that an effect may default to the largest buffer size. The buffer provides "look ahead" for the real-time processing at the expense of output latency. Audacity does not support real time processing so it probably does not have any mechanism for dealing with buffer delay, relying instead on the plug-in to return bit-for-bit data to write to disk. It would seem that the Antress "Modern" plug-ins do this, but AutoTune and kn0ck0ut don't.

Re: VST Effects 8192 samples delay

Posted: Fri Nov 02, 2012 4:33 am
by Gale Andrews
steve wrote:I'm not an expert on VST effects, but as I understand it the issue is to do with how the effects handle audio buffers. To provide smooth real-time output the plug-in needs to pre-load data into an audio buffer (typically between 512 and 8192 samples). In the absence of the host program reporting its real time latency capability it is not surprising that an effect may default to the largest buffer size. The buffer provides "look ahead" for the real-time processing at the expense of output latency. Audacity does not support real time processing so it probably does not have any mechanism for dealing with buffer delay, relying instead on the plug-in to return bit-for-bit data to write to disk. It would seem that the Antress "Modern" plug-ins do this, but AutoTune and kn0ck0ut don't.
Thanks, Steve. This could be the reason, as indeed I don't think Audacity has delay compensation. See here:
http://audacity.238276.n2.nabble.com/Fw ... 67652.html .

Goldwave and Wavosaur both have real-time effect preview (but AFAIK cannot for example apply effects while recording). If absence of delay compensation is the cause of the Kn0ck0ut issue, I am a bit surprised Wavosaur does not have this.


Gale