-
... " , 10, 26);\ n.fontsize(43);\ n.rotate(34);\ n.fill(0, 0, 0.6, 0.5);\ n.text( "SinOsc.ar(440)" , 170, 228);\ n.fill(1, 0, 0.1, 0.07);\ n.rect(0, 0, 50, 300);\ n.oval(0, 267, "HEIGHT" , 200);\ n.finishMovieCode;\ n.displayCode;\ )\ \ Exampl ...
-
... Array.rand(128, 0.0, 1.0); q[\pi_squared] = pi * pi; q[\favourite_sound] = { { SinOsc.ar([300, 330]).sum * LFPulse.kr(2 + [0, 0.01]) * 0.1 }.play }; q[\same_long_array] = q[\a_long_array]; // same objects may appear several times Archive.g ...
-
... EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) ( var c, b; c = Pn(Pfin({ rrand(3, 5) }, Pseq([1, 2, 3, 4, 5, 6], inf) * 4 + 65), inf); b = c.asStream; Routine({ loop({ Synt ...
-
... ", { Out.ar( 0, [ // the left channel gets input from an audio bus In.ar(0, 1), SinOsc.ar(440, 0.2) ] ) }).add; ) ( Synth("dataForABus"); // synthesize a sawtooth wave on channel 0 Synth("dataFromABus"); // pair it with a sine wave on chann ...
-
... = CtkSynthDef(sdKey, {arg outBus = 0, inBus = 2, freq, dur = 1; Out.ar(outBus, SinOsc.ar(freq, 0, 0.2) * EnvGen.kr(Env([0, 1, 0], [0.5, 0.5], \\sin), timeScale: dur, doneAction: 2)) }); sd } "; filePath = this.synthPath.absolutePath ++ "/" ...
-
... torial. Code Examples Code examples within the text are in a different font: { [SinOsc.ar(440, 0, 0.2), SinOsc.ar(442, 0, 0.2)] }.play; ⧉ ✔ This is a common convention in documentation of computer languages, and one that is followed through ...
-
... PMOsc.ar( x.linexp(-1,1,20,15000), y.linexp(-1,1,25,250), LFSaw.kr(SinOsc.kr(1/size.squared).exprange(1/size,size)).range(0,size) ), i.mod(size).linlin(0,4,-1,1), amp/(size.squared * 2) ) }).play }); ~task = Routin ...
-
... . ~freq = 48000 / 1024; s.scope(5); {HOADec5_0.ar(~order, HOAEncoder.ar(~order, SinOsc.ar(~freq ), MouseX.kr(-pi, pi), 0 ), gain:1, lf_hf:0, xover:400, mute:0 ) }.play; // original ) ⧉ ✔ helpfile source: /tmp/scquark_hs/SC-HOA/HelpSource/Cl ...
-
... rFX, e.g. ProxyChain.add3( \testsnd, { Decay.ar(Impulse.ar(1, [0, 0.5]), 0.1) * SinOsc.ar([300, 450]) }, 0.1); ProxyChain.add3(\leak, \filter -> { |in| LeakDC.ar(in) }, 1); ProxyChain.add3(\dist, \filter -> { |in| (in * 3).tanh }, 1); Proxy ...
-
... = 5, center = 60, addFreq = 0.1, addDev = 5| LFDNoise3.kr(freq, dev, center) + SinOsc.kr(addFreq, 0, addDev) } ]); c = TempoClock(1); q = 0.12; ) // Play Pbind (via PHSpar) to poll values from one or both synths, // according to the patter ...