-
... ighMelody: Pseries (14, Prand (#[-3, -2, 2, 3], inf ), inf ).fold(7, 18) ); p = Pbind ( \degree , Pnsym1 ( Pwrand (#[lowMelody, highMelody], [0.7, 0.3], inf ), melodies), \dur , Pwrand (#[0.25, 0.5], #[0.4, 0.6], inf ) ).play; ) p.stop; Rea ...
-
... sum = snd1 + snd2; Out.ar(out, Pan2.ar(sum, pan)); }).add; ) ) //Pbinds ( ~intropluck = Pbind( \instrument, "plucking", \degree, Pseq([15, 8, 8, 15, 8, 8, 16, 12, 16, 12, 12, 16, 12, 12, 15, \rest], inf), \mtr ...
-
... in the song propper. ~transp1 = 0; ~transp2 = ~transp1 - 1; { var chords = Pbind( \instrument, \sawSynth, \midinote, Pseq([ [35, 38, 42], [31, 35, 38], [28, 31, 35], [35, 38, 43] ] + ~transp1, inf) + 12, \dur, 8, ...
-
... r(0, snd ); }).add; ) //play here ( { t = TempoClock(128/60); Pbind( \instrument, \kick, \freq, 60, \dur, Pseq([2, 2, 2, 2, 1, 1, 1, 1, 0.5, 0.5, 0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.125, 0.125, 0.125, 0.125, 0.125, 0 ...
-
... s; s.boot; ) // definition for future reference in arbitrary Environments ( p = Pbind( \midinote, PLseq(\a), \dur, 0.1 ); ) // assign a value to variable ~a in current Environment, // play there. // PLseq defaults to repeats = inf, Pseq def ...
-
... snd = Pan2.ar(snd, panning); Out.ar(0, snd); }).add; ) ( ~a = Pbind( \instrument, "gran1", \rate, Pseq([1, 1], 4), \amp, 0.3, \startPos, Pseq([0.3523, 0.505], inf), \attack, 0.01, \release, 0.3, ...
-
... repeated notes with a different rhythmic value per new pitch // using Pdup p = Pbind( // making 'n' a separate stream so that degree and dur can share it \n, Pwhite(3, 10, inf), \degree, Pdup(Pkey(\n), Pwhite(-4, 11, inf)), \dur, Pdup(Pkey ...
-
... ); }).add; ) // end of SynthDef code // ======================== // Pbind collection // // tip: to work on a Pbind separately, copy and paste it // into a new window, add .play at end for convenience // (change/listen/change ...
-
... ts, in the sequence: up, up, down (repeat) ( TempoClock .default.tempo = 1; p = Pbind ( \degree , Pseq ([ Pseries ({ rrand(0, 7) }, 1, { rrand(4, 8) }), // up (step = 1) Pseries ({ rrand(0, 7) }, 1, { rrand(4, 8) }), // up (step = 1) Pserie ...
-
... ag.kr(freq, gliss), mul: env); Out.ar(0, [snd, snd]) }).add; ) ////// //Pbinds /////// ( ~introp = Pbind( \dur, Pseq([Rest(1), 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1], 1), \midinote, Pseq([\rest, [73, 69, 66], [73 ...