This Python script allows you to use a sustain pedal with your Arturia MiniLab 3 MIDI controller to trigger clips on Ableton Live.
Python 3.10 or higher is required to run the script.
You can install the required dependencies using pip:
pip install python-rtmidi
To use the script, you can run it from the command line with the following options:
python midi.py [-h] [-l LOG] [-s SOURCE] [-b LOOPBACK] [--min-track MIN_TRACK]
[--max-track MAX_TRACK] [--min-track-note MIN_TRACK_NOTE]
[--main-knob MAIN_KNOB] [--pedal PEDAL]
-h
,--help
: Show the help message and exit.-l LOG
,--log LOG
: Set log level (default: "INFO").-s SOURCE
,--source SOURCE
: Set source port name (default: "Minilab3 MIDI").-b LOOPBACK
,--loopback LOOPBACK
: Set loopback port name (default: "Arturia Loopback").--min-track MIN_TRACK
: Set the minimum track number (default: 1).--max-track MAX_TRACK
: Set the maximum track number (default: 8).--min-track-note MIN_TRACK_NOTE
: Set the note number for the minimum track (default: 36).--main-knob MAIN_KNOB
: Set the main knob control number (default: 29).--pedal PEDAL
: Set the pedal control number (default: 127).
python midi.py --source "My MIDI Controller" --loopback "Loopback Device" --main-knob 29 --pedal 127
- The script doesn't create a virtual MIDI port, so you need to use a separate tool like LoopMIDI (Windows) or IAC Driver (macOS)