-
... a11wlk01-44_1.aiff" , 0); x.free; b.close; b.free; // cue and play right away ( SynthDef ( "help-VDiskin" , { arg bufnum = 0; Out .ar(0, VDiskIn .ar(1, bufnum, MouseX .kr(0.5, 2.0))); }).send(s); ) ( x = Synth .basicNew( "help-VDiskin" ); m ...
-
... po = 1.0; // timing test: // parallel streams ( var a, b, x; var times, levels; SynthDef ( \pgrain , { arg out = 0, freq=800, sustain=0.001, amp=0.5, pan = 0; var window; window = Env .sine(sustain, amp); Out .ar(out, Pan2 .ar( SinOsc .ar(f ...
-
... '-' , '*' , { |a, b| a.rand + b.rand } ].choose.applyTo(2, 3); Synthesis Inside SynthDefs and UGen functions, symbols can be used to conventiently specify control inputs of different rates and with lags (see: NamedControl , ControlName , an ...
-
... thod flop swaps columns and rows, allowing to derive series of argument sets: ( SynthDef ( "help_multichannel" , { |out=0, freq=440, mod=0.1, modrange=20| Out .ar(out, SinOsc .ar( LFPar .kr(mod, 0, modrange) + freq ) * EnvGate (0.1) ) }).se ...
-
... be initialized to literals or expressions, but in the case of Function-play or SynthDef-play, they may only be initialized to literals. // this is okay: { arg a = Array .geom(4, 100, 3); a * 4 }.value; // this is not: { arg freq = Array .g ...
-
... the server // example from SendTrig ( s = Server .local; s.boot; s.notify; ) ( SynthDef ( "help-SendTrig" ,{ SendTrig .kr( Dust .kr(1.0), 0, 0.9); }).send(s); // register to receive this message a = OSCresponderNode (s.addr, '/tr' , { arg ...
-
... }); // fill table s.performList( \sendMsg , \b_gen , i, \sine1 , 7, a); }); ) ( SynthDef ( "help-VOsc" ,{ arg out=0, bufoffset=0, freq=240; var x; // mouse x controls the wavetable position x = MouseX .kr(0,7); Out .ar(out, VOsc3 .ar(bufoff ...
-
... hite); w.front; ) // sound example ( s.waitForBoot({ var w, v,int,synth; synth= SynthDef ( "help-TabletSlider2D" ,{ arg freq=440,int1=5,int2 = -5, ffreqInterval=0,rq=0.4,gate=0.0; var p,c,d,f; c= LFNoise1 .kr(0.1,0.45,0.55); d= LFNoise1 .kr ...
-
... encing Playing a predefined note sequence “Multichannel” expansion Using custom SynthDefs (including unpitched SynthDefs) PG_Cookbook02_Manipulating_Patterns Merging (interleaving) independent streams Reading an array forward or backward ar ...
-
... somewhat contrived example of how the Environment might be used to manufacture SynthDefs. Even though the three functions below have the freq, amp and pan args declared in different orders it does not matter, because valueEnvir looks them ...