-
... nt ( event , val ) Examples ( var a, b; a = Pmulp(\freq, Pseq([2, 3, pi], inf), Pbind(\freq, Pseq([100, 200, 300]))); x = a.asStream; 9.do({ x.next(Event.new).postln }); ) ⧉ ✔ // sound example ( SynthDef(\sinegrain, { |out = 0, freq = 440, ...
-
... most of the time. Empirically, 3.0 usually sounds too extreme to my ear. ( p = Pbind( \degree, Pseq([0, 2, 4, 5, 8], inf), \dur, PwarpDur(0.125, 4, curve: 1.5, midpoint: 0.5, repeats: 3), \legato, 1.5 ).play; ) ⧉ ✔ Midpoint // midpoint = 0 ...
-
... rc| ~legato = value.linlin(0, 127, 0.1, 2.5) }, 1); // 1 means modwheel ) ( p = Pbind( \degree, Pwhite(-7, 12, inf), \dur, Pwrand([0.25, Pn(0.125, 2)], #[0.8, 0.2], inf), \legato, Pfunc { ~legato } // retrieves value set by MIDI control ).p ...
-
... sharing data between eachother */ // a melody playing random scale degrees a = Pbind( \dur, 0.125, \octave, 4, \degree, Plet(\melody, pattern: Pwhite(0, 7)) ); // the bass, scale degrees sampled from the \melody variable defined above b = ...
-
... nerate notes: ~kik = Penvir(~kikEnvir, Pn(Plazy({ ~init.value; ~addNotes.value; Pbindf( Pbind( \instrument, \kik, \preamp, 0.4, \dur, 0.25, *(~pbindPairs.value(#[amp, decay2])) ), \freq, Pif(Pkey(\amp) > 0, 1, \rest) ) }), inf)).play(quant: ...
-
... EventShortcuts.postAll // play an Event with midinote 70 (m: 70).play // play a Pbind ( Pbind( \m, Pwhite(60, 90, 20) + [0, -7], // midinote \p, Pwhite(-1.0, 1), // pan \l, 3, // legato \s, 0.1, // strum \d, 0.5 // dur ).play ) // define ne ...
-
... 1, 200, 8000), 0.1).softclip * 0.8); }, [\ir, 0]).add; ) ( var p, q, r, o; p = Pbind(\degree, Prand((0..7), 12), \dur, 0.3, \legato, 0.2); q = Pfxb(p, \echo, \dtime, 0.2, \decay, 3); r = Pfxb(q, \distort, \pregain, 20, \amp, 0.25); o = Pfx ...
-
... ct monophonic event stream Source: Patterns.sc Subclasses: PmonoArtic See also: Pbind , PmonoArtic Description Plays one instance of a Synth . The pattern pairs define changes in that one synth's controls. This node is created when entering ...
-
... immediate loop change by setting doSkip to 1 ~lookBack = 0; ~doSkip = true; p = Pbind( \dur, 1/5, \midinote, PSloop( Prand((60..80), inf), bufSize: 10, lookBack: { ~lookBack }, doSkip: { ~doSkip } ) ).play ) // wait a bit to fill buffer // ...
-
... parate buses. Pfxb handles this isolation automatically: two patterns like Pfxb(Pbind(...), \fxname, \effectargName, value, \name, value...) will play on separate buses and their signals will not interfere with each other. Effects that shou ...