[LAU] audio latency question

andy baxter andy at earthsong.free-online.co.uk
Wed Mar 23 15:43:09 UTC 2011


> 1) it depends on the synth
>
Do you know what the case is with supercollider? E.g. if I were to 
forget about midi and just trigger sc synths directly from python using 
this wrapper: http://trac2.assembla.com/pkaudio/wiki/SuperCollider

> 2) with JACK MIDI, there is zero latency and zero jitter between two
> applications. with ALSA MIDI, latency can be up to a few msecs, but is
> generally on the order of tens of usecs. with ALSA, you don't have
> deterministic scheduling of the apps (in general) and that is the main
> source of the latency and jitter. in addition, the MIDI data arrives
> (via ALSA) in the wrong thread, so there is some delay involved in
> getting it injected into the synthesis (process()) thread without
> locks. with JACK, the MIDI data arrives in the right thread, with
> sample accurate timestamps.

Thanks - that's worth knowing.

Cheers.

andy :)


More information about the Linux-audio-user mailing list