HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Midi.h File Reference
#include "UT_API.h"
#include <string.h>
#include "UT_Endian.h"
#include "UT_Array.h"
#include "UT_ValArray.h"
#include "UT_IntArray.h"
+ Include dependency graph for UT_Midi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  midiEvent
 
class  UT_Midi
 

Macros

#define MIDI_IN_DEVICE_BASE   4096
 
#define MIDI_OUT_DEVICE_BASE   8192
 
#define MIDI_IN_FILE_BASE   12288
 
#define MIDI_OUT_FILE_BASE   16384
 
#define MIDI_NUM_DEVICES   4095
 
#define MD_NOSTAMP   1
 
#define MD_DELTASTAMP   2
 
#define MD_RELATIVESTAMP   3
 
#define MD_DELTATICKS   4 /* delta ticks, as in SMF 1.0 */
 
#define MD_RELATIVETICKS   5 /* relative ticks */
 
#define MD_STAMPING_MASK   0xf
 
#define MD_CHANNELMASK   0x0F
 
#define MD_STATUSMASK   0xF0
 
#define MD_CHANNELVOICE   0x80
 
#define MD_NOTEOFF   0x80
 
#define MD_NOTEON   0x90 /* note-off is also note-on w/velocity=0 */
 
#define MD_POLYKEYPRESSURE   0xA0 /* polyphonic key pressure or aftertouch */
 
#define MD_CONTROLCHANGE   0xB0
 
#define MD_CHANNELMODESELECT   0xB0
 
#define MD_PROGRAMCHANGE   0xC0
 
#define MD_CHANNELPRESSURE   0xD0 /* aftertouch is the Yamaha term */
 
#define MD_PITCHBENDCHANGE   0xE0
 
#define MD_SYSEX   0xF0 /* System Exclusive */
 
#define MD_SYSTEMREALTIME   0xF8
 
#define MD_TIMINGCLOCK   0xF8
 
#define MD_UNDEFINED3   0xF9
 
#define MD_START   0xFA
 
#define MD_CONTINUE   0xFB
 
#define MD_STOP   0xFC
 
#define MD_UNDEFINED4   0xFD
 
#define MD_ACTIVESENSING   0xFE
 
#define MD_SYSTEMRESET   0xFF
 
#define MD_META   0xFF /* MIDI Files only */
 
#define MD_SYSTEMCOMMON   0xF1
 
#define MD_TIMECODEQUARTERFRAME   0xF1
 
#define MD_SONGPOSITIONPOINTER   0xF2
 
#define MD_SONGSELECT   0xF3
 
#define MD_UNDEFINED1   0xF4
 
#define MD_UNDEFINED2   0xF5
 
#define MD_TUNEREQUEST   0xF6
 
#define MD_EOX   0xF7 /* End of System Exclusive */
 
#define MAX_SYSEXMSG_LEN   128
 
#define SYSEX_TYPE_NONE   (0)
 
#define SYSEX_TYPE_BARMARKER   (1)
 
#define MESSAGE_VALUE_RAW   (-1)
 
#define MESSAGE_VALUE_NORM   (-2)
 
#define MESSAGE_DONTCARE   (-3)
 
#define MESSAGE_STOP   (-4)
 

Functions

UT_API UT_MidiUTgetMidi ()
 
UT_API void UTsetMidi (UT_Midi *)
 

Macro Definition Documentation

#define MAX_SYSEXMSG_LEN   128

Definition at line 83 of file UT_Midi.h.

#define MD_ACTIVESENSING   0xFE

Definition at line 71 of file UT_Midi.h.

#define MD_CHANNELMASK   0x0F

Definition at line 47 of file UT_Midi.h.

#define MD_CHANNELMODESELECT   0xB0

Definition at line 55 of file UT_Midi.h.

#define MD_CHANNELPRESSURE   0xD0 /* aftertouch is the Yamaha term */

Definition at line 57 of file UT_Midi.h.

#define MD_CHANNELVOICE   0x80

Definition at line 50 of file UT_Midi.h.

#define MD_CONTINUE   0xFB

Definition at line 68 of file UT_Midi.h.

#define MD_CONTROLCHANGE   0xB0

Definition at line 54 of file UT_Midi.h.

#define MD_DELTASTAMP   2

