Re: [linux-audio-dev] Good MIDI library?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Good MIDI library?
From: Thomas Hudson (thudson_AT_cygnus.com)
Date: pe elo    27 1999 - 09:58:50 EDT


"David J. Topper" wrote:
> I'm looking for a simple / robust MIDI parser written in C to plug into
> an interface package I'm working on. I don't need something that does
> polling, I'm using GTK/GDK for that. So what I really need to be able
> to do is feed the thing some MIDI bytes, then have it tell me what they
> are (eg., NOTE_ON, NOTE_OFF, PITCH_BEND) and so forth.
>
Well, it's not in C, but I a class in C++ that could easily be
converted to C. It does exactly what you want. It handles all
midi messages including SysEx and SysCommon. It is loosely
based on the BeOS midikit.

Just hack off the OO ;-). Actually, just steal the parseMidi routine.
The start of the routine grabs the next available byte. Within this
routine you will see calls like:

SpraySystemExclusive(...)
SprayNoteOn(...)
etc.

These are the "delivery" routines for each parsed message.
Simply insert functions for the messages you are interested
in.

Thomas


midi-parser.tar.gz


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : pe maalis 10 2000 - 07:25:53 EST