Ports
Warning
These ports require the special Ableton Live user remote script installed.
The remote script can be installed using action in the Help
section of MIDI Scripter GUI's menubar.
The MIDI Scripter
user remote script should be
assigned to proxy_midi_port_name
MIDI ports in Ableton Live settings.
AbletonIO
Bases: MidiIO
Parameters:
-
port_name
(str
) –MIDI port name
-
virtual
(bool
, default:False
) –Create virtual input and output ports
-
loopback
(bool
, default:False
) –Immediately send the messages received by the input port with the output port
passthrough_out
subscribe
subscribe(
type: None | Container[AbletonEvent] | AbletonEvent = None,
index: (
None | Container[int, tuple[int, int]] | int | tuple[int, int]
) = None,
value: None | Container[int] | int | bool = None,
) -> Callable
Decorator to subscribe a callable to all the wrapped inputs' messages.
Decorator without arguments subscribes a callable to all the input's messages.
Decorator with arguments subscribes a callable to the input's messages
that match conditions set by arguments.
It works the same way as message's matches
method:
-
If condition is
None
or omitted it matches anything. -
If condition equals the message's attribute value it matches the attribute.
-
If condition is a container (list, tuple) and contains the message's attribute value, it matches the attribute.
Examples
- Calls function for all MIDI port's messages:
- Calls function for OSC messages from specific address:
- Call object instance method for MIDI port's "note on" and "note off" messages:
Returns:
-
Callable
–Subscribed callable.
send
AbletonIn
Bases: MidiIn
Receives MIDI messages from Ableton Live remote script
and produces AbletonMsg
objects.
Parameters:
-
proxy_midi_port_name
(str
) –The name of proxy MIDI input port enabled in Ableton Live
-
virtual
(bool
, default:False
) –Create virtual MIDI port
passthrough_out
subscribe
subscribe(
type: None | Container[AbletonEvent] | AbletonEvent = None,
index: (
None | Container[int, tuple[int, int]] | int | tuple[int, int]
) = None,
value: None | Container[int] | int | bool = None,
) -> Callable
Decorator to subscribe a callable to the input's messages.
Decorator without arguments subscribes a callable to all the input's messages.
Decorator with arguments subscribes a callable to the input's messages
that match conditions set by arguments.
It works the same way as message's matches
method:
-
If condition is
None
or omitted it matches anything. -
If condition equals the message's attribute value it matches the attribute.
-
If condition is a container (list, tuple) and contains the message's attribute value, it matches the attribute.
Examples
- Calls function for all MIDI port's messages:
- Calls function for OSC messages from specific address:
- Call object instance method for MIDI port's "note on" and "note off" messages:
Returns:
-
Callable
–Subscribed callable.
AbletonOut
Bases: MidiOut
Sends AbletonMsg
objects
as MIDI message to Ableton Live remote script.
Parameters:
-
proxy_midi_port_name
(str
) –The name of proxy MIDI output port enabled in Ableton Live
-
virtual
(bool
, default:False
) –Create virtual MIDI port