From 74bb3e3290d8f4ea82b2caf79f4b96bb7991faad Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 29 May 2016 13:38:07 +0200 Subject: 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. --- Bowelyzer.sc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Bowelyzer.sc (limited to 'Bowelyzer.sc') 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 -- cgit v1.2.3-54-g00ecf