-
... e, the doneAction and the timeScale arguments are expressed in keyword style. ( SynthDef ( "timeScale" , { arg ts = 1; Out .ar( 0, SinOsc .ar(440, 0, 0.4) * EnvGen .kr( Env .sine(1), doneAction: 2, timeScale: ts // scale the duration of an ...
-
... s.waitForBoot({ // a synth def template for simulating the string ~makeResonatorSynthDef = { arg inA1,inA2,inB1,inB2,synthDefName; inA1.postln; SynthDef(synthDefName,{ arg inBus,outBus = 0,inputGain = 1,outputGain = 1,dryWet = 1; var input, ...
-
... .285).play; Ndef(\c).copy(\c3).set(\pan, (-0.2855285)).play; ) // A synth def ( SynthDef.new(\rongsinator, {|out, amp=0.25, pan=0, sustainTime=0.01, f0=0.05, structure=0.5, brightness=0.5, damping=0.75, accent=0.9, harmonicstretch=0.5, posi ...
-
... treet, Fifth Floor, Boston, MA 02110-1301 USA */ /* automatic GUI-creation from SynthDefs, Ndefs ... */ /* read input */ +Object { // execute .changed for the given array of symbols changedKeys { |keys ... moreArgs| keys.do({ |key| this.cha ...
-
... : // select a decoder of your choice ~decoder = FoaDecoderKernel.newSpherical ( SynthDef(\decoder_spherical, { arg outbus = 0, inbus; // ReplaceOut here in case you'be selected a // hardware out for the auditioner ReplaceOut.ar( outbus, Foa ...
-
... oor.asInteger } ? " peak", (this.numSynths ? "?").asString.padLeft(6), (this.numSynthDefs ? "?").asString.padLeft(6) ); } uMeter { |sm, numIns, numOuts| if( sm.notNil && { sm.isClosed.not } ) { sm.close; }; numIns = numIns ?? { this.options ...
-
... assign a TempoClock to t b = HierSch .new(t) b.test b.rate b.testRate s.boot ( SynthDef .new( \midiPing , { arg out = 0, mfreq = 69, pan = 0, gain = 0.2, dur = 0.25; Out .ar(out, Pan2 .ar( SinOsc .ar(mfreq.midicps, 0, EnvGen .kr(envelope: ...
-
... mbol.asString.dirname.dirname +/+ "saybuf_premake.scd").openOS; // Examples for synthdefs to make for say/saybuf: (Say.filenameSymbol.asString.dirname.dirname +/+ "saybuf_synthdefs.scd").openOS; ⧉ ✔ Which voices? Say.allVoices.size; // Say ...
-
... esourceDir +/+ "sounds/a11wlk01.wav", 4982, 10320 ); ~defaults[\bufnum] = ~buf; SynthDef(\buf1, { |out, bufnum, pan, amp, time = 1| var sig = PlayBuf.ar(1, bufnum), eg = EnvGen.kr( Env.linen(0.02, min(time, BufDur.ir(bufnum) - 0.04), 0.02), ...
-
... reconsider our reverb example from the previous section. ( // a stereo version SynthDef(\tutorial_DecaySin2, { arg outBus = 0, effectBus, direct = 0.5, freq = 440; var source; // 1.0.rand2 returns a random number from -1 to 1, used here fo ...