-
... World3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //--loop ~win.draw{ Pen.strokeColor= Color.white; ~world.objects.do{|o| o.addForce(o.world.gravity); o.update; o.world.contain(o); //--render Pen.strokeRect(Rect.ab ...
-
... y data responds to the operation methods and what section of // the phrase will loop when it's streamed. Phrase{ var <initialPhrase, <>phrase; var <returnProbs, <returnBools, <>loopReturns; var <regionStart, <regionLength, <pos, <seed; var ...
-
... a fader", "Fader1", 600, 200, 100, 724); // Automate to move p = 0; t = Task({ loop { l.fader("Update a fader", "Fader1", p); p=p+50%924; 0.2.wait; }}).play; t.stop; // Add 30 faders to Lemur on a new page. l.page("Bunch of faders"); 30 do ...
-
... 2| var in, chain; in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1); chain = FFT(bufnum, in); chain = PV_MagSquared(chain); Out.ar(out, 0.003 * IFFT(chain).dup); }).play(s, [\out, 0, \bufnum, b.bufnum, \soundBufnum, c.b ...
-
... bufnum: buf, phase: PhasorTJ.ar(BufDur.ir(buf).reciprocal) * BufFrames.ir(buf), loop: 1, interpolation: 2 ); }.play; x.free SCDoc.indexAllDocuments(true)
-
... 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 ...
-
... // string, voice b.play; play{ PlayBuf.ar(1, b, BufRateScale.kr(b) * 0.5, loop:1)!2 } And you have to clean up your rendering directory with: SpeechBuffer.cleanUp // or: SpeechRender.cleanUp If maybe someone want, this could ...
-
... litHalf splitAfter splitBefore splitNextMax splitNextMin splitN Transformations loop internalloop internalloopcopy env interleave sortBy reverse Export and Playback play write Helper methods nodecount parent flat length howDeep performOnPer ...
-
... 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 ...