Definition at line 40 of file UT_Midi.h.

#define MD_DELTATICKS   4 /* delta ticks, as in SMF 1.0 */

Definition at line 42 of file UT_Midi.h.

#define MD_EOX   0xF7 /* End of System Exclusive */

Definition at line 81 of file UT_Midi.h.

#define MD_META   0xFF /* MIDI Files only */

Definition at line 73 of file UT_Midi.h.

#define MD_NOSTAMP   1

Definition at line 39 of file UT_Midi.h.

#define MD_NOTEOFF   0x80

Definition at line 51 of file UT_Midi.h.

#define MD_NOTEON   0x90 /* note-off is also note-on w/velocity=0 */

Definition at line 52 of file UT_Midi.h.

#define MD_PITCHBENDCHANGE   0xE0

Definition at line 58 of file UT_Midi.h.

#define MD_POLYKEYPRESSURE   0xA0 /* polyphonic key pressure or aftertouch */

Definition at line 53 of file UT_Midi.h.

#define MD_PROGRAMCHANGE   0xC0

Definition at line 56 of file UT_Midi.h.

#define MD_RELATIVESTAMP   3

Definition at line 41 of file UT_Midi.h.

#define MD_RELATIVETICKS   5 /* relative ticks */

Definition at line 43 of file UT_Midi.h.

#define MD_SONGPOSITIONPOINTER   0xF2

Definition at line 76 of file UT_Midi.h.

#define MD_SONGSELECT   0xF3

Definition at line 77 of file UT_Midi.h.

#define MD_STAMPING_MASK   0xf

Definition at line 45 of file UT_Midi.h.

#define MD_START   0xFA

Definition at line 67 of file UT_Midi.h.

#define MD_STATUSMASK   0xF0

Definition at line 48 of file UT_Midi.h.

#define MD_STOP   0xFC

Definition at line 69 of file UT_Midi.h.

#define MD_SYSEX   0xF0 /* System Exclusive */

Definition at line 63 of file UT_Midi.h.

#define MD_SYSTEMCOMMON   0xF1

Definition at line 74 of file UT_Midi.h.

#define MD_SYSTEMREALTIME   0xF8

Definition at line 64 of file UT_Midi.h.

#define MD_SYSTEMRESET   0xFF

Definition at line 72 of file UT_Midi.h.

#define MD_TIMECODEQUARTERFRAME   0xF1

Definition at line 75 of file UT_Midi.h.

#define MD_TIMINGCLOCK   0xF8

Definition at line 65 of file UT_Midi.h.

#define MD_TUNEREQUEST   0xF6

Definition at line 80 of file UT_Midi.h.

#define MD_UNDEFINED1   0xF4

Definition at line 78 of file UT_Midi.h.

#define MD_UNDEFINED2   0xF5

Definition at line 79 of file UT_Midi.h.

#define MD_UNDEFINED3   0xF9

Definition at line 66 of file UT_Midi.h.

#define MD_UNDEFINED4   0xFD

Definition at line 70 of file UT_Midi.h.

#define MESSAGE_DONTCARE   (-3)

Definition at line 90 of file UT_Midi.h.

#define MESSAGE_STOP   (-4)

Definition at line 91 of file UT_Midi.h.

#define MESSAGE_VALUE_NORM   (-2)

Definition at line 89 of file UT_Midi.h.

#define MESSAGE_VALUE_RAW   (-1)

Definition at line 88 of file UT_Midi.h.

#define MIDI_IN_DEVICE_BASE   4096

Definition at line 31 of file UT_Midi.h.

#define MIDI_IN_FILE_BASE   12288

Definition at line 34 of file UT_Midi.h.

#define MIDI_NUM_DEVICES   4095

Definition at line 36 of file UT_Midi.h.

#define MIDI_OUT_DEVICE_BASE   8192

Definition at line 32 of file UT_Midi.h.

#define MIDI_OUT_FILE_BASE   16384

Definition at line 35 of file UT_Midi.h.

#define SYSEX_TYPE_BARMARKER   (1)

Definition at line 86 of file UT_Midi.h.

#define SYSEX_TYPE_NONE   (0)

Definition at line 85 of file UT_Midi.h.

Function Documentation

UT_API UT_Midi* UTgetMidi ( )
UT_API void UTsetMidi ( UT_Midi )