-
... rrow keys to change frequency ( 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 ...
-
( s.waitForBoot({ SynthDef(\sinePerc, { var x = SinOsc.ar(\freq.kr([440, 441])); var env = EnvGen.ar(Env.perc(releaseTime: \dur.kr(1)), \trig.kr(0), doneAction: Done.pauseSelf); OffsetOut.ar(\out.ir(0), x * env * \amp.kr(0.5)); }).add; //Wr ...
-
... , Color .rand]]) .mouseDownAction_({ a = { EnvGen .kr( Env .adsr,doneAction:2)* SinOsc .ar(440,0,0.4)}.play; }) .action_({ arg butt, mod; a.release(0.3); }); w.front; }) ) // if you drag a function to a button, the the button's action is se ...
-
... ed to 8 channels ( { var lfo = LFDNoise3.kr(0.2); DXFan.ar( Dshuf((0..7), inf), SinOsc.ar(lfo.range(800, 1500), 0, 0.03), size: 8, fadeTime: 0.01 ) }.plot(0.2) ) // crossfading stereo pairs to every second out ( { var lfo = LFDNoise3.kr(0.2 ...
-
... ayer for both indexing values and triggering the pattern ~pattern = AP(( def: { SinOsc.ar(\freq.kr + \freq2.kr) * EnvPerc.ar }, freq: ~player[\freq], freq2: ~player.read({ | freq | if(freq == 440, { freq * 2 }, { 0 }) }), ), player: ~player ...
-
... is proxy to the editor - see below // kr proxies show up in the middle ~lfo = { SinOsc.kr(2) }; ~lfnoyz0 = { |lofreq, mul = 1, add| LFDNoise0.kr(lofreq, mul, add) }; // the editor zone is a NodeProxyEditor // open it and set some params m.o ...
-
... ays stop all sound in SC. You'll be using it a lot, so commit it to memory. { [ SinOsc .ar(440, 0, 0.2), SinOsc .ar(442, 0, 0.2)] }.play; Not too inspiring? Don't worry, we're just getting started, and this is just a simple example to demon ...
-
... o 8 channels ( { var lfo = LFDNoise3 .kr(0.2); DXFan .ar( Dshuf ((0..7), inf ), SinOsc .ar(lfo.range(800, 1500), 0, 0.03), size: 8, fadeTime: 0.01 ) }.plot(0.2) ) // crossfading stereo pairs to every second out ( { var lfo = LFDNoise3 .kr(0 ...
-
... |sig| Buffer.loadCollection(s, sig.asWavetableNoWrap) }; s.sync; x = { var in = SinOsc.ar(100, 0, SinOsc.kr(0.1, 0, 0.5, 0.5)); Shaper.ar(b, in) ++ LeakDC.ar(Shaper.ar(b[1], in)) }.scope; }) ) x.free; b.do(_.free); b = nil ⧉ ✔ Signal. hanni ...
-
... SynthDef(\singrain, {arg outbus, freq, amp, dur; OffsetOut.ar(outbus, Pan2.ar( SinOsc.ar(freq, 0, amp) * EnvGen.kr(Env.sine(dur, amp), doneAction: 2), Rand.new(-1.0, 1.0) ) ) // read off the overall env control of the ProcMod }).add; // cr ...