Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 717 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 717 Bytes

novation-midi-controller

Thin MIDI wrapper for LAUNCHPAD PRO mk2 user. This is a python script to map MIDI input values to macros. (like a midi-to-macro)

support only mk2.

See documents.

usage

Simple usage.

# custom macros
def callback(msg):
    if msg.type == 'note_on':
        print(f"note on: {msg.note}, velocity={msg.velocity}")
    elif msg.type == 'cc':
        print(f"cc on: {msg.note}, velocity={msg.velocity}")

if __name__ == '__main__':
    device = LaunchPadProMk2(mode="STANDALONE")
    device.open(callback=callback)