Commits

dan mackinlay committed c7dd50f

newRandom class method

  • Participants
  • Parent commits 064f152

Comments (0)

Files changed (2)

 ~ind = PSSynthDefPhenome([0.5, 0.5, 0.5]);
 ~control.playIndividual(~ind);
 ~ind.identityHash;
+~ind.chromosome;
 ~control.all.do({|a,b,c| [a,b,c].postln;});
 )
+
+
+/* TODO:
+
+* provide a way to unwarp as well as warp chromosomes, and look up values of either. 
+
+*/

phenosynth/phenomes.sc

       this.setUpSynthDefs;
     }
   }
+  *newRandom {
+    var newChromosome = {1.0.rand;}.dup(genomeSize);
+    ^this.new(newChromosome);
+  }
   *setUpSynthDefs {
     SynthDef.writeOnce(
       \ps_reson_saw,