|
3ds Max C++ API Reference
|
Macros | |
| #define | MIDIPROC_PROCESSED 1 |
| #define | MIDIPROC_NOTPROCESSED 0 |
| #define | MIDI_CHANNEL(a) ((a)&0x0f) |
| #define | MIDI_EVENT(a) ((a)&0xf0) |
| #define | MIDI_NOTENUMBER(a) (((a)&0xff00)>>8) |
| #define | MIDI_VELOCITY(a) (((a)&0xff0000)>>16) |
| #define | MIDI_PITCHBEND(a) (((a)&0xff0000)>>16) |
| #define | MIDI_NOTEFLOAT(a, low, high) (float((a)-(low))/float((high)-(low))) |
| #define | MIDI_VELFLOAT(a) (float(a)/127.0f) |
| #define | MIDI_BENDFLOAT(a) (float(a)/127.0f) |
| #define | MIDI_NOTE_ON 0x90 |
| #define | MIDI_NOTE_OFF 0x80 |
| #define | MIDI_PITCH_BEND 0xe0 |
| #define | MIDI_CONTROLCHANGE 0xb0 |
Typedefs | |
| typedef DWORD(* | MIDI_IN_PROC) (HMIDIIN hMidiIn, UINT wMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2) |
Functions | |
| CoreExport MMRESULT | MIDIMan_Open (MIDI_IN_PROC proc, DWORD dwInstance, int priority=0) |
| CoreExport MMRESULT | MIDIMan_Close (MIDI_IN_PROC proc, DWORD dwInstance) |
| CoreExport MMRESULT | MIDIMan_Start () |
| CoreExport MMRESULT | MIDIMan_Stop () |
| CoreExport BOOL | MIDIMan_IsOpened () |
| CoreExport BOOL | MIDIMan_IsStarted () |
| CoreExport void | MIDIMan_Suspend () |
| CoreExport void | MIDIMan_Resume () |
| #define MIDIPROC_PROCESSED 1 |
| #define MIDIPROC_NOTPROCESSED 0 |
| #define MIDI_CHANNEL | ( | a | ) | ((a)&0x0f) |
| #define MIDI_EVENT | ( | a | ) | ((a)&0xf0) |
| #define MIDI_NOTENUMBER | ( | a | ) | (((a)&0xff00)>>8) |
| #define MIDI_VELOCITY | ( | a | ) | (((a)&0xff0000)>>16) |
| #define MIDI_PITCHBEND | ( | a | ) | (((a)&0xff0000)>>16) |
| #define MIDI_NOTEFLOAT | ( | a, | |
| low, | |||
| high | |||
| ) | (float((a)-(low))/float((high)-(low))) |
| #define MIDI_VELFLOAT | ( | a | ) | (float(a)/127.0f) |
| #define MIDI_BENDFLOAT | ( | a | ) | (float(a)/127.0f) |
| #define MIDI_NOTE_ON 0x90 |
| #define MIDI_NOTE_OFF 0x80 |
| #define MIDI_PITCH_BEND 0xe0 |
| #define MIDI_CONTROLCHANGE 0xb0 |
| typedef DWORD(* MIDI_IN_PROC) (HMIDIIN hMidiIn, UINT wMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2) |
| CoreExport MMRESULT MIDIMan_Open | ( | MIDI_IN_PROC | proc, |
| DWORD | dwInstance, | ||
| int | priority = 0 |
||
| ) |
| CoreExport MMRESULT MIDIMan_Close | ( | MIDI_IN_PROC | proc, |
| DWORD | dwInstance | ||
| ) |
| CoreExport MMRESULT MIDIMan_Start | ( | ) |
| CoreExport MMRESULT MIDIMan_Stop | ( | ) |
| CoreExport BOOL MIDIMan_IsOpened | ( | ) |
| CoreExport BOOL MIDIMan_IsStarted | ( | ) |
| CoreExport void MIDIMan_Suspend | ( | ) |
| CoreExport void MIDIMan_Resume | ( | ) |