PDC, midi & the master bus

UHE is now closed. For Technical Support from Ableton, please go here: http://www.ableton.com/support
Locked
Vance
Posts: 356
Joined: Mon Aug 30, 2004 10:35 am

PDC, midi & the master bus

Post by Vance » Fri Oct 21, 2005 10:09 am

This is related to a post I made in the feature request forum... I noticed on large projects with lots of plugins, there was a noticeable latency when playing VST synths with an external MIDI device...

I've played around a bit more & it turns out the latency only occurs when there are plugins on the master bus... plugins everywhere else do not result in MIDI latency for playing softsynths, but plugins on the master bus do...

Is there any way this can be resolved? Atm it appears latency for master bus plugins is not totally compensated...

Vance
Posts: 356
Joined: Mon Aug 30, 2004 10:35 am

Post by Vance » Wed Dec 07, 2005 10:36 am

***bump***

now that we're in 5.03 beta mode, it'd be really cool to see if this could be improved... it's really really limiting to have midi input delayed when there are VST plugins on the master bus, and to have this done away with would be more than rad... :)

Alex
Posts: 4006
Joined: Wed Apr 03, 2002 1:07 pm
Location: Ableton Headquarter

Post by Alex » Wed Dec 07, 2005 1:45 pm

Hi Vance,

I am not sure if I understand what you mean. Please correct me if I am wrong.

Assuming you have a Live set containing only a VSTi located in a MIDI track.
With an external MIDI device (like a keyboard for instance) you can play this VST. So far so good.

But when you add a VST to the master you get a delayed response. In this case the delay is caused by the VST because it is processing audio in buffers. So its output is at least delayed by the length of this buffer. This buffer size again can be setup in the "Plug-In" section within Live's preferences.


Is it that what you mean?

regards,
/Alex

Vance
Posts: 356
Joined: Mon Aug 30, 2004 10:35 am

Post by Vance » Thu Dec 08, 2005 7:04 am

Yes that's the kind of delay I'm talking about Alex... Is there any way to reduce it to zero? The delay also seems to be there even when the plugin is turned off...

Alex
Posts: 4006
Joined: Wed Apr 03, 2002 1:07 pm
Location: Ableton Headquarter

Post by Alex » Thu Dec 08, 2005 11:05 am

Hi Vance,

unfortunately there is no way to reduce this kind of latency to 0.
Look, in the above sample you have to deal with the following latencies.

1) The time needed from pressing up a key on your MIDI keyboard until it reaches the MIDI driver of your MIDI interface in the computer. This latency is really low, so actually we can ignore this one.

2) The processing time of the VSTi. This depends on the buffer size that is used for the Plug-In. This buffer size can be setup in the "Plug-In" section within Live's preferences. By default it is 128 samples.

3) The processing time of the VST in the master track. It is the same buffer size as for the VSTi

4) Finally the output latency of your audio interface. This depends on the buffer size of your audio interface which you can set up in the "Audio" section of Live's preferences.


So your only way to reduce the latencies is to make them a small as possible. When you go to the "Plug-In" section of Live's preferences and change the BufferSize between 32 (minimal value) and 4096 (maximal value) you should noticed a audible difference in response.
Same is valid for the buffer size of your audio interface.

regards,
/Alex

Vance
Posts: 356
Joined: Mon Aug 30, 2004 10:35 am

Post by Vance » Thu Dec 08, 2005 11:58 am

Thanks for the explanation Alex :)

I could've sworn I'd never noticed such a delay in other hosts but having just checked, sure enough they're there...

Would it be possible to allow plugins only to have the delay when they're turned on? At the moment plugins on the master bring a delay even when they're off (and therefore not processing anything)... if it's possible for turned-off plugins not to delay things in this way that'd be cool...

Alex
Posts: 4006
Joined: Wed Apr 03, 2002 1:07 pm
Location: Ableton Headquarter

Post by Alex » Thu Dec 08, 2005 2:30 pm

Hi Vance,
if it's possible for turned-off plugins not to delay things in this way that'd be cool...
I can understand that in some scenarios it would be ok but there are also scenarios where this would get out of sync. Switching off the plug-in in any track would then reduce the processing delay of this plug-in to 0.
So when having several tracks with several plug-ins and PDC enabled, switching on /off such a plug-in would each time change the sync of these tracks together, which is very probably not what you want.

regards,
/Alex
Last edited by Alex on Thu Dec 08, 2005 3:42 pm, edited 1 time in total.

icedsushi
Posts: 1652
Joined: Wed Jan 12, 2005 8:36 pm

Post by icedsushi » Thu Dec 08, 2005 3:36 pm

I love reading threads with a good solid explanation & answer such as this. :D

Thank you!

Locked