Skip to content

Ports

AbletonIn

AbletonIn(proxy_midi_port_name: str, *, virtual: bool = False)

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 port (Linux and macOS only)

is_enabled

is_enabled: bool

True if port is listening messages / ready to send messages

calls

calls: list[None | tuple[tuple, dict], list[SubscribedCall]]

Message match arguments and callables that will be called with matching incoming messages. None conditions matches any message.

name

name: str

MIDI port name

attached_passthrough_outs

attached_passthrough_outs: list[MidiOut] = []

MidiOut ports attached as pass-through ports which will send all incoming messages as soon as they arrive before sending them to calls

passthrough_out

passthrough_out(midi_output: MidiOut) -> None

Attach MidiOut as a pass-through port to send all incoming messages as soon as they arrive, before sending them to calls. This can greatly reduce latency.

Parameters:

AbletonOut

AbletonOut(proxy_midi_port_name: str, *, virtual: bool = False)

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 port (Linux and macOS only)

is_enabled

is_enabled: bool

True if port is listening messages / ready to send messages

name

name: str

MIDI port name

send

send(msg: AbletonMsg) -> None

Send message to Ableton remote script.

Parameters: