Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Ilya Dikariev <dik_again@mail.ru>
Cc: alsa-devel@alsa-project.org
Subject: Re: M-Audio Midisport 2x2 Anniversary edition, latency	problem
Date: Wed, 29 Apr 2015 09:14:03 +0200	[thread overview]
Message-ID: <554084BB.1090304@ladisch.de> (raw)
In-Reply-To: <1430239699.153166263@f195.i.mail.ru>

Ilya Dikariev wrote:
>>>>> I bought a MIDI-interface von M-Audio (see subject), but there are
>>>>> strange things with it on my desktop (Arch, latest kernel). The
>>>>> latency is about 5 seconds.
>>>>
>>>> How are you measuring the latency?
>>>
>>> I measured it only with my feeling of time.
>>
>> What are the specific events between which there is an interval of
>> 5 seconds?
>
> Between I press any key on a MIDI-keyboard and I hear the sound from
> the timidity-daemon (or any other MIDI-reciever in a computer).

There are lots of components involved besides the USB/MIDI interface:
Timidity, any sound server (if you're using one), and the sound card's
drivers.

It is extremely unlikely that the USB/MIDI interface could introduce
latency, because the only way to do that would be to go to the extra
effort of storing the MIDI events in some buffer, and then transmitting
them later.

> the MIDI events from the Pitch-wheel on the keyboard arrives the MIDI-
> reciever immedietly (I saw it, when i tried to check out the output
> from the /dev/midi).

This proves that another component introduces the latency.

(Note: you could also use amidi or aseqdump to do these tests.)


How did you configure the audio output of Timidity?


Regards,
Clemens

  parent reply	other threads:[~2015-04-29  7:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-28  8:18 M-Audio Midisport 2x2 Anniversary edition, latency problem Ilya Dikariev
2015-04-28 13:30 ` Clemens Ladisch
     [not found]   ` <1430230406.500088555@f412.i.mail.ru>
2015-04-28 16:21     ` Clemens Ladisch
     [not found]       ` <1430239699.153166263@f195.i.mail.ru>
2015-04-29  7:14         ` Clemens Ladisch [this message]
2015-06-14 19:01           ` Olivier
2015-06-14 19:17             ` Clemens Ladisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=554084BB.1090304@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=dik_again@mail.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox