-
... re default repeats = inf of PLshuf has no effect: // new permutation with every loop as Pshuf has repeats = 1 ~a = [ Pshuf((60..65)), 70, PLshuf((75..80)) ]; // both Patterns have repeats = inf, // permutation is kept ~a = [ PLshuf((60..65) ...
-
... aybuf part of wslib PlayBufCF .ar(numChannels, bufnum, rate, trigger, startPos, loop, lag, n ) Arguments are the same as PlayBuf . But PlayBufCF makes a crossfade every time it is triggered. In order to do so it uses two PlayBufs internally ...
-
... 0, 2], Pseq([74, 75, 76, 77]), #[2, 3, 3], nil, nil ], inf).asStream; Routine({ loop({ Synth(\help_sinegrain, [\freq, a.next.midicps]); 0.1.wait; }) }).play; ) ( Pfsm([ #[5, 6, 7], // entry states // e1 (== state 0) Pbind(\dur, Pseq([1/8, 3 ...
-
... ; } }.play(x) ) x.advance(0.1); x.seconds; x.advance(5); x.seconds; ( Routine { loop { x.advance(0.1); 0.1.wait } }.play; ) ( Task { 5.do { x.advance(1); 2.0.rand.wait; } }.play; ) x.advance(8.1); Pbind ( \degree , Pseries (0, 2, 8), \dur , ...
-
... (key: 'play', midiNum: 118, style: (row: 2, column: 12.8, width: 0.8)), (key: 'loop', midiNum: 120, style: (row: 2, column: 13.4, width: 0.8)), (key: 'rec', midiNum: 119, style: (row: 2, column: 14.0, width: 0.8)) ] ), ( key: 'sl', shared: ...
-
... 30 notes within the specified duration"). ( p = Pspawner { |sp| var notes, dur; loop { notes = Pseries( rrand(-9, -5), Pconst(16, Pwrand([1, 2, 3, 4], [1, 4, 4, 2].normalizeSum, inf)), inf ).asStream.all; dur = exprand(2.5, 6.0); sp.par(Pbi ...
-
... // This means that the Phasor will output values from 0 to numFrames - 1 before looping, // which is perfect for driving BufRd. (See note above) { BufRd .ar(1, b, Phasor .ar(0, BufRateScale .kr(b), 0, BufFrames .kr(b))) }.play; // two phaso ...
-
... sPerBeat).reciprocal; ticks = ticks + 1; beats = ticks / ticksPerBeat; // while loop needed because more than one thing may be scheduled for this tick { (queue.topPriority ?? { inf }) < ticks }.while({ // perform the action, and check if it ...
-
... oise0.ar(530).range(0, BufFrames.kr(buf))); PlayBuf.ar(2, buf, MouseX.kr(1, 2), loop: 1) * 0.1 }.play ) // avoid this (unless you like the glitch) by clearing buffer first: ( { var buf = LocalBuf(2048, 2).clear; BufWr.ar(WhiteNoise.ar(1.dup ...
-
... :2); Out.ar( out, Pan2.ar(index * 0.1, LFNoise1.kr(1)) ) }).send(s); ) ( fork { loop { Synth(\post, [\bufnum, b.bufnum]); rrand(0.3, 0.6).wait; } } ) // slowly play the classic example system by Emil Post ( b.zero; // empty the buffer. { va ...