-
... Rect (10,10,90,20)) .items_([ "Sine" , "Saw" , "Noise" , "Pulse" ]); funcs=[ { SinOsc .ar(440,0,0.3)} , { Saw .ar(440,0.3)} , { WhiteNoise .ar(0.3)} , { Pulse .ar(440,0.2,0.3)} ]; b= Button (w, Rect (110,10,180,20)) .states_([[ "play" , Co ...
-
... is proxy to the editor - see below // kr proxies show up in the middle ~lfo = { SinOsc .kr(2) }; ~lfnoyz0 = { |lofreq = 0.5, mul=1, add| LFDNoise0 .kr(lofreq, mul, add) }; // the editor zone is a NodeProxyEditor // open it and set some para ...
-
... v; env = EnvGen .kr( Env .perc(0.01, sustain, 0.3), doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, env)) }).store; ) x.play; ( x.source = { loop { s.sendMsg( "/s_new" , "pdef_grainlet" , -1,0,0, \freq , rrand(600, 640)); 0.1.wait; } } ) ( ...
-
... r(chain, threshes, \rcomplex ); // Generate pips at a variety of pitches pips = SinOsc .ar((threshes).linexp(0, 1, 440, 3520), 0, EnvGen .kr( Env .perc(0.001, 0.1, 0.5), onsets)).mean; Out .ar(0, Pan2 .ar(sig, -0.75, 0.2) + Pan2 .ar(pips, 0 ...
-
... SynthDef ( \sinGrain , { |out = 0, freq = 440, amp = 0.5, dur = 1| Out .ar(out, SinOsc .ar(freq, 0, amp) * EnvGen .kr( Env .sine(1), timeScale:dur, doneAction:2)); }).add; 2.do({ |chan| var rout; rout = Routine ({ var freq; { freq = 0; rran ...
-
... ocalBuf) Useful for server-side work. ( r = { var scale = Scale .choose.postln; SinOsc .ar( ( DegreeToKey .kr( scale.as( LocalBuf ), MouseX .kr(0,15), // mouse indexes into scale scale.stepsPerOctave, 1, // mul = 1 60 // offset by 72 notes ...
-
... rt both synths synchronously ( s.makeBundle( nil , { // nil executes ASAP y = { SinOsc .kr(0.2).abs }.play(x, 0, 0, \addBefore ); // sine envelope }, b); ) x.free; y.free; // Throw an Error ( try { s.makeBundle( nil , { s.farkermartin; }); ...
-
... red servers. ( SynthDef ( "test" , { arg out, freq, xFade; XOut .ar(out, xFade, SinOsc .ar(freq)) }).store ); SynthDescLib .global.browse; // browse the properties of SynthDescs SynthDescs and SynthDef metadata Metadata associated with a Sy ...
-
... preparation - make an ar and a kr nodeproxy. s.boot; ( Ndef ( \lfo , { |lofreq| SinOsc .kr(lofreq) }); Ndef ( \a , { |freq=300, dens=20, amp=0.1, pan| Pan2 .ar( Ringz .ar( Dust .ar(dens, amp / (dens.max(1).sqrt)), freq, 0.2), pan) }); ) // ...
-
... ynth by step using arrow keys ( s.waitForBoot({ n={ arg freq=220; var out; out= SinOsc .ar(freq,0,0.2); 8.do{out = AllpassN .ar(out, 0.2,0.02+0.20.rand,8)}; out; }.play; w = Window ( "Use arrow keys to change the frequency by steps" , Rect ...