-
... le // while this is running, test your device ( a = Phid (0,0); x = a.asStream; Routine ({ loop({ x.next.postln; 0.2.wait; }) }).play; ) // using devicespecs: // for example wingman. for other specs see [HIDDeviceService] ( HIDDeviceService ...
-
... Env([0,0.1,0.1,0],[0.01,1.0,0.01],[-4,4],2), gate, doneAction: 2) ) }).send(s); Routine ({ 1.0.wait; 100.do({ s.sendBundle(0.05,["s_new", "trig1" ,-1,0,0,0,rrand(0.02,0.25)]); 0.25.wait }) }).play( SystemClock ) ) This should sound like a c ...
-
... 0.6, 1.0, doneAction: 2) * SinOsc .ar(440, 0, 0.1) }.play; ) // used below in a Routine varying the releaseTime ( SynthDef ( \help_Linen , { arg out=0, freq=440, attackTime=0.01, susLevel=0.6, releaseTime=0.1; Out .ar(out, Linen .kr( Impuls ...
-
... EventPatternProxy instead of a pattern, a function can be passed in, creating a routine. *default a default source, if none is given. the default is 1.0 (it is not 0.0 in order to make it safe for durations) source_(obj) set the source. If ...
-
... r; z.postln; z.source.postln; ) fork(join, clock, quant, stackSize) Used within Routine s and assumes an array of functions, from which subroutines are created. The subroutines are played while the outer Routine carries on. The join paramet ...
-
... [0, 0, 0, 0, 8, 0, 8], inf ), Pseries (1, 1, 32) ], inf ) + 67; x = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , x.next.midicps, \dur , 0.2]); 0.17.wait; }) }).play; ) // a more complicated example: ( c = Ppatlace ([ Px ...
-
... nd 1 FSinOsc .ar(500, 0, Line .kr(0.2, 0, 0.1, doneAction:2)) ) }).send(s); ) ( Routine({ 16.do({ Synth .new( "help-IRand" ); 0.5.wait; }) }).play; )
-
... s that it makes sense to schedule objects that will take some action . Function Routine Task Routines and Tasks will be covered in the next section, and Functions we have already seen. There are some others, but these are the best starting ...
-
... a Pattern will help illustrate the usefulness of Patterns. example 1 - Pseq vs. Routine The Pattern class Pseq(array, repetitions) defines a Pattern that will create a Stream that iterates an array. The class Routine(func, stackSize) define ...
-
... (100.0, 8000.0, n), 0, Line .kr(0.2, 0, 0.01, doneAction:2)) ) }).send(s); ) ( Routine ({ inf .do({ arg i; Synth .new( \help_ExpRand ); 0.05.wait; }) }).play; )