-
... nal value is truncated to an integer value and used as an index into the table. Out of range index values are clipped to the valid range. bufnum - index of the buffer in - the input signal. See also: IndexInBetween // indexing into a fixed ...
-
... rg freq=800; var osc; osc = SinOsc .ar(freq, 0, 0.1); // 800 Hz sine oscillator Out .ar(0, osc); // send output to audio bus zero. }).writeDefFile; // write the def to disk in the default directory synthdefs/ ) Send the SynthDef to the serv ...
-
... y executing blocks of code. // do this ( x = SynthDef ( "Help-SynthDef" , { arg out=0; Out .ar(out, PinkNoise .ar(0.1)) }).play; // SynthDef-play returns a Synth object. ) // then do this ( SynthDef ( "help-Rand" , { arg out=0; Out .ar(out, ...
-
... ger anytime a bus is set Inherits from: Object : AbstractFunction : UGen : MultiOutUGen : AbstractIn *kr(bus, numChannels) bus - the index of the bus to read in from. numChannels - the number of channels (i.e. adjacent buses) to read in. Th ...
-
... is derived from the number of synths running ( SynthDef ( "numRunning" , { arg out; Out .ar(out, SinOsc .ar( NumRunningSynths .ir * 200 + 400, 0, 0.1)); }).send(s); ) s.sendMsg( "/s_new" , "numRunning" , -1, 0, 0); s.sendMsg( "/s_new" , "n ...
-
... e counter PulseCount.ar(trig, reset) Each trigger increments a counter which is output as a signal. trig - trigger. Trigger can be any signal. A trigger happens when the signal changes from non-positive to positive. reset - resets the count ...
-
... de and an index. this object can be held by a client and have its value set without otherwise having to store the details about where the node's input is. d = SynthDef ( "help-NodeControl" ,{ arg out=0,freq=400; Out .ar(out, SinOsc .ar(freq ...
-
... utions from lo to hi. See also: LinRand , Rand ( SynthDef ( \help_ExpRand , { | out = 0, n = 0 | Out .ar(out, FSinOsc .ar( ExpRand (100.0, 8000.0, n), 0, Line .kr(0.2, 0, 0.01, doneAction:2)) ) }).send(s); ) ( Routine ({ inf .do({ arg i; Sy ...
-
... - input signal see also: FreeSelf // example ( SynthDef ( \pauseSelf_help , { |out, t_trig| PauseSelf .kr(t_trig); Out .ar(out, SinOsc .ar(400,0,0.2)); }).send(s); ) a = Synth ( \pauseSelf_help ); a.set( \t_trig , 1); a.run( true ); a.set( ...
-
... 20],20) }; ~ctl2[1] = { LFNoise2 .kr([20,20],20) * LFNoise0 .kr([20,20],20) }; ~out = { SinOsc .ar(~freq.kr, 0, 0.1) }; ~freq[0] = { ~ctl1.kr(2) + ~ctl2.kr(2) + 400 }; ~freq[5] = ~ctl1.wrap2(~ctl2) * ~ctl1 / (~ctl2 + ~ctl1); ~pat = Pbind(\f ...