-
... s(theta), sin(theta).neg]; taccel= taccel+(g*force/mass/size).sum; } pendulumOffset2D { //pendulum location relative to object loc ^RedVector2D[sin(theta)*size, cos(theta)*size]; } pendulumLoc2D { //pendulum actual location ^this.pendulumOf ...
-
... sFunc, // a function or Tuning object to convert note numbers to cps <>octaveOffset = 0; var <degToKey, <keyToDeg; // conversion dictionaries *new { arg scale, stepsPerOctave, root, tuning, cpsFunc; ^super.newCopyArgs((scale ? #[0, 2, 4, 5, ...
-
... corePart ; doc.appendChild(scorePartwise = doc.createElement("score-partwise") .setAttribute("version", "1.0")); scorePartwise.appendChild(partList = doc.createElement("part-list")); score.sort({arg a, b; (a.id == b.id).if({ ^"AAAAAH!!! you ...
-
... 1, // Depth of 3rd LFO in Hz, 1 means no modulation, 0 is max ]);) (x.set( \freq, 55.midicps, //Pitch \wave, 69, //waveform selector 0 to 89 waveform \detune, 1.midiratio, //detune parameter of the second oscillator \sub, ...
-
... lines p.push; ~b = { |freq=500| LFDNoise3 .ar(freq.dup(2)) * 0.2 }; ~b.play; ~b.set( \freq , 1000); ~b.end(2); History .end; // save current history to a file. History .saveCS( "~/Desktop/TestHist.scd" ); h = History .new.loadCS( "~/Desktop ...
-
... bcoefs = Polynomial[1] }, { bcoefs = poles.neg.multiplyFactors }); //If norm is set to true, normalize the frequency response to 1.0 if(norm, { acoefs = acoefs * this.returnMaxMag.reciprocal }); acoefs = acoefs.select({ |item| item.magnitud ...
-
... 100)); d.background = Color.black; ) ⧉ ✔ Decorators A 'decorator' object can be set to handle layout management. All views added to the CompositeView will now be placed by the decorator. Currently the only one existing is FlowLayout . You c ...
-
... r env = EnvGen.kr(Env.linen(sustainTime: dur*0.925, attackTime: 0.075*dur, releaseTime: 0.01*dur), doneAction: 2); Out.ar(b, LPF.ar(Pulse.ar(freq, width: 0.5, mul: vol*env), 11000)); }).send(s); SynthDef(\museverb, { Out.ar(0, Pan2. ...
-
... _(Color.rand(0.7,0.8)) .valueAction_(0.25) .action_({ arg obj; ~jpRev.set(\damp, obj.value.linlin(0,1, 0.000,0.99)); }); label = StaticText(~subPanel[3], Rect(0,0,40,10)) .string_("Tail Time") .font_(Font("Arial",10)) ...
-
... } { ^[this.x, this.y] }; } scaleToRect { |toRect, fromRect, keepRatio = true, inset = 0.05| var out; toRect = (toRect ? Rect(0,0,1,1)).asRect; toRect = toRect.insetBy( inset * toRect.width, inset * toRect.height ); fromRect = ( fromRect ? t ...