1
/******************************************/
4
Realtime MIDI I/O Object for STK,
5
by Gary P. Scavone, 1998-2000.
6
Based in part on code by Perry
7
Cook (SGI), Paul Leonard (Linux),
8
the RoseGarden team (Linux), and
9
Bill Putnam (Win95/NT).
11
At the moment, this object only
12
handles MIDI input, though MIDI
13
output code can go here when someone
14
decides they need it (and writes it).
16
This object opens a MIDI input device
17
and parses MIDI messages into a MIDI
18
buffer. Time stamp info is converted
19
to deltaTime. MIDI data is stored as
20
MY_FLOAT to conform with SKINI.
22
An optional argument to the constructor
23
can be used to specify a device or card.
24
When no argument is given, a default
25
device is opened or a list of available
26
devices is printed to allow selection
29
/******************************************/
31
#if !defined(__RtMidi_h)
37
class RtMidi : public Object
46
RtMidi(int device = -1);
52
MY_FLOAT getByteTwo();
53
MY_FLOAT getByteThree();
54
MY_FLOAT getDeltaTime();
57
#if defined(__OS_Win_)
62
static void CALLBACK midiInputCallback( HMIDIOUT hmin, UINT inputStatus,
63
DWORD instancePtr, DWORD midiMessage, DWORD timestamp);