home *** CD-ROM | disk | FTP | other *** search
- /* MidiMerger.h:
- This allows a Mac program to send stuff to a device, while also
- allowing input from a keyboard to go to the device as well,
- merging input from both sources. The structure isn't brilliant;
- I've just copied the structure from the assembly routines, so
- the two ports work independently. I will do this properly
- sometime. */
-
- typedef unsigned char BYTE;
-
- typedef enum {
- MODEM, PRINTER
- } PORT;
-
- extern void startMidi(PORT port);
- extern void stopMidi(PORT port);
-
- extern void channelise(PORT port, int channel);
- extern void noChannelise(PORT port);
-
- extern void idleMidi(PORT input, PORT output);
- /* Idle from one port to another,
- processing the messages. */
-
- extern void transmitMidi(PORT port, BYTE *message);
- /* Send a complete MIDI message. */
-