-
... r } ) .synthDef_( SynthDef( "u_testFree", { |freq = 440, amp = 0.1| UOut.ar( 0, SinOsc.ar( freq, 0, amp ) ); }) ) ) d.args; d.audioOuts; // show the outputs x = UChain( \testFree, \wfsSource ); // make a chain x.gui; ( // no setSynthFunc (f ...
-
... tting of StkGlobals. - It's beginner-friendly because it uses only basic UGens: SinOsc, EnvGen, Mix, Pan2, Out. */ ( SynthDef(\rhodey_sc, { | // standard meanings out = 0, freq = 440, gate = 1, pan = 0, amp = 0.1, // all of these range from ...
-
... supply this parameter. Examples ( // A sine-wave LFO, implemented similarly to SinOscFB // (of course it would be better to use SinOsc.kr - this is just for demonstration purposes) play { var lfo; var x = SinOsc .kr( 0.02 ).exprange( 0.01 ...
-
( SynthDef(\kick1, { var snd; snd = DC.ar(0); snd = snd + (SinOsc.ar(XLine.ar(800, 400, 0.01)) * Env.perc(0.0005, 0.01).ar); snd = snd + (BPF.ar(Hasher.ar(Sweep.ar), XLine.ar(800, 100, 0.01), 0.6) * Env.perc(0.001, 0.02).delay(0.001).ar); s ...
-
... tion = 1, amp = 1, offset = 0.6| var src, ctrlSines, ctrlMul; ctrlMul = SinOsc.kr(modFreq * 0.7); ctrlSines = Array.newClear(6); ctrlSines.do { |item, index| ctrlSines[index] = SinOsc.kr(modFreq * 1.2 * (1 + (Rand(0, ...
-
( Alga.boot({ a = AN({ SinOsc.ar(\freq.ar(440!2)) }); b = AMP(( rate: \audio, chans: 2, time: Pwhite(0.01, 1), in: Pseq([ AlgaTemp({ SinOsc.ar([Rand(1, 100), Rand(1, 100)]) }, scale: [Pwhite(220, 440), Pwhite(440, 880)]), [440, 660], 880 ], ...
-
( Alga.boot({ a = AN({ SinOsc.ar(\freq.ar(440!2)) }); b = AMP(( rate: \audio, chans: 2, time: Pwhite(0.01, 1), in: Pseq([ AlgaTemp({ SinOsc.ar([Rand(1, 100), Rand(1, 100)]) }, scale: [Pwhite(220, 440), Pwhite(440, 880)]), [440, 660], 880 ], ...
-
... formation on device k.info p = ProxySpace .push(s) ~a = { //k[\wiiAcc].kr.poll; SinOsc .ar(k[\wiiAcc].kr.range(100, 1000), 0, 0.3).sum; } ~a = { //k[\wiiAcc].kr.poll; SinOsc .ar(k[\nunAcc].kr.range(100, 1000), 0, 0.3).sum * k[\Z].kr.range(0 ...
-
//Funcs with def ( Alga.boot({ a = AlgaPattern(( def: Pseq([ { SinOsc.ar(\freq.kr(440)) * EnvGen.ar(Env.perc, doneAction: 2) }, { Saw.ar(\freq.kr(440)) * 0.5 * EnvGen.ar(Env.perc, doneAction: 2) } ], inf ), dur: Pwhite(0.05, 0.4), freq: Pwh ...
-
... 2pi) Examples // shifting a 100Hz tone by 1 Hz rising to 500Hz { FreqShift .ar( SinOsc .ar(100), XLine .kr(1,500,5),0,[0.5,0.5])}.play(s); // shifting a complex tone by 1 Hz rising to 500Hz { FreqShift .ar( Klang .ar(`[[101,303,606,808]]), ...