aboutsummaryrefslogtreecommitdiffstats
path: root/Bowelyzer.sc
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-05-29 13:38:07 +0200
committerDavid Runge <dave@sleepmap.de>2016-05-29 13:38:07 +0200
commit74bb3e3290d8f4ea82b2caf79f4b96bb7991faad (patch)
tree2da93c9e1923893ec752108733397204821e273d /Bowelyzer.sc
parent33d8b5bff1feb3c35fc049e29fcaca985d50520b (diff)
downloadbowelyzer-74bb3e3290d8f4ea82b2caf79f4b96bb7991faad.tar.gz
bowelyzer-74bb3e3290d8f4ea82b2caf79f4b96bb7991faad.tar.bz2
bowelyzer-74bb3e3290d8f4ea82b2caf79f4b96bb7991faad.tar.xz
bowelyzer-74bb3e3290d8f4ea82b2caf79f4b96bb7991faad.zip
First commit of bowelyzer code. Includes Bowelyzer.sc, Bowelyzer{Analyzer,Config,OSCHub}.sc, bowelyzer.scd (for help) and darmstadt.json for a standard configuration in JSON.
Diffstat (limited to 'Bowelyzer.sc')
-rw-r--r--Bowelyzer.sc30
1 files changed, 30 insertions, 0 deletions
diff --git a/Bowelyzer.sc b/Bowelyzer.sc
new file mode 100644
index 0000000..3e2be34
--- /dev/null
+++ b/Bowelyzer.sc
@@ -0,0 +1,30 @@
+Bowelyzer{
+
+ var gui, <>server, <>analyzer, <>config, <>hub;
+
+ *new{
+ arg config;
+ ^super.new.init(config);
+ }
+
+ init{
+ //initialize with configuration, if available (else use default)
+ arg config;
+ this.config = BowelyzerConfig.new(config);
+ server = Server.new(\bowelyzer, BowelyzerOSCHub.getNetAddr(this.config.config.at("synthServerAddress"), this.config.config.at("synthServerPort")));
+ Server.default = server;
+ server.waitForBoot({
+ analyzer = BowelyzerAnalyzer.new(this.config.config);
+ hub = BowelyzerOSCHub.new(this.config.config);
+ },
+ 5,
+ {"scsynth failed to start!".postln});
+ //meter = ServerMeter.new(server, this.config.config.at(\channels));
+ //server.meter(this.config.config.at(\channels));
+ //server.makeGUI;
+ //server.scope;
+ }
+
+
+
+} \ No newline at end of file