Defines | Typedefs | Functions

midiman.h File Reference

#include "coreexp.h"
#include <WTypes.h>
#include <mmsystem.h>
#include <mmreg.h>

Go to the source code of this file.

Defines

#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 Documentation

#define MIDIPROC_PROCESSED   1

Definition at line 26 of file midiman.h.

#define MIDIPROC_NOTPROCESSED   0

Definition at line 27 of file midiman.h.

#define MIDI_CHANNEL (   a )    ((a)&0x0f)

Definition at line 45 of file midiman.h.

#define MIDI_EVENT (   a )    ((a)&0xf0)

Definition at line 46 of file midiman.h.

#define MIDI_NOTENUMBER (   a )    (((a)&0xff00)>>8)

Definition at line 47 of file midiman.h.

#define MIDI_VELOCITY (   a )    (((a)&0xff0000)>>16)

Definition at line 48 of file midiman.h.

#define MIDI_PITCHBEND (   a )    (((a)&0xff0000)>>16)

Definition at line 49 of file midiman.h.

#define MIDI_NOTEFLOAT (   a,
  low,
  high 
)    (float((a)-(low))/float((high)-(low)))

Definition at line 50 of file midiman.h.

#define MIDI_VELFLOAT (   a )    (float(a)/127.0f)

Definition at line 51 of file midiman.h.

#define MIDI_BENDFLOAT (   a )    (float(a)/127.0f)

Definition at line 52 of file midiman.h.

#define MIDI_NOTE_ON   0x90

Definition at line 55 of file midiman.h.

#define MIDI_NOTE_OFF   0x80

Definition at line 56 of file midiman.h.

#define MIDI_PITCH_BEND   0xe0

Definition at line 57 of file midiman.h.

#define MIDI_CONTROLCHANGE   0xb0

Definition at line 58 of file midiman.h.


Typedef Documentation

typedef DWORD(* MIDI_IN_PROC)(HMIDIIN hMidiIn, UINT wMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2)

Definition at line 23 of file midiman.h.


Function Documentation

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 ( )