Page 1 of 1

Reduce / identify latency in Linux sampler

Posted: Tue Sep 11, 2012 7:43 pm
by browny_amiga
Hi,

I have a M-Audio Keystation Pro 88 hooked up to a Linux system (Debian Squeeze) via USB and run Linux Sampler with a Bösendorfer B290 instrument. A friend played on the piano and told me that there is murderous high latency when playing. I have not noticed it, but problaby got used to it. I have noticed that in some ways, I enjoy playing on e-pianos much more, although they don't sound a third as good as my Bösendorfer Linux sampler duo.
Now I was wondering how to be able to measure latency, my mind is playing tricks on me when I play and sometimes I think I see the latency, sometimes I don't.
I also don't know where to start, as USB should not introduce any latency at all and neither should Jackd and Linux Sample. Where is the delay?

My friend told me that it seems to happen more when many voices are playing . I run this on a dual core 2.6 ghz system, with 8 GB of RAM and on a M-Audio 2496 Soundcard, which should be pretty high performance.

Since the Keystation Pro 88 does not have any instruments on board it self (no speakers, it is just a midi controler keyboard), there is no way to check it like that. Do you know any other ways? I am not currently using a real time kernel for Linux, would that help? But I figure the system should be fast enough for it.

Any pointers or ideas would be appreciated.

Markus

Re: Reduce / identify latency in Linux sampler

Posted: Mon Sep 17, 2012 8:35 pm
by dakylla
hi man,

what are your jack settings (how do you start jack)?

Re: Reduce / identify latency in Linux sampler

Posted: Thu Sep 20, 2012 11:34 pm
by varpa
From your description it is not clear you are using Jack (http:/ou /jackaudio.org/) which is a sound server for linux for professional audio work and which allows to set the latency (within the limit of your hardware). Generally, a latency below 10ms will not be noticable. The Ardour tutorial explains how to configure Jack: http://en.flossmanuals.net/ardour/ch015 ... on-ubuntu/ That example use QJackCtl which is a nice GUI interface to control Jack.

Re: Reduce / identify latency in Linux sampler

Posted: Mon Sep 24, 2012 10:10 pm
by browny_amiga
Hi,

I use
jackd version 0.118.0

via
qjackctl, which is the GUI that you mention.

the parameters that jackd is started are these:
/usr/bin/jackd -r -dalsa -dhw:0 -r44100 -p1024 -n2

Kernel is:
2.6.32-5-686-bigmem #1 SMP Sun May 6 04:39:05 UTC 2012 i686 GNU/Linux

Re: Reduce / identify latency in Linux sampler

Posted: Thu May 28, 2020 6:38 pm
by peastman
Sorry to resurrect an ancient thread, but was this ever resolved? I'm observing the same thing using the latest version on MacOS. The lag when playing notes is low enough that I can deal with it, but it's definitely perceptible. As a comparison I tried loading the same instrument in both LinuxSampler and Sforzando, and everything just feels more sluggish in LinuxSampler.

Re: Reduce / identify latency in Linux sampler

Posted: Fri Jun 05, 2020 3:08 pm
by cuse
This thread was about JACK. Are you using LS on macOS with JACK?

Re: Reduce / identify latency in Linux sampler

Posted: Sat Jun 20, 2020 1:10 am
by peastman
No, CoreAudio.

Re: Reduce / identify latency in Linux sampler

Posted: Sat Jun 20, 2020 7:03 pm
by peastman
One other observation that may be relevant: I only experience the latency when playing SFZ instruments, not when playing GIG instruments. So I think it's probably in the engine, not the interface.

Re: Reduce / identify latency in Linux sampler

Posted: Thu Jul 16, 2020 5:41 pm
by cuse
Ok I see. That might be an explanation, because the SFZ engine is currently not maintained on the same level as the gig engine.