Re: [LAD] Tests directly routing pc's midi-in to midi-out (was: Re: ALSA MIDI latency test results are far away from reality)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ralf Mardorf <ralf.mardorf@...>
Cc: Linux-Audio-Dev <linux-audio-dev@...>
Date: Wednesday, July 14, 2010 - 7:37 pm

On Wed, Jul 14, 2010 at 08:09:29PM +0200, Ralf Mardorf wrote:

OK, if that's causing noticable latency, there's something odd going on - and
we should first see if we can fix this: layering more stuff (jack, a2j,
fluidsynth, qtractor etc) on top of this (apparently) weak foundation will
just confuse us.

Before finding out how to prevent 'noticable latency' for this use case, I'd
say it would be good to try and quantify this for a bit.

I took a MIDI Keyboard (m-audio keystation) and a Synth (Yamaha VL70-m),
connected them to each other directly, put a mic close to the keyboard, and
hit a key repeatedly with my nail.

The recording has a nice plastic 'tick' of me hitting the key with my nail,
and the softsynth sound starting a fraction of a second later. Looking with
audacity, the total nail-to-synthsound latency is about 20-26ms.

Then I plugged the synth into my USB audio/MIDI card (Edirol UA-25EX) and
connected the MIDI keyboard to my laptop (directly with USB).

Did the same test again, recorded it, and the nail-to-synthsound latency now
seems to be rougly in the 23-26ms range.

To *me*, this doesn't really seem to be a very noticable/problematic latency -
but I'm not a keyboard player, I might not be so sensitive. I remember playing
a MIDI wind controller at different latencies (I'm a saxophone player) - I'm
not sure if I could *hear* it, but I could sure *feel* the difference.

The wavs are at http://arnout.engelen.eu/files/dev/linuxmusicians/latencytests/
for your enjoyment. Such beautiful music!

It might be interesting if you could make similar recordings - see what kind
of latency gets unacceptable, if the latency is mostly constant or very
jittery, if it's much bigger than here or that you're just more sensitive than
me, etc.

Arnout

(the laptop used in these tests is a 2ghz single-core debian machine without
much tuning - the kernel doesn't even have preemption enabled, let alone the
-rt patch)
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Clemens Ladisch, (Thu Jul 15, 6:26 am)
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Arnout Engelen, (Thu Jul 15, 9:48 am)
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Ralf Mardorf, (Thu Jul 15, 10:18 am)
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Clemens Ladisch, (Thu Jul 15, 10:55 am)
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Ralf Mardorf, (Thu Jul 15, 11:08 am)
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Robin Gareus, (Thu Jul 15, 11:45 am)
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Clemens Ladisch, (Thu Jul 15, 2:31 pm)
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Ralf Mardorf, (Thu Jul 15, 12:45 pm)
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Ralf Mardorf, (Thu Jul 15, 10:49 am)
Re: [LAD] Tests directly routing pc's midi-in to midi-out (w..., Arnout Engelen, (Wed Jul 14, 7:37 pm)
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Robin Gareus, (Fri Jul 16, 11:26 am)
Re: [LAD] Tests directly routing pc's midi-in to midi-out, Ralf Mardorf, (Fri Jul 16, 11:30 am)