WindowsMIDIInput

Undocumented in source.

Constructors

this
this(UINT deviceID, size_t bufferSize)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

handleEvent
void handleEvent(UINT msg, DWORD_PTR param1, DWORD_PTR param2)
Undocumented in source. Be warned that the author may not have intended to support it.
read
ubyte[] read()
Undocumented in source. Be warned that the author may not have intended to support it.
start
int start()

Starts the MIDI input stream.

stop
int stop()

Stops the MIDI input stream.

Static functions

midiHandler
void midiHandler(HMIDIIN midi, UINT msg, DWORD_PTR instance, DWORD_PTR param1, DWORD_PTR param2)

Function for handling callbacks from OS side.

Variables

buffer
ubyte[] buffer;

Contains all currently received MIDI messages. If full, further MIDI messages will be dropped.

bufferpos
size_t bufferpos;
Undocumented in source.
handle
HMIDIIN handle;
Undocumented in source.
lastErrorCode
MMRESULT lastErrorCode;

The last error code produced by the OS

Inherited Members

From MIDIInput

lastStatusCode
int lastStatusCode;

The last status code returned by a function

midiInCallback
void delegate(ubyte[] data, size_t timestamp) midiInCallback;

If set, input data will be passed through this delegate

read
ubyte[] read()

Returns the content of the buffer and clears it.

start
int start()

Starts the MIDI input stream.

stop
int stop()

Stops the MIDI input stream.

Meta