-
... Timer; if( timeBase.next === \seconds ) { i = freq.next * UPattern.startPos; }; loop { (((i % 1) * 2pi) + phase.next).sin.linlin(-1,1,min.next,max.next).yield; switch( timeBase.next, \events, { i = i + freq.next; }, \seconds, { i = i + (fre ...
-
... 0, 0], 1.5, 10); trg= RedObject(world, RedVector2D[width*0.5, height*0.5]); //--loop w.draw{ if(mp!=w.mouse, { //just to keep target in middle if no mouse input trg.loc= w.mouse; }); obj.spring(trg, 0.1, 0.9, 50); //target, stiffness, dampi ...
-
... ; resolutionX= 160; resolutionY= 120; img= Image(resolutionX, resolutionY); //--loop w.draw{ cnt= cnt+speed%width; resolutionX.do{|i| x= i/resolutionX*2-1; resolutionY.do{|j| y= j/resolutionY*2-1; rad= x.sumsqr(y).sqrt*sin(cnt)*magnitude; t ...
-
... ocused.asString ); }; argsElement = d.createElement("args"); ([ pbRate: pbRate, loop: loop, input: input ] ++ args) .pairsDo({ |argName, argValue| argsElement.setAttribute( argName.asString, argValue.asString ) }); wfsSynthTag.appendChild( ...
-
... = Prewrite (0, ( 0: #[2,0], 1: #[0,0,1], 2: #[1,0,1] ), 4).asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , (a.next * 5 + 70).midicps]); 0.1.wait; }) }).play; )
-
... randSeed = seed.next.asControlInput; curr = lo.next rrand: hi.next; curr.yield; loop { llo = lo.next; hhi = hi.next; curr = (curr + (step.next.xrand2 * (hhi - llo))).fold( llo, hhi ); curr.yield; }; }.r; }).mappedArgs_([\lo, \hi ]) .setSpec ...
-
... ate: BufRateScale.kr(bufnum) * rate, startPos: BufFrames.kr(bufnum) * startPos, loop: 1); sig * trimDB.dbamp; };
-
... randSeed = seed.next.asControlInput; curr = lo.next rrand: hi.next; curr.yield; loop { llo = lo.next; hhi = hi.next; curr = (curr + (step.next.xrand2 * (hhi - llo))).fold( llo, hhi ); curr.yield; }; }.r; }).mappedArgs_([\lo, \hi ]) .setSpec ...
-
... ous.min(1)*voices[0].buf.numFrames; }, { ^0; }); } play {|path, out, amp, rate, loop, attack, curve, start, end, lag| forkIfNeeded{ var voice, buf; path= path.standardizePath; buf= this.findBuffer(path); if(buf.isNil, { //check that not alr ...
-
... at(k).size) }.join("\n") } size { ^this.notes.size; } *choose { |size = 16| var loop = this.chooseFromSelected { |x| (x.size == size) }; if(loop.isNil) { "No known chord with size %".format(size).warn }; ^loop } *chooseFromSelected { |selec ...