Commits

dan mackinlay  committed d94eb45

actually handle loading of SynthDef and input mapping at startup

  • Participants
  • Parent commits cf7ad03

Comments (0)

Files changed (2)

File phenosynth.scd

 ~p2.free;
 ~genosynth.all;
 
-ControlSpec
-
+(
 s=Server.default;
 ~control = PSListenSynthController.new(s);
 ~control.playGroup;
 ~control.server;
 ~control.outBus;
+~ind = PSSynthDefPhenome([0.5, 0.5, 0.5]);
+~control.playIndividual(~ind);
 )

File phenosynth/phenomes.sc

   classvar <genomeSize = 3;
   classvar <map;
   *initClass {
-    Startup.add {
+    StartUp.add {
       this.setUpSynthDefs;
     }
   }
-  setUpSynthDefs {
+  *setUpSynthDefs {
     SynthDef.writeOnce(
       \ps_reson_saw,
       {|out=0, gate=0, t_reset=0, pitch, ffreq, rq|
   }
   chromosomeAsSynthArgs {
     ^all {: [keySpec[0], keySpec[1].map(val)],
-      keySpec <- map.asSortedArray,
+      keySpec <- this.class.map.asSortedArray,
       val <- chromosome
     };
   }