-
... b, c, sqrterm, qresult, sgn = sign(maxval - minval); // the formula is unstable just above the average of minval and maxval // so mirror the midval around the average if(midval > ((maxval + minval) * 0.5)) { midval = minval + maxval - midva ...
-
... Prout({ |ev| var now, nextTime = 0, thisShouldSwing, nextShouldSwing = false, adjust; while { ev.notNil } { // current time is what was "next" last time now = nextTime; nextTime = now + ev.delta; thisShouldSwing = nextShouldSwing; nextShoul ...
-
... mpo.tempo; numChannels = 1; sampleRate = 44100.0; this.guessBeats; ^this }); // just reading the headers // if tempo and endFrame are supplied, avoid loading // need sampleRate if(thing.isString,{ this.soundFilePath = this.class.standardize ...
-
... mpo.tempo; numChannels = 1; sampleRate = 44100.0; this.guessBeats; ^this }); // just reading the headers // if tempo and endFrame are supplied, avoid loading // need sampleRate if(thing.isString, { this.soundFilePath = this.class.standardiz ...
-
... pleRate, speedOfSound).collect({ |spectrum| spectrum.magnitude }) }, { // or... just unity foclMags = Array.fill((order + 1) * size, { 1.0 }).reshape((order + 1), size) }); // beam magnitudes switch(beamDict.at(\beamShapes).size, 1, { beamM ...
-
... ght { arg aWeight ; weight = aWeight ; } } RunnerMixer { // the runner mixer is just a container class // allowing to register some runers so that you can control // their offset weight // gui not separated from the rest but very simple var ...
-
... to determine whether to sustain the previous note, or leave a rest? // for now just leave a rest #{ |source| var lo, hi, numToDrop, newNote; source = source.notes.copy; // must copy array before modifying lo = rand(source.size-1)+1; // can ...
-
... s modification of the inter point intervals and the amplitudes. In yet another, just have one point and random walk its amplitude and duration based on the probability distribution. In this implementation I allow the user to initialise a ce ...
-
... trolSpec(0, 1, default: 0), ControlSpec(0, 1, default: 0) ]; ^super.new(desc ? "Just a big volume knob", server, [ JInTC_EndlessKnob.new(spec: specs[0]), // turning JInTC_EndlessKnob.new(spec: specs[1]), // down->turning JInTC_Button.new(sp ...
-
... on Patterns , Pattern Guide 06a: Repetition Constraint Patterns Filter patterns Just like filter UGens modify an input signal, filter patterns modify the stream of values coming from a pattern. We have already seen some operations that modi ...