Hi,

At Wed, 12 Dec 2001 03:08:07 -0500 (EST),
Ricardo Colon wrote:
> 
> Sorry if you've already receive this message, but I seem to be having some
> email problems.
> 
> How to I send raw midi messages to the ALSA sequencer?I have a buffer of
> timestamped midi messages that I'd like to output to the ALSA sequencer.
> 
> >From the code in seq-sender.c, in the send_event() function, the event
> type is set explicity(in particular sends a Program Change Event,Echo,
> and Note events). I just want to send a raw midi message to an output
> device at a specified time. In this case, setting the event type
> explicitly would be unnecessary, since the output would interpret the midi
> message.
> 
> How do I do this using the ALSA sequencer? Am I supposed to use the raw8
> or raw32 event data types?

It depends on the output (receiver).
If you want to feed the timestamped midi stream to a midi device
directly, then the best way is to encode the midi stream via event
encoder (available in alsa-lib 0.9.0 but not in 0.5.x).

        MIDI -> encode to an event packet -> any sequencer port

If you have your own receiver (sequencer) port to decode the received
events, then you can use raw32 (or what else any) event types.

        MIDI -> packed raw32 -> your receiver port
                                -> send raw32 to a midi device


Takashi

_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to