aboutsummaryrefslogtreecommitdiffstats
path: root/Bowelyzer.sc
diff options
context:
space:
mode:
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