padkontrol is a Python module used to interact with the Korg PadKontrol MIDI controller via its native mode.
You can install the module via pip:
pip install "git+https://github.com/stuartkeith/padkontrol.git"Then import and use:
import padkontrolSee example.py for usage.
The example uses python-rtmidi for MIDI IO. You might need to modify the OUTPUT_MIDI_PORT and INPUT_MIDI_PORT variables.
Thanks to h2a2p for writing the "Guide to PadKontrol Native Mode - Version 2.1" PDF (downloaded from http://www.korgforums.com/forum/phpBB2/viewtopic.php?t=28030).