aboutsummaryrefslogtreecommitdiffstats
path: root/Bowelyzer.sc
blob: 5708368a9b343ed794b2a5dc1fba1ae8078463a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Bowelyzer{

  var gui, <server, <analyzer, <config, <hub;

  *new{
    arg configFile;
    ^super.new.init(configFile);
  }

  init{
    //initialize with configuration, if available (else use default)
    arg configFile;
    config = BowelyzerConfig.new(configFile);
    server = Server.new(\bowelyzer, BowelyzerOSCHub.getNetAddr(config.config.at("synthServerAddress"), config.config.at("synthServerPort")));
    Server.default = server;
    server.waitForBoot({
      hub = BowelyzerOSCHub.new(config.config);
      analyzer = BowelyzerAnalyzer.new(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;
  }



}