[LAD] MIDI monitor

Ralf Mardorf ralf.mardorf at alice-dsl.net
Fri Oct 24 14:58:53 UTC 2008

Hi :)

I'm new to the list and I'm not a Linux audio developer. I was a coder
for C64 MIDI and audio, programming in Assembler, I have less knowledge
about C/C++.

Because I have to do some research, e.g. because of strange behaviour of
MTC, I need a MIDI monitor, that shows MIDI bytes instead of an
interpretation of the MIDI events, like it's done by gmidimonitor and

I just wish to have an application that is reading a timer and byte by byte, so that I can scroll through the MIDI bytes.

001 Is the MIDI client/port ready?
002 If so, get the TIME and the MIDI Byte and write both informations to
an array.
003 If there's pushed a key, jump to STOP
004 If not, go to START

A routine that shows the TIMER and MIDI Bytes in a list, that can be
scrolled, maybe simply by saving it as a file.txt.

It should look like this:

minutes:seconds:milliseconds MIDI-Byte

00:00:004 f0
00:00:005 0a
00:00:006 0f
00:00:007 05

Because I need to sync Linux to my Atari ST I was thinking of programming such a MIDI monitor for the Atari in GFA-BASIC and for Linux in X11-BASIC, that nearly is the same BASIC, but I don't know if there is a way to open ALSA MIDI clients/ports for the INP command.

As an alternative I guess I could try to compile and change this source code to my needs: http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2rawmidi_8c-example.html

I know that I have to delete the line numbers, but I don't know how to compile it and what header is needed to be included for using a timer and array.

I need the complete commands or a makefile including the links for the needed libs etc., to compile and link this source code.
Also the changed complete commands or a makefile when I changed the source code using a timer and array.

Or just the MIDI monitor I need.

I don't want to become a developer for Linux, I just want to do researches for bug reports by using a MIDI monitor.


Rosegarden can run as MTC master and sync a Yamaha RX21
Rosegarden can't sync the same way the Atari's Cubase 3.1
Ardour can run as master and sync an Atari Cubase

Another example where definitive is the need to see bytes, is to see if MIDI data is send by running status or not.

Can anybody help me to get such a MIDI monitor, maybe by simply writing me how to compile the rwamidi example?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20081024/39450184/attachment.pgp>

More information about the Linux-audio-dev mailing list