2 summary:: partition a value into n equal subdivisions
3 related:: Classes/Pstutter
4 categories:: Streams-Patterns-Events>Patterns>Repetition
8 A filter pattern designed for a stream of float durations.
10 Subdivides each duration by each stutter and yields that value stutter times. A stutter of 0 will skip the duration value, a stutter of 1 yields the duration value unaffected.
17 Pseq(#[1,1,1,1,1,2,2,2,2,2,0,1,3,4,0],inf),
18 Pseq(#[0.5, 1, 2, 0.25,0.25],inf)
21 100.do({ x.next.postln; });
26 SynthDef(\help_sinegrain,
27 { arg out=0, freq=440, sustain=0.05;
29 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
30 Out.ar(out, SinOsc.ar(freq, 0, env))
36 Pseq(#[1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4],inf),
37 Pseq(#[0.5, 1, 2, 0.25,0.25],inf)
43 Synth.grain(\help_sinegrain, [\freq, 440]);
46 }).play(TempoClock.default);
52 Pseq(#[1,1,1,1,1,2,2,2,2,2,3,3,3,3,4,4,0,4,4],inf),
53 Pseq(#[0.5, 1, 2, 0.25,0.25],inf)
58 Synth.grain(\help_sinegrain, [\freq, 440]);
61 }).play(TempoClock.default);
65 Frequencies like being divided too.
70 Pseq(#[1,1,1,1,1,2,2,2,2,2,3,3,3,3,4,4,0,4,4],inf),
71 Pseq((80 + [ 0, 2, 3, 5, 7, 9, 10 ]).midicps ,inf)
76 Synth.grain(\help_sinegrain, [\freq, x.next.postln]);
79 }).play(TempoClock.default);