cc
cc(cc: int, value: int, chan: int | None = None) -> None
Send a MIDI control change to the external synthesizer configured on the track.
Arguments
| Name |
Type |
Description |
cc |
|
The control change number in the [0, 127] range. |
value |
|
The control value in the [0, 127] range. |
chan |
|
The MIDI chan to send the CC to. Uses the value from use_chan() if not provided. |
Raises
| Exception |
Description |
NotInLoopException |
If called from outside a loop. |
note
note(note: int, duration: float, velocity: int = 127, chan: int | None = None) -> None
Send the MIDI note on and off to the external synthesizer using the track id of the loop as MIDI channel.
Arguments
| Name |
Type |
Description |
note |
|
The MIDI note to send. |
duration |
|
The duration of the note in beats. |
velocity |
|
The velocity. Defaults to 127. |
chan |
|
The MIDI chan to send the note to. |
Raises
| Exception |
Description |
NotInLoopException |
If called from outside a loop. |
note_off
note_off(note: int, velocity: int = 127, chan: int | None = None) -> None
Send the MIDI note off to the external synthesizer using the track id of the loop as MIDI channel.
Arguments
| Name |
Type |
Description |
note |
|
The MIDI note to stop. |
velocity |
|
The velocity. Defaults to 127. |
chan |
|
The MIDI chan to stop the note on. Uses the value from use_chan() if not provided. |
Raises
| Exception |
Description |
NotInLoopException |
If called from outside a loop. |
note_on
note_on(note: int, velocity: int = 127, chan: int | None = None) -> None
Send the MIDI note to the external synthesizer configured on the track.
Arguments
| Name |
Type |
Description |
note |
|
The MIDI note to send. |
velocity |
|
The velocity. Defaults to 127. |
chan |
|
The MIDI chan to send the note to. Uses the value from use_chan() if not provided. |
Raises
| Exception |
Description |
NotInLoopException |
If called from outside a loop. |