frMIDI and specially this module has been highly influenced by SendMIDI and ReceiveMIDI. The command line of these tools is very well designed allowing very easy testing of MIDI devices from command line. This module has taken MIDI messages function creation names and inspiration from those tools.
The messages module does not depend on any other module from frMIDI.
All message functions accept optional timeStamp and deltaTime after their own specific parameters.
msg (data: Array, ts: Number, dt: Number)
from (msg: Array | Object)
off (note: 0-127, velocity: 0-127, channel: 0-15)
on (note: 0-127, velocity: 0.127, channel: 0-15)
pp (note: 0-127, pressure: 0-127, channel: 0-15)
cc (control: 0-127, value: 0-127, channel: 0-15)
pc (program: 0-127, channel: 0-15)
cp (pressure: 0-127, channel: 0-15)
pb (value: 0-16383, channel: 0-15)
rpn (number: 0-16383, value: 0-16383, channel: 0-15)
nrpn (number: 0-16383, value: 0-16383, channel: 0-15)
syx (data: Array)
tc (type: 0-7, value: 0-15)
spp (number: 0-16383)
ss (number: 0-127)
tun ()
mc ()
start ()
cont ()
stop ()
as ()
rst ()
Creates a note off for every note on every channel and also sends zero values to controllers 64 (Sustain Pedal), 120 (All Sound Off) and 123 (All Controllers Off).
panic ()