// UPDATE:
// Added some sounds to SCSCC-7
// Deluxe edition.
// - - - - - - - - - - - - - - - - - - - - - - - - -
addFlowLayout(w=Window().front,m=0@0,m);{|n|UserView(w,Rect(0,0,t=80,t)).animate_(1>0).frameRate_(0.3.rand).drawFunc={rotate(Pen,choose((..3)/2)*pi,*40!2).addWedge(0@t,t,pi,pi).fill;play{Blip.ar(round(12+t.rand,n).midicps,n)*kr(Env.perc,2)!2/33}}}!25;\
// SCSCC-47 "Toggle bits and wrap them"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Interactive!!!
play{LocalOut.ar(o=LPZ2.ar(LeakDC.ar(Select.ar(ar(z=LFSaw,sum(i=ToggleFF.ar(CoinGate.ar(MouseY.kr!8/3,z.ar(LocalIn.ar+1*MouseX.kr(0,23pi))))*(128>>_!8))+f=i.sum.tan)+1*4.3-1,i)/2,z.ar(-1*f)*0s5+1b5).wrap2));o!2/8}
So I have tickets to this year's Gulaschprogrammiernacht. Tradition demands that I give a #SuperCollider workshop, doesn't it?
// SCSCC-34 "Cellular Automata" Updated.
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
a={|r|q=put(0!w=64,h=w/2,1);m=(asDigits(_,2,3)!8)[7..0];{{|n|if(q@n>0,"█"," ").post}!w;Post.nl;g=q;q=[];g={|n|c=g@@(n-1..n+1);{|n|if(m@n==c,{if(asDigits(r,2,8)@n>0,{q=q++1},{q=q++0})})}!8}!w}!h;\};fork{{|i|a.(i);Env.perc.test;1.wait}!255} // Pass the rule to function. I.e. a.(rule)
// TIL You can use the method .test on Envelopes.
// SCSCC-46 "SizeCodingClub"
// - - - - - - - - - - - - - - - - - - - - - - - -
fork{loop{play{ar(Saw,c="\\ _-/ #SCSCC".choose.post.ascii*[1,3],kr(Env.perc(0,0s,1),2))/2};choose((1..3)/11).wait}}
// Getting close 50…
// SCSCC-45
// - - - - - - - - - - - - - - - - - - - - - - - - -
// Lullaby sub 140 version
play{ar(b=Blip,Select.kr(QuadN.ar(r=1<<_!3*1s,(..2)/9+1)+1*18,(12*_!3)+.x[0,2,3,5,7,10]+.x[19,0]).midiratio*49,2+e=b.ar(r,3),e).sum!2/9}
// Lullaby sub 200 version
play{Splay.ar(ar(b=Blip,ar(b,3s,33)/3+1*Select.kr(QuadN.ar(r=1<<_!3*1s,(0..2)/9+1)+1*18,(12*_!3)+.x[0,2,3,5,7,10]+.x[19,0]).midiratio*49,(a=LFSaw.ar(-1*r,1).max.lag(0s5))+3,a**3+(a**0.3)+0s))/8}

10 track album
WORKSHOP: Coding Musical Patterns - Algorithmic Composition, Generative Growth, and the Music of Math
Mads Kjeldgaard
Saturday 25.4.26 and Sunday 26.4.26
11am - 4pm with breaks
at Morphine Raum in Berlin, Germany. Organized by Hyperlinear. Poster by @joegilmore. More info below.
#supercollider #algorithmiccomposition #generative #generativeart #computermusic