-
... tep3add Pstep2add Pwhite Pbrown Pgeom Pseries Pbind Pevent Pnaryop Pbinop Punop Pfuncn Prout Proutine Pfunc The following lists all the Pattern classes where embedInStream uses the default Pattern-embedInStream. These create a new stream wh ...
-
... am; ) x.next; x.next; x.next; // post time in a playing event stream ( Pbind ( \pfunc , Ptime .new.trace, \dur , Pseries (0.5, 0.5, 5) ).play; ) // change degree independant of number of events that have been playing ( var a, b; a = Pbind ( ...
-
... }; ~freq[5] = ~ctl1.wrap2(~ctl2) * ~ctl1 / (~ctl2 + ~ctl1); ~pat = Pbind(\freq, Pfunc({ 1.2.rand })); ~z = 9; ~out.set(\freq, 760, \ffreq, 20); ) p.asCompileString; // the document message creates a new document which it posts the code into ...
-
... ss named Pattern that provides more functionality for the concept of a pattern. Pfunc is a Pattern that returns a FuncStream. The same function arguments are supplied as are supplied to FuncStream. ( var a, b; a = Pfunc .new({ #[1, 2, 3, 4] ...
-
... ([0, -4, -2, -4, -3, -4, -3, -4], inf ) - 20 ), 0.2), Pstep ( Pbind ( \degree , Pfunc ({ {10.rand}.dup(10) }), \scale , Pfunc ({ {rrand(1, 2)}.dup(7).integrate }) ), 5 ) ).play ) // change one parameter ( Pbind ( \degree , Pstep ( Pseq ([1, ...
-
... or setting default values or loading server objects. Pfset(func, pattern, cleanupFunc) func: Use environment variable syntax (e.g., ~x = 0) to store values in the internal environment. These values are copied into the event prototype before ...
-
... I, the best approach is to save an incoming value into a variable, and then use Pfunc to access the variable for each event. ( ~legato = 1; c = CCResponder ({ |src, chan, num, value| ~legato = value.linlin(0, 127, 0.1, 2.5) }, num: 1); // n ...
-
... value pattern). Access to the environment depends on function-driven patterns: Pfunc, Pfuncn, Proutine, .collect, .select, .reject, and similar. The 'independent' flag specifies whether the environment will be kept separate for each stream ...
-
... should never be called from within the function that defines a FuncStream or a Pfunc (the pattern that creates FuncStreams). Event Patterns An Event is a Environment with a 'play' method. Typically, an Event consists of a collection of key ...
-
... tes p = Pbind ( \freq , Pwhite (0,log(32)).exp.round(1) * 36.midicps, \detune , Pfunc ({ | ev | ev[ \freq ] * rand(0.01) }), \sustain , Pwhite (log(0.1), log(20)).exp, \dur , Prand ([0.1,0.1,0.1,0.1,0.2,1,2], inf ), \db , Pstep ( Pseq ([-20 ...