midi note (number)
Sends a MIDI note on event to all connected MIDI devices and all channels and then after sustain beats sends a MIDI note off event. Ensures MIDI trigger is synchronised with standard calls to play and sample. Co-operates completely with Sonic Pi’s timing system including time_warp
.
If note
is specified as :off
then all notes will be turned off (same as midi_all_notes_off
).
Introduced in v3.0
sustain: |
Duration of note event in beats |
vel: |
Velocity of note as a MIDI number |
on: |
If specified and false/nil/0 will stop the midi on/off messages from being sent out. (Ensures all opts are evaluated in this call to |
# Example 1 | |
|
|
# Example 2 | |
|
|
# Example 3 | |
|
|
# Example 4 | |
|
|