-
... .001, 0.2, 5, doneAction: 2)).tanh ! 2); }).add; // more activity creates wider melody jumps, // and higher amplitude/distortion Tdef(\ting, { loop { if (a.level > 0) { (instrument: \ting, note: (12 * a.level.rand2.clip2(4)), amp: a.level). ...
-
... rom time to time, the continuity should still be audible. ( var melodies = ( lowMelody: Pseries(4, Prand(#[-2, -1, 1, 2], inf), inf).fold(-7, 11), highMelody: Pseries(14, Prand(#[-3, -2, 2, 3], inf), inf).fold(7, 18) ); p = Pbind( \degree, ...
-
... me.dirname +/+ "CS_examples/ContextSnake_Palestrina.scd").openOS; ) code:: // A melody which can go up only in steps, and down only in thirds; // can begin with 0, 7, or 6; can end with 7, 4 or 0. b = [ (0..7), [7, 5, 3, 1, 2, 3, 4], [6, 4, ...
-
... instead of just one. The \degree pattern applies a set of chord intervals to a melody that's always on top. It's a compound pattern, Pseries(...) + Prand(...), where Pseries returns a single number and Prand returns an array. As with regul ...
-
... supply it at play time: // key of A Pbind( \degree, Pseq((0..7), inf), // your melody goes here \scale, Scale.major, // your scale goes here \root, -3 // semitones relative to 60.midicps, so this is A ).play; ⧉ ✔ helpfile source: /usr/loca ...
-
... ; #[63,65].choose.yield; 67.yield; #[70,72,74].choose.yield; }); // random high melody rrand(3,9).do({ #[74,75,77,79,81].choose.yield }); }); }); Routine({ loop({ Synth(\help_SPE1, [ \freq, stream.next.midicps ] ); dur.wait; // synonym for ...
-
... 64],[57,60,65]]); Paddp(\ctranspose, Prand([-1,0,2,4,5], inf), Ppar([ Pbind( // melody part \dur, Prand([0.2, 0.4, 0.6], inf), \midinote, Pxrand([71, 72, 74, 76, 77, 79], 10), \db, -26, \legato, 1.1 ), Pbind( // harmony part \pan, 0.4, \dur ...
-
... 2); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) // translating characters in melody ( k = Pseq("ab"); c = [ "a" -> "ba", "b" -> "ca" ]; d = Dictionary[ $a -> 0, $b -> 5, $c -> 3 ]; z = Pdict(d, // apply homomorphism (final translation) k ...
-
... , //track item #[0, 1, 2, 3] //track active sections (when to play) ); RedTrk( \melody, Pbind(\degree, Pseq([0, 5, 2, 3, 3, 1], inf), \dur, Pseq([0.25, 0.25, 0.5], inf)), #[1, 2, 5] ); RedTrk( \melody2, Pbind(\degree, Pseq([7, 6, 4, 3], inf ...
-
... material Pattern Guide Cookbook 06: Phrase Network Building a more complicated melody using shorter phrase patterns Also illustrates PmonoArtic for portamento with articulation Pattern Guide Cookbook 07: Rhythmic Variations An ever-changin ...