-
... | var src = SinOsc.ar(220 * SinOsc.kr(freq, 0, amp, offset), 0, 0.5); Out.ar(0, [src, src]); }).send(s); ~start = { |freq = 0.4, amp = 1, offset = 3| ~graphics = Synth.new(\cube, [\freq, freq, \amp, amp, \offset, offset ...
-
... , \l, \x).resetAction; // example with sound: s.boot; ( SynthDef(\blippy, { var out = Blip.ar(\freq.kr(440).lag(0.1), \numHarmonics.kr(100), \amp.kr(1.0).lag(0.1) ) * 0.5; Out.ar(0, Pan2.ar(out, \pan.kr(0).lag(0.1) ) ) }).add ); //start it ...
-
... // a.size <= b.size or the method will fail ~nearInListExclusive = { |a, b| var out, index; (a.size <= b.size).if({ out = Array.new(a.size); b = b.copy; // array will be changed a.do({ |item| (index = b.indexIn(item)).notNil.if({ out.add(b[ ...
-
( SynthDef("sawSynth", {arg freq, amp; Out.ar(0, Splay.ar(LPF.ar(in: Saw.ar(freq * [0.99, 1.0, 1.001, 1.008], mul:Env.perc(attackTime:0.1, releaseTime:2, level:amp).kr(2)),freq: 2000))) }).add; ) ( Pbind( \instrument, "sawS ...
-
... teger value in uniform distribution from lo to hi ( SynthDef ( "help-IRand" , { Out .ar( I Rand (0, 1), //play on random channel between 0 and 1 FSinOsc .ar(500, 0, Line .kr(0.2, 0, 0.1, doneAction:2)) ) }).send(s); ) ( Routine({ 16.do({ Sy ...
-
... ytime: freq.reciprocal, decaytime: decay, coef: coef); snd = Pan2.ar(snd, pan); Out.ar(0, [snd, snd]); }).add;
-
... p(0, 7), bias.clip(0, 1), srb2.clip(0, 1), srb1.clip(0, 1) ) ); }, { "channel % out of range".format(channel).warn; }); } setDefaultChannelSettings { //set all channels to default this.prCommand($d); } getDefaultChannelSettings { //get a re ...
-
... bin hfDamping roomProperties refGain play init gui addSource removeSource stop out roomSize fullSourceFunc addSourceLight encoded end sources lightSourceFunc revIn listener revGain prAddSource Inherited instance methods Examples Classes (e ...
-
... asString.size) }; ^max } *initClass { StartUp.add({ SynthDef(\labelPlayer_1, { |out = 0, rate = 1, t0, t1, buffer, pan, amp = 0.1| var sustain; var ton, env, channels; sustain = abs((t1 - t0) / rate); // Gesamtdauer env = EnvGen.kr( Env.lin ...
-
... // a.size <= b.size or the method will fail ~nearInListExclusive = { |a, b| var out, index; (a.size <= b.size).if({ out = Array.new(a.size); b = b.copy; // array will be changed a.do({ |item| (index = b.indexIn(item)).notNil.if({ out.add(b[ ...