From a92c6fb9f20ae26335b2ea3bd4539dd6e4aec256 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 27 Jun 2021 16:45:35 +0200 Subject: Add a python/lua example configuration --- configs/pyexample.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 configs/pyexample.py (limited to 'configs/pyexample.py') diff --git a/configs/pyexample.py b/configs/pyexample.py new file mode 100644 index 0000000..7213005 --- /dev/null +++ b/configs/pyexample.py @@ -0,0 +1,8 @@ +# Import the MIDIMonster Python API +import midimonster + +def channel1(value): + # Print current input value + print("Python channel 1 is at %s" % (value,)) + # Send inverse on py1.out1 + midimonster.output("out1", 1.0 - value) -- cgit v1.2.3