here is my script for the Korg NanoKontrol 2. I found existing scripts a bit limited, so i got hands on scripting. I was written initially for L8 but I was able to port it to 9.
It has 4 modes with 8x3 session, cycling sends, reset send to 0 button, navigation/lock to devices, device on/off, device knobs, select track, metronome, quantization control, etc..
This is how it works:
Global Midi Channel is 1!
It loads in a default or initial mode and there are 3 modes buttons:
- STOP: Shift Mode
- PLAY: Alt Mode
- RECORD: Ctrl Mode
This buttons are toggle buttons for the versions previous to Live 9.1!
Press one of them to enter that mode, pressing again will deactivate it and return to the initial mode. If you have one mode active and press other mode button, simply it deactivates the first and activates the second.
OVERVIEW ON MODES:
- DEFAULT MODE:
- Track Nav - Session left/right
- Rewind, Forward - Session up/down
- Marker Left, Right - Send up/down
- Cycle, Set Marker - Does nothing
- Faders - Session tracks volume
- Knobs - Session tracks send A (Assignable with marker left/right to the other sends)
- Solo, Arm, Mute - Session Clip Launch Matrix 8x3
- SHIFT MODE:
- Track Nav - Same as in default mode
- Rewind, Forward - Same as in default mode
- Marker Left, Right - Same as in default mode
- Cycle, Set Marker - Does nothing
- Faders - Same as in default mode
- Knobs - Same as in default mode
- Solo, Arm, Mute - Solo, Arm and Mute for the Session controlled tracks
- ALT MODE:
- Track Nav - Same as in default mode
- Rewind, Forward - Same as in default mode
- Marker Left, Right - Same as in default mode
- Cycle, Set Marker - Does nothing
- Faders - Same as in default mode
- Knobs - Same as in default mode
- Solo - Resets the value of the current send for the Session controlled tracks
- Mute - Select track for the Session controlled tracks
- Arm - Stop button for the Session controlled tracks
- CTRL MODE:
- Track Nav - Same as in default mode
- Rewind, Forward - Same as in default mode
- Marker Left, Right - Device left/right
- Cycle - Device turn on/off
- Set Marker - Device lock/unlock
- Faders - Same as in default mode
- Knobs - Controls 8 knobs on a selected device
- Solo - Clip/Device view for the Session controlled tracks
- Mute - The 3 first Mute buttons are assigned to the 3 scene launch, the rest unassigned (Ideas are welcome)
- Arm 1 - Stop
- Arm 2 - Play
- Arm 3 - Record
- Arm 4 - Global Quantization
- Arm 5 - Tempo Down
- Arm 6 - Tempo Up
- Arm 7 - Metronome
- Arm 8 - Stop All Clips
Below is an image with the default CC values (image is included in zip file):
PLEASE READ BELOW
Download (Includes all the versions for Ableton Live 8, 9.0 and 9.1)::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: CHANGELOG V1.1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compatible with Live 9.1, 9.1.1, 9.1.2, 9.1.3, 9.1.4, 9.2.2 and 9.5
Fixed bug on switching between modes
Modes Buttons now are MOMENTARY (you need to go change that in the Korg Kontrol Editor Program)
In default mode the three modes buttons are now turned ON
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: CHANGELOG V2.0 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compatible with Ableton Live 11.1
Version increment to 2.0
No new funcionality added
Printing to Ableton's Live log.txt the actual version
http://www.sendspace.com/file/z9mere
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: DOWNLOAD 2022 v2.0 - Live 11.1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
https://www.sendspace.com/file/emm66c
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: INSTALL NOTES ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
1- Download
2- Unzip NanoKontrol2Shift1.1.zip
3- Go to where you extracted the files and unzip the version that suits you
4- Find the folder that you just extracted containing the python scripts and rename it to NanoKontrol2Shift (example: NanoKontrol2ShiftAL9.1 - NanoKontrol2Shift)
5- Find you Live 9 application, right-click and choose "Show Package Content" then navigate to /Contents/App-Resources/MIDI Remote Scripts and copy the NanoKontrol2Shift folder here
6- Fire up Live, go to Preferences> MIDI Sync:
6.1- Control Surface: NanoKontrol2Shift
6.2- Input : nanoKONTROL2(SLIDER/KNOB)
6.3- Output : nanoKONTROL2(CTRL)
Edit: Forgot to mention that the py files are also in the package, meaning you can open with a text editor and see how it was done, and if you want you can change the mappings within the consts.py file.
Feel free to write suggestions, requests or questions and please report BUGS if you find any!