The OpenD Programming Language

MidiOutput

Gives MIDI output access.

Constructors

this
this(int card)

Always pass card == 0.

this
this(string device)

device is a device name. On Linux, it is the ALSA string. On Windows, it is currently ignored, so you should pass "default" or null so when it does get implemented your code won't break.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

reset
void reset()

Send a reset message, silencing all notes

writeMidiMessage
void writeMidiMessage(int status, int param1, int param2)

Writes a single low-level midi message Timing and sending sane data is your responsibility!

writeRawMessageData
void writeRawMessageData(const(ubyte)[] data)

Writes a series of individual raw messages. Timing and sending sane data is your responsibility! The data should NOT include any timestamp bytes - each midi message should be 2 or 3 bytes.

Meta