«Another fibonaccy melody» by yl0506

on 04 May'13 11:12 in melody

Wow ! the conciseness of SuperCollider is wonderful ! We can make many attractive melodies !

1
2
3
4
5
6
(
c=13;a=Array.fib(64,0,1);b=Array.fill(size:c,function:{arg i;a[i]%12});
p=1/(21-c);Pdef(\x,Pbind(\dur,p,\degree,Pseq(b,1,0)));
r=Array.fill(c,{arg i;Pbindf(Pdef(\x),\mtranspose,1-b[i]);});
Pseq(r,(1/p)).play;
)
raw 217 chars (focus & ctrl+a+c to copy)
reception
comments