
Reference
ch 2 62 60 # plays MIDI note 62 with a velocity of 60 on channel 2 of connected instrument
Source Code
Dependency
#!/bin/bash
# MIDI Mapping for m (m is the name of the virtual MIDI port in this example)
sendmidi dev m ch ${1} on ${2} ${3}
sleep ${4}
sendmidi dev m ch ${1} off ${2} ${3}