with_midi_defaults
Specify new default values to be used by all calls to midi_* fns within the do/end block. After the do/end block has completed the previous MIDI defaults (if any) are restored.
Introduced in v3.0
| channel: |
MIDI channel(s) to send event on |
| port: |
MIDI port(s) to send to |
| velocity: |
Note velocity as a MIDI number. |
| vel_f: |
Velocity as a value between 0 and 1 (will be converted to a MIDI velocity between 0 and 127) |
| on: |
If specified and false/nil/0 will stop the midi note on message from being sent out. (Ensures all opts are evaluated in this call to |
| # Example 1 | |
|
|
|