Reduce / identify latency in Linux sampler

You name it!
Post Reply
browny_amiga
Newbie
Posts: 14
Joined: Tue Apr 29, 2008 4:41 pm

Reduce / identify latency in Linux sampler

Post by browny_amiga » Tue Sep 11, 2012 7:43 pm

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

dakylla
User
Posts: 51
Joined: Wed Jan 14, 2009 11:08 am

Re: Reduce / identify latency in Linux sampler

Post by dakylla » Mon Sep 17, 2012 8:35 pm

hi man,

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

varpa
User
Posts: 63
Joined: Thu Dec 09, 2010 8:15 pm

Re: Reduce / identify latency in Linux sampler

Post by varpa » Thu Sep 20, 2012 11:34 pm

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.

browny_amiga
Newbie
Posts: 14
Joined: Tue Apr 29, 2008 4:41 pm

Re: Reduce / identify latency in Linux sampler

Post by browny_amiga » Mon Sep 24, 2012 10:10 pm

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

peastman
Newbie
Posts: 6
Joined: Mon May 25, 2020 7:44 pm

Re: Reduce / identify latency in Linux sampler

Post by peastman » Thu May 28, 2020 6:38 pm

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.

User avatar
cuse
Developer
Posts: 333
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: Reduce / identify latency in Linux sampler

Post by cuse » Fri Jun 05, 2020 3:08 pm

This thread was about JACK. Are you using LS on macOS with JACK?

peastman
Newbie
Posts: 6
Joined: Mon May 25, 2020 7:44 pm

Re: Reduce / identify latency in Linux sampler

Post by peastman » Sat Jun 20, 2020 1:10 am

No, CoreAudio.

peastman
Newbie
Posts: 6
Joined: Mon May 25, 2020 7:44 pm

Re: Reduce / identify latency in Linux sampler

Post by peastman » Sat Jun 20, 2020 7:03 pm

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.

User avatar
cuse
Developer
Posts: 333
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: Reduce / identify latency in Linux sampler

Post by cuse » Thu Jul 16, 2020 5:41 pm

Ok I see. That might be an explanation, because the SFZ engine is currently not maintained on the same level as the gig engine.

Rich Sewell
Newbie
Posts: 2
Joined: Sat Oct 03, 2020 5:36 am

Re: Reduce / identify latency in Linux sampler

Post by Rich Sewell » Sat Oct 03, 2020 5:41 am

I've been working on a sampler in Bela, which has super low latency by running real-time extensions (Bela.io) . I'm interested to see if anyone here has looked into running a version of linuxsampler on that platform (or beaglebone) ? I'm looking at adding some SFZ support for the sampler code that I have running on Bela.

-R

Post Reply