Hi thanks for the quick answer
> It seems impossible to send other midi events that note and
> control events - tempo events are meta events and require
> more byte, however in PortMidi the event is just a typedef
> of long. Is there a way?
PortMidi is not intended to model higher-level abstractions such as tempo,
tracks, and sequences. You need to translate beats to real time and then
schedule events according to this real time.
I use another library, Allegro, to read/write midi files, but this is
intentionally separated from PortMidi because almost every application
dealing with some kind of sequence wants to define its own data structures.
You are welcome to use it if it will help.
Ok... I kind of expected this one. It seems incredibly hard to find a
helpful midi lib on linux... alsa is great but i haven't gotten it to work.
Is Allegro this : http://www.talula.demon.co.uk/allegro/readme.html ? (This
name is rather common so i'm not sure which one you,re talking about.) If so
its creators advised me against using the midi routines of the lib because
they were unstable.
You also will probably need to write some kind of scheduler, e.g. if you
are playing multiple tracks from a midi file, you need to compute when each
track will produce its next message and manage them in some sort of
priority queue so that events are interleaved in the proper time order.
This, is already done.
Thanks anyway... i think i'll just drop the idea of porting my app to linux
for now it's getting really frustrating.
_________________________________________________________________
Windows Live Hotmail est la prochaine génération de MSN Hotmail. Il est
rapide, simple et plus sûr que jamais. Mais surtout
il est toujours
gratuit. www.nouveauhotmail.ca?icid=WLHMFRCA119
_______________________________________________
media_api mailing list
[email protected]
http://www.create.ucsb.edu/mailman/listinfo/media_api