-
... nd-argument functions will be inlined. If you use && or ||, no inlining will be done and performance will be slower. a = 1; a == 1 and: { "second condition" .postln; [ true , false ].choose } second condition true a == 1 or: { "second condi ...
-
... hem in realtime would not be the first option anyway (but it could of course be done by rewriting these variables). Buffers: All examples below expect mono buffers like the delivered kitchen sound. Buffer paths refering to the included samp ...
-
... eration, each argument is passed the InstrGateSpawner. Two useful things can be done with this: asking the .beat and the current .delta till the next event. ( Tempo.bpm = 140.0; InstrGateSpawner({ arg freq=440,rq=0.1,width=0.5,fenv,fenvmod= ...
-
... of Bus, and can be audiorate or controlrate, depending on the kind of analysis done on it. serv is the Server on which the bus is and on which the analysis synth will run (if none given the default server will be used). initSynthDefAndBus ...
-
... MFunc in the "adclib" Quark. // Assigning multiple actions to an element can be done with .addAction: ( k.elAt(\amp1).addAction({ |elem| ("1 :"++elem.value).postln }); k.elAt(\amp1).addAction({ |elem| ("2 :"++elem.value).postln }); ) //clea ...
-
... nt.find("Master_level").v_(0); // Load and play file, restore master level when done playbackBuffer = Buffer.read(server, latest, action: { | buf | { // defer to AppClock for Synth creation playbackSynth = { | bufnum = 0 | var sig = PlayBuf ...
-
... sUMap { ^true } hasBus { ^this.def.hasBus( this ) } setUMapBuses { } // this is done by the U for all (nested) UMaps u_waitTime { ^this.waitTime } dontStoreArgNames { ^[ 'u_dur', 'u_doneAction', 'u_mapbus', 'u_spec', 'u_store', 'u_prepared' ...
-
... PMOsc.ar(carr, mod, index); var env = EnvGen.ar(Env.sine(sustain, amp * 0.5), doneAction: 2); OffsetOut.ar(out, Pan2.ar(snd * env, pan)); }, \ir ! 5).add; // wider, quasi-gaussian envelope, with a hold time in the middle. SynthD ...
-
... pOsc); }.play; ) ⧉ ✔ Try this. (Again, use Cmd-. to stop the sound.) What we've done here is plugged the first SinOsc (a control rate one!) into the mul arg of the second one. So its output is being multiplied by the output of the second on ...
-
... s two pitches, e.g. one for an osc and another for a filter // bit icky hacking done here { var parms = Fact(\melBP).v[\chuckParms].copy; parms.putAll(( ffreqCtl: { ~ffreqCtl }, rootOctave: { ~rootOctave }, defaultParm: \filtDegree, parmMap ...