aboutsummaryrefslogtreecommitdiff
path: root/ignore/dummy_to_midi.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ignore/dummy_to_midi.sc')
-rwxr-xr-xignore/dummy_to_midi.sc10
1 files changed, 6 insertions, 4 deletions
diff --git a/ignore/dummy_to_midi.sc b/ignore/dummy_to_midi.sc
index 34baee8..42d8b49 100755
--- a/ignore/dummy_to_midi.sc
+++ b/ignore/dummy_to_midi.sc
@@ -24,9 +24,7 @@
*/
{
- var hostname, rx, tx, rate, chimconf, chimin, chimout;
-
- hostname = "hostname".unixCmdGetStdOutLines[0]++".local";
+ var rx, tx, rate, chimconf, chimin, chimout;
thisProcess.openUDPPort(3333); // open port 3333 to listen for Tuio messages
thisProcess.openUDPPort(4444); // open port 4444 for listening to chimaera configuration replies
@@ -38,8 +36,12 @@
rate = 3000;
chimconf.sendMsg("/engines/reset");
- chimconf.sendMsg("/engines/address", hostname++":"++3333); // send output stream to port 3333
chimconf.sendMsg("/engines/offset", 0.002);
+
+ chimconf.sendMsg("/engines/enabled", false);
+ chimconf.sendMsg("/engines/server", true);
+ chimconf.sendMsg("/engines/mode", "osc.tcp");
+ chimconf.sendMsg("/engines/enabled", true, {|msg| rx.connect;}); // connect via TCP
chimconf.sendMsg("/sensors/rate", rate);
chimconf.sendMsg("/sensors/group/reset"); // reset groups