// title: Pisano Melodies // author: henk.lasschuit // description: // Pisano Periods are used to generate melodies // code: /* The Fibonacci-sequence as controlsignal: melodies from Pisano Periods. Because the sequence runs more or less exponentially, it seems best to assign the values to frequencies. */ s.boot; SynthDef( \puls, {|freq=30, out| Out.ar(out, SinOsc.ar(freq, mul: 0.5*EnvGen.kr(Env.perc(0.01,0.75), doneAction: 2)),0) }).add; ( m=3000; //max index, 5 minutes = 300 when dur=0.1 a=Array.newClear(m);//two arrays to store numbers from the Pisano Periods b=Array.newClear(m); a.put(0,0); a.put(1,1); d=2; //even divisor i=2; //index while ({i