-
... .do{ |i| { var freq = pitches[i].midicps; var env = Env.perc.ar(Done.freeSelf); SinOsc.ar(freq) * 0.1 * env }.play; 0.2.wait } } ) ⧉ ✔ . put ( index , item ) From superclass: ArrayedCollection Put item at index starting from 0, replacing wh ...
-
... ome previous time becoming the next synth line ( SynthDef(\kicksynth,{ Out.ar(0,SinOsc.ar(100,pi*0.5,0.5).clip2(0.2)*2*Line.kr(1,0,0.01,doneAction:2)); }).store; SynthDef(\leadsynth,{ Out.ar(0,Resonz.ar(Saw.ar(400,0.5).clip2(0.1)*4*Line.kr( ...
-
... ier // can be accessed in Ndef style o = OSCMapper(\controller); Ndef(\mySine, {SinOsc.ar!2 * o['/1/fader1'].asNdef}).play; Ndef(\mySine).clear(2); ⧉ ✔ as a Bus // use the default synth s = Synth(\default); s.map(\amp, o['/1/fader1'].asBus) ...
-
... f = LFSaw.kr(0.4, 0, 24, LFSaw.kr([8,7.23], 0, 3, 80)).midicps; zout = CombN.ar(SinOsc.ar(f, 0, 0.04), 0.2, 0.2, 4); Out.ar(0, zout); }).send(s); n = s.nodeAllocator.alloc; i = [[ '/s_new', "bubbles", n, 1, 0 ]]; o = [[ '/n_free', n ]]; c = ...
-
... } ).loadSynthDef; Udef( \vibrato, { |rate = 1, amount = #[0.0,1.0]| UOut.ar( 0, SinOsc.kr( rate ).range(*amount) * UIn.ar( 0 ) ) } ).loadSynthDef; ) // \sine and \output are already in the Udef bank x = UChain( \sine, [ \sine, [ \freq, 550, ...
-
... s with tempo changes ( var sf, tempoclock, bbcutclock; SynthDef(\beep,{Out.ar(0,SinOsc.ar(440,0,0.1)*Line.kr(1,0,0.1,doneAction:2))}).load(s); tempoclock= TempoClock(2.3); bbcutclock= ExternalClock(tempoclock); Routine.run({ sf= BBCutBuffer ...
-
... EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0.5pi, env)) }).add; a = Pbind(\instrument, \help_sinegrain, \note, Pseq([0, 7, 2, 9, 11, 10, 9, 8], inf), \dur, 1); a.play(quant: (quant: 1, ph ...
-
... nd to use ( SynthDef(\toc, { Out.ar(0, XLine.ar(1, 0.01, 0.02, doneAction: 2) * SinOsc.ar([600, 1300, 4500], 0, [0.3, 0.2, 0.1]).postln); }).add; ) (instrument: \toc).play; // get more info posted e.verbosity = 2; e.startRec; // run this li ...
-
... r(Env([1, decay1L, 0], [decay1, decay2], -4), doneAction: Done.freeSelf), sig = SinOsc.ar(fcurve, 0.5pi, preamp).distort * env * amp; Out.ar(out, sig ! 2) }).add; SynthDef(\kraftySnr, { |amp = 1, freq = 2000, rq = 3, decay = 0.3, pan, out| ...
-
... v; env = Decay2.kr(gate, 0.05, 8, 0.0003); synth = RLPF.ar( LFPulse.ar(freq, 0, SinOsc.kr(0.12, [0, 0.5pi], 0.48, 0.5)), freq * SinOsc.kr(0.21, 0, 18, 20), 0.07 ); #a, b = synth*env; DetectSilence.ar(a, 0.1, doneAction: Done.freeSelf); Out. ...