aboutsummaryrefslogtreecommitdiffhomepage
path: root/configs/layering.lua
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-12-23 16:49:29 +0100
committercbdev <cb@cbcdn.com>2019-12-23 16:49:29 +0100
commit15b314d40692d4e86b5a030aab22e68c0f6aff51 (patch)
tree88d5f5007c6ff4d5fd5dd57155ff103178d92b68 /configs/layering.lua
parent172d8a210f7df36a26b01d2fe018ff4c959a6987 (diff)
downloadmidimonster-15b314d40692d4e86b5a030aab22e68c0f6aff51.tar.gz
midimonster-15b314d40692d4e86b5a030aab22e68c0f6aff51.tar.bz2
midimonster-15b314d40692d4e86b5a030aab22e68c0f6aff51.zip
Multi-layering example configuration
Diffstat (limited to 'configs/layering.lua')
-rw-r--r--configs/layering.lua70
1 files changed, 70 insertions, 0 deletions
diff --git a/configs/layering.lua b/configs/layering.lua
new file mode 100644
index 0000000..0ced715
--- /dev/null
+++ b/configs/layering.lua
@@ -0,0 +1,70 @@
+current_layer = 0
+
+function control(value)
+ current_layer = math.floor(value * 31.99);
+end
+
+function in0(value)
+ output("out"..((current_layer * 16)), value)
+ print("Output on out"..((current_layer * 16)))
+end
+
+function in1(value)
+ output("out"..((current_layer * 16)) + 1, value)
+end
+
+function in2(value)
+ output("out"..((current_layer * 16)) + 2, value)
+end
+
+function in3(value)
+ output("out"..((current_layer * 16)) + 3, value)
+end
+
+function in4(value)
+ output("out"..((current_layer * 16)) + 4, value)
+end
+
+function in5(value)
+ output("out"..((current_layer * 16)) + 5, value)
+end
+
+function in6(value)
+ output("out"..((current_layer * 16)) + 6, value)
+end
+
+function in7(value)
+ output("out"..((current_layer * 16)) + 7, value)
+end
+
+function in8(value)
+ output("out"..((current_layer * 16)) + 8, value)
+end
+
+function in9(value)
+ output("out"..((current_layer * 16)) + 9, value)
+end
+
+function in10(value)
+ output("out"..((current_layer * 16)) + 10, value)
+end
+
+function in11(value)
+ output("out"..((current_layer * 16)) + 11, value)
+end
+
+function in12(value)
+ output("out"..((current_layer * 16)) + 12, value)
+end
+
+function in13(value)
+ output("out"..((current_layer * 16)) + 13, value)
+end
+
+function in14(value)
+ output("out"..((current_layer * 16)) + 14, value)
+end
+
+function in15(value)
+ output("out"..((current_layer * 16)) + 15, value)
+end