Audio Toolkit - midisend


: midisend (dev, msg)
: midisend (dev, ...)

Send a midimsg to a midi device

Inputs

dev - midi device opened using mididevice
msg - a midi message class with messages to send to the midi device
If the msg isn’t a midimsg class, the input data is expected to be in same format as the inputs to a midimsg object.

Outputs

None

Examples

Send a note on/off command to a opened midi device dev

 midisend(dev, midimsg("note", 1, 60, 100, 2.0));
 

See also: midimsg, mididevice, midireceive.