{
   "author" : "mimetikmusic",
   "name" : "Periodic Carillion",
   "ancestor_list" : [],
   "description" : "A little experiment with periodicity.",
   "labels" : [
      "periodic ambient study"
   ],
   "id" : "1-4S3",
   "is_private" : null,
   "code" : "/* An little experiment with periodicity. \r\n      Maybe there can be some sync artifact...\r\n */\r\n\r\ns.boot;\r\n\r\nSynthDef(\\mallet,{arg in=0,out=0,f=0,f2=0,a=0.1,r=1.8;\r\n\r\n         var sig=Array.fill(3,{|n| SinOsc.ar(f*(n+1),mul:a/(n*n+1))}).sum;\r\n         var env=EnvGen.kr(Env.perc(0.001,r),gate:Impulse.kr(f2),doneAction:0);\r\n\r\nOut.ar(out,sig*env!2);\r\n};\r\n).add;\r\n\r\n~root=60;\r\n~degrees=[0,4,5,7,9,12,16,17,19,21].scramble;\r\n~num=10;\r\n~coeff=0.75;\r\n\r\nArray.fill(~num,{|n| Synth.new(\\mallet,[\\f:(~root +~degrees[n]).midicps,\\a:0.2/~num,\\f2:(1+(n*~coeff))*0.1])});\r\n\r\ns.quit;"
}
