Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Measure the roundtrip time of MIDI messages
Shell C Makefile Groff
Branch: master

add links

latest commit 6fd092687c
@koppi authored

README.md

alsa-midi-latency-test travis

alsa-midi-latency-test measures the roundtrip time of a MIDI message in the alsa subsystem of the linux kernel using a high precision timer. It calculates the worst case roundtrip time of all sent MIDI messages and displays a histogram of the rountrip time jitter:

alsa-midi-latency-test

Install from source code

git clone https://github.com/koppi/alsa-midi-latency-test.git
cd alsa-midi-latency-test/

The following packages are required to build alsa-midi-latency-test:

sudo apt-get install debhelper autotools-dev automake libasound2-dev

Compile alsa-midi-latency-test as follows:

sh autogen.sh
./configure
make

Install alsa-midi-latency-test as follows:

sudo make install

or build and install an Ubuntu / Debian package:

debuild
sudo dpkg -i ../alsa-midi-latency-test*.deb

Run alsa-midi-latency-test

  • $ alsa-midi-latency-test -l

    Lists available MIDI input and output ports.

  • $ alsa-midi-latency-test -i [input port] -o [output port]

    This runs the benchmark with the given input and output port. Note, that the input and output ports have to be connected using a MIDI cable in the real hardware to loop the MIDI message back.

  • $ man alsa-midi-latency-test

    The man page contains documentation for all available command line switches.

Benchmark Results

Please share your results in the Wiki.

User Experiences - Archive

2015

2014

2013

2012

2011

2010

2009

2000

Definitions

See also

Thanks

  • to Arnout Engelen for initial testing and giving feedback.
  • to Clemens Ladisch for a number of fixes with the high precision timer and alsa midi event handling.

BUGS and AUTHORS

Please report bugs to the authors.

-- November, 2009, last updated August 2015.

Something went wrong with that request. Please try again.