-
... ds all items of an input demand ugen first before looking up the next index. // example ( { var d, trig; d = Dswitch ([ Dwhite (3, 4, 2), Dwhite (0, 1, 2), Dseq ([1, 1, 1, 0], 2) ], Dseq ([0, 1, 2, 1, 0], 2)); trig = Impulse .kr(4); SinOsc ...
-
... rom two adjacent channels. SelectX.ar(which, array) SelectX.kr(which, array) // examples ( { var a; a = [ SinOsc .ar, Saw .ar(300), Pulse .ar(230) ]; SelectX .ar( MouseX.kr(0, 1) * a.size , a) * 0.2 }.play; ) ( { var a; a = [ SinOsc .kr(0.2 ...
-
... ransient response times, but may introduce amplitude modulation artifacts. ( // example signal to process Synth .play({ var z; z = Decay2 .ar( Impulse .ar(8, LFSaw .kr(0.25, -0.6, 0.7)), 0.001, 0.3, FSinOsc .ar(500)); }, 0.8) ) ( Synth .pla ...
-
... ugens length number of repeats structurally related: Pshuf see also: Demand // example ( { var a, freq, trig; a = Dseq ([ Dshuf ([1, 3, 2, 7, 8.5], 3)], inf ); trig = Impulse .kr( MouseX .kr(1, 40, 1)); freq = Demand .kr(trig, 0, a) * 30 + ...
-
... esting, and parallelizing Pfx or Pfxb patterns using Ppar and its cousins. This example uses Pfxb to isolate a pair of separately-sounding patterns on different buses, and to pass the two signals' streams through separate volume controls. T ...
-
... ted from an array of inputs. Select.ar(which, array) Select.kr(which, array) // examples ( { var a, cycle; a = [ SinOsc .ar, Saw .ar, Pulse .ar ]; cycle = a.size * 0.5; Select .ar( LFSaw .kr(1.0,0.0,cycle,cycle),a) * 0.2 }.play; ) Note: all ...
-
... 0, 200, 300]))); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , { arg out=0, freq=440, sustain=0.02; var env; env = EnvGen .kr( Env .perc(0.001, sustain), 1, doneAction:2); Out .ar(out, SinO ...
-
... ect : SCView : SCStaticTextBase : SCDragView See SCDragView for description and examples, and SCView for a general description of the drag and drop mechanism. Creation / Class Methods *new (parent, bounds) parent - the parent view. bounds - ...
-
... doneAction of the EnvGen (default: 2) curve envelope curve (default: 'sin') // examples a = { LPF .ar( Saw .ar(200), 600) * EnvGate .new }.play; a.set( \fadeTime , 2); a.release; // the same as: a.set( \gate , 0); // several env gates can ...
-
... mula is equivalent to: out(i) = (a0 * in(i)) + (a1 * in(i-1)) + (b1 * out(i-1)) Examples: ( // same as OnePole { var x; x = LFTri .ar(0.4, 0, 0.99); FOS .ar( LFSaw .ar(200, 0, 0.2), 1 - x.abs, 0.0, x) }.play; ) ( // same as OneZero { var x; ...