aboutsummaryrefslogtreecommitdiff
path: root/ignore/custom.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ignore/custom.sc')
-rwxr-xr-xignore/custom.sc59
1 files changed, 35 insertions, 24 deletions
diff --git a/ignore/custom.sc b/ignore/custom.sc
index 032ade3..1e50463 100755
--- a/ignore/custom.sc
+++ b/ignore/custom.sc
@@ -24,35 +24,46 @@
addr:"chimaera.local");
chimconf.sendMsg("/engines/custom/reset");
- chimconf.sendMsg("/engines/custom/append", "frame", "/frm", "i($f)");
- chimconf.sendMsg("/engines/custom/append", "idle", "/idl", "i($f)");
- chimconf.sendMsg("/engines/custom/append", "end", "/end", "");
-
- chimconf.sendMsg("/engines/custom/append",
- "on", "/gate", "i($g 8* $b 8%+) i(1)");
- chimconf.sendMsg("/engines/custom/append",
- "off", "/gate", "i($g 8* $b 8%+) i(0)");
- chimconf.sendMsg("/engines/custom/append",
- "set", "/cv1", "i($g 8* $b 8%+) f($x 2* 1-)");
- chimconf.sendMsg("/engines/custom/append",
- "set", "/cv2", "i($g 8* $b 8%+) f($z 0.5* 0.5+)");
+ chimconf.sendMsg("/engines/custom/append/frame",
+ "/frm i($f)");
+ chimconf.sendMsg("/engines/custom/append/idle",
+ "/idl i($f)");
+ chimconf.sendMsg("/engines/custom/append/end",
+ "/end");
+
+ chimconf.sendMsg("/engines/custom/append/on",
+ "/gate i($g 8* $b 8%+) i(1)");
+ chimconf.sendMsg("/engines/custom/append/off",
+ "/gate i($g 8* $b 8%+) i(0)");
+ chimconf.sendMsg("/engines/custom/append/set",
+ "/cv1 i($g 8* $b 8%+) f($x 2* 1-)");
+ chimconf.sendMsg("/engines/custom/append/set",
+ "/cv2 i($g 8* $b 8%+) f($z 0.5* 0.5+)");
/*
- chimconf.sendMsg("/engines/custom/append",
- "on", "/midi", "m($g 8* $b 8%+ 0x90 $b 0x7f& 0x7f)");
- chimconf.sendMsg("/engines/custom/append",
- "off", "/midi", "m($g 8* $b 8%+ 0x80 $b 0x7f& 0x7f)");
- chimconf.sendMsg("/engines/custom/append",
- "set", "/midi", "m($g 8* $b 8%+ 0xc0 0x27 $z 0x3fff* 0x7f&)");
- chimconf.sendMsg("/engines/custom/append",
- "set", "/midi", "m($g 8* $b 8%+ 0xc0 0x07 $z 0x3fff* 7<<)");
+ chimconf.sendMsg("/engines/custom/append/on",
+ "/midi m($g 8* $b 8%+ 0x90 $b 0x7f& 0x7f)");
+ chimconf.sendMsg("/engines/custom/append/off",
+ "/midi m($g 8* $b 8%+ 0x80 $b 0x7f& 0x7f)");
+ chimconf.sendMsg("/engines/custom/append/set",
+ "/midi m($g 8* $b 8%+ 0xc0 0x27 $z 0x3fff* 0x7f&)");
+ chimconf.sendMsg("/engines/custom/append/set",
+ "/midi m($g 8* $b 8%+ 0xc0 0x07 $z 0x3fff* 7<<)");
*/
chimconf.sendMsg("/engines/custom/enabled", true);
chimconf.sendMsg("/sensors/group/reset");
- chimconf.sendMsg("/sensors/group/attributes/0",
- 0.0, 1.0, false, true, false);
- chimconf.sendMsg("/sensors/group/attributes/1",
- 0.0, 1.0, true, false, false);
+
+ chimconf.sendMsg("/sensors/group/attributes/0/min", 0.0);
+ chimconf.sendMsg("/sensors/group/attributes/0/max", 1.0);
+ chimconf.sendMsg("/sensors/group/attributes/0/north", false);
+ chimconf.sendMsg("/sensors/group/attributes/0/south", true);
+ chimconf.sendMsg("/sensors/group/attributes/0/scale", false);
+
+ chimconf.sendMsg("/sensors/group/attributes/1/min", 0.0);
+ chimconf.sendMsg("/sensors/group/attributes/1/max", 1.0);
+ chimconf.sendMsg("/sensors/group/attributes/1/north", true);
+ chimconf.sendMsg("/sensors/group/attributes/1/south", false);
+ chimconf.sendMsg("/sensors/group/attributes/1/scale", false);
}.value;