-
... tude a = { |sense = 0.2| var amp = Sensitivity .kr(1, MouseY .kr(0, 1), sense); SinOsc .ar(440, 0, amp) ! 2 }; a.set( \sense , 0); a.set( \sense , 1); // you can make the sound silent by taking mouseY to 0 a.set( \sense , 0.4); // now you c ...
-
... s*oct, ([60, 63, 67]+10).midicps*oct, ([60, 63, 67]+11).midicps*oct, ]); Mix.ar(SinOsc.ar([chord[0].lag(lag), chord[1].lag(lag), chord[2].(lag)],phase,mul/3)); }); Ndef('block1').xset('key', 18, 'oct', 0.5); == radpostcont == (none)
-
... .reciprocal, Array.fill(overlaps, {arg i; (overlaps - i) / overlaps}) ); tris = SinOsc.kr(windowsize.reciprocal, Array.fill(overlaps, {arg i; (((overlaps - i) * 2pi) / overlaps) + 1.5pi})) .range(-0.1, 0.9).max(0); // sin envs counter = Ste ...
-
... ); trig = Impulse.ar(rate); sr = SampleRate.ir; x = Phasor.ar(trig, rate / sr); SinOsc.ar( [ LinLin.kr(x, 0, 1, 600, 1000), // convert range from 0..1 to 600..1000 1000 // constant second frequency ], 0, 0.2) }.play; ) // two phasors contro ...
-
... .9, 1.1, 1), MouseY.kr(1.8, 2, 1)) * 0.3 }.play(s); // as a frequency control { SinOsc.ar(CuspL.ar(40, MouseX.kr(0.9, 1.1, 1), MouseY.kr(1.8, 2, 1))*800+900)*0.4 }.play(s); ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Clas ...
-
... 0.01, maingain=4, decay=1, detune=0.01; var sig = Mix.fill(12, {arg i; SinOsc.ar(freq+(freq*Rand(detune.neg, detune)), Rand(0.0, 1.0), amp/12); }); sig = (sig*maingain).softclip; sig = (sig * Env.adsr(attack, decay, 1.0 ...
-
... ynthDef( \ParameterSpaceHelp, { |out=0,amp=0.2,freq=100,freqmod=40| Out.ar(out, SinOsc.ar( SinOsc.ar( freqmod, 0, 20, freq ), 0, amp ) ); }).send(s); ) x = Synth.new( \ParameterSpaceHelp ); // start the update routine: ~space.start; // show ...
-
... s Instance Methods Inherited instance methods Examples ( // used to lag pitch { SinOsc.ar( // sine wave Lag3.kr( // lag the modulator LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator Line.kr(0, 1, 15) // modulate lag time ), 0, // pha ...
-
... ynthDef(\sin, { arg out=0, gate=1, amp=0.1, pan=0, freq=200; var sig; sig = SinOsc.ar(freq); sig = sig * EnvGen.kr(\adsr.kr(Env.adsr(0.1,0.1,0.8,0.1)), gate, doneAction:2); sig = Pan2.ar(sig, pan, amp); Out.ar(out, sig); }).add; ...
-
... sed in. if nil, \amp.asSpec is used. Examples Ndef(\test, { |freq=200| Splay.ar(SinOsc.ar(freq * Array.rand(12, 0.95, 1.05))) }); Ndef(\test).play(vol: 0.1); // example of softSet, softSet which knows lastVal, // softVol_ and softVol_ which ...