ORCA-C/bin/Libraries/ORCACDefs/midi.h

1 line
6.8 KiB
C
Raw Normal View History

/******************************************** * * MIDI Tool Set * * Copyright Apple Computer, Inc.1986-90 * All Rights Reserved * * Copyright 1992, Byte Works, Inc. * ********************************************/ #ifndef __TYPES__ #include <TYPES.h> #endif #ifndef __MIDI__ #define __MIDI__ /* MIDI */ #define miToolNum 0x0020 /* the tool number of the MIDI Tool Set */ #define miDrvrFileType 0x00BB /* filetype of MIDI device driver */ #define miNSVer 0x0102 /* minimum version of Note Synthesizer required by MIDI Tool Set */ #define miSTVer 0x0203 /* minimum version of Sound Tools needed by MIDI Tool Set */ #define miDrvrAuxType 0x0300 /* aux type of MIDI device driver */ /* Error Codes */ #define miStartUpErr 0x2000 /* MIDI Tool Set is not started */ #define miPacketErr 0x2001 /* incorrect length for a received MIDI command */ #define miArrayErr 0x2002 /* a designated array had an insufficient or illegal size */ #define miFullBufErr 0x2003 /* input buffer overflow */ #define miToolsErr 0x2004 /* the required tools were not started up or had insufficient versions */ #define miOutOffErr 0x2005 /* MIDI output must first be enabled */ #define miNoBufErr 0x2007 /* no buffer is currently allocated */ #define miDriverErr 0x2008 /* the designated file is not a legal MIDI device driver */ #define miBadFreqErr 0x2009 /* the MIDI clock cannot attain the requested frequency */ #define miClockErr 0x200A /* the MIDI clock value wrapped to zero */ #define miConflictErr 0x200B /* conflicting processes for MIDI input */ #define miNoDevErr 0x200C /* no MIDI device driver loaded */ #define miDevNotAvail 0x2080 /* the requested device is not available */ #define miDevSlotBusy 0x2081 /* requested slot is already in use */ #define miDevBusy 0x2082 /* the requested device is already in use */ #define miDevOverrun 0x2083 /* device overrun by incoming MIDI data */ #define miDevNoConnect 0x2084 /* no connection to MIDI */ #define miDevReadErr 0x2085 /* framing error in received MIDI data */ #define miDevVersion 0x2086 /* ROM version is incompatible with device driver */ #define miDevIntHndlr 0x2087 /* conflicting interrupt handler is installed */ /* MidiClock */ #define miSetClock 0x0000 /* set time stamp clock */ #define miStartClock 0x0001 /* start time stamp clock */ #define miStopClock 0x0002 /* stop time stamp clock */ #define miSetFreq 0x0003 /* set clock frequency */ /* MidiControl */ #define miRawMode 0x00000000L /* raw mode for MIDI input and output */ #define miSetRTVec 0x0000 /* set real-time message vector */ #define miPacketMode 0x00000001L /* packet mode for MIDI input and output */ #define miSetErrVec 0x0001 /* set real-time error vector */ #define miStandardMode 0x00000002L /* standard mode for MIDI input and output */ #define miSetInBuf 0x0002 /* set input buffer information */ #define miSetOutBuf 0x0003 /* set output buffer information */ #define miStartInput 0x0004 /* start MIDI input */ #define miStartOutput 0x0005 /* start MIDI output */ #define miStopInput 0x0006 /* stop MIDI input */ #define miStopOutput 0x0007 /* stop MIDI output */ #define miFlushInput 0x0008 /* discard contents of input buffer */ #define miFlushOutput 0x0009 /* discard contents of output buffer */ #define miFlushPacket 0x000A /* discard next input packet */ #define miWaitOutput 0x000B /* wait for output buffer to empty */ #define miSetInMode 0x000C /* set input mode */ #define miSetOutMode 0x000D /* set output mode */ #define miClrNotePad 0x000E /* clear all notes marked on in t