From 7693ed34ab5e549b8b7fb8ca395bbf15616d6915 Mon Sep 17 00:00:00 2001 From: Spacelord Date: Sun, 26 Apr 2020 02:28:11 +0200 Subject: Update layering config to use the new default-handler functionality --- configs/layering.cfg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'configs/layering.cfg') diff --git a/configs/layering.cfg b/configs/layering.cfg index 7adcd6f..b71f9e5 100644 --- a/configs/layering.cfg +++ b/configs/layering.cfg @@ -7,7 +7,7 @@ bind = 0.0.0.0 [midi in] -read = Launch Control +read = BCF [artnet out] destination = 255.255.255.255 @@ -15,9 +15,10 @@ universe = 1 [lua layers] script = layering.lua +default-handler = handler [map] -in.ch0.cc{0..15} > layers.in{0..15} +in.ch1.cc{1..8} > layers.in{0..7} layers.out{0..511} > out.{1..512} in.ch0.note0 > layers.control -- cgit v1.2.3 From 5f2808188b71c6eea7440c70321ccfe7b3ccdd55 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 26 Apr 2020 02:31:59 +0200 Subject: Fix channel name for layering config --- DEVELOPMENT.md | 2 ++ configs/layering.cfg | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'configs/layering.cfg') diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 495c4f9..79005a9 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -34,6 +34,8 @@ in spirit rather than by the letter. * Prefer to name unsigned loop counters `u` and signed ones `i` * Place comments above the section they are commenting on * Use inline comments sparingly +* Do not omit '{}' brackets, even if optional (e.g. single-statement conditional bodies) +* Opening braces stay on the same line as the condition #### C specific diff --git a/configs/layering.cfg b/configs/layering.cfg index b71f9e5..f312a65 100644 --- a/configs/layering.cfg +++ b/configs/layering.cfg @@ -7,7 +7,7 @@ bind = 0.0.0.0 [midi in] -read = BCF +read = Launch Control [artnet out] destination = 255.255.255.255 @@ -18,7 +18,7 @@ script = layering.lua default-handler = handler [map] -in.ch1.cc{1..8} > layers.in{0..7} +in.ch1.cc{0..15} > layers.{0..15} layers.out{0..511} > out.{1..512} in.ch0.note0 > layers.control -- cgit v1.2.3