midi_mode mode (mode_keyword)
Sends the Omni/Mono/Poly MIDI mode message to all connected MIDI devices on all channels. Use the port: and channel: opts to restrict which MIDI ports and channels are used.
Valid modes are:
Note that this fn also includes the behaviour of midi_all_notes_off.
Introduced in v3.0
| channel: |
Channel to send the MIDI mode message to |
| port: |
MIDI port to send to |
| mode: |
Mode keyword - one of :omni_off, :omni_on, :mono or :poly |
| num_chans: |
Used in mono mode only - Number of channels (defaults to 16) |
| on: |
If specified and false/nil/0 will stop the midi local control off message from being sent out. (Ensures all opts are evaluated in this call to |
| # Example 1 | |
|
|
|
| # Example 2 | |
|
|
|
| # Example 3 | |
|
|
|
| # Example 4 | |
|
|
|