-
// © 2003 Lance Putnam + SequenceableCollection { // Makes a specified tuning scale // The last element of stepRatios is the octave ratio. This is typically 2. *tuningScale { arg rootFreq = 440, stepRatios=#[1.5, 2], loFreqBound = 20, hiFre ...
-
... ase it is evaluated and passed the SOM buffer. Note that the data should be pre-scaled to a range of +-1 on all axes, since this convenience method doesn't account for different dynamic ranges in the data. First let' s generate a file conta ...
-
... evTime = 3, hfDamping = 0.995, numTaps = 10, numCombs = 8, numAllpasses = 4, tapScale = 1, combScale = 1, allpassScale = 1; var buffer, // a buffer for the delay line tapData, // Early reflection tap data (times, levels) times, levels, taps ...
-
... c({arg array; array.invert }, phrase); } revert{ phrase = initialPhrase.copy; } scale{ arg scalar; this.regionFunc({arg array; array * scalar }, phrase); } shift{ arg constant; this.regionFunc({arg array; array + constant }, phrase); } // c ...
-
... s reach the same peak. It tracks the peak magnitudes within each FFT bin, and rescales the values over time so that the peak magnitude in each bin reaches a value of 1. The memory of recent peaks fades over time, fading away in a time speci ...
-
... in .allocBuf(s, ~numnodes, 2, 3); SOMTrain .initBufGridRand(~som, ~numnodes, 2, scales: 3); // Grid init - a 2D grid is randomly oriented in the target space (which here is 3D) //~som.plot(minval:nil.dup(3), maxval: nil.dup(3)); // Also, ju ...
-
/* Probability RNGs by Lance Putnam (lance@uwalumni.com) These classes were ported from BASIC from the book Automated Music Composition by Phil Winsor. The number receiving the PDF message is by default the mean of the distribution and is r ...
-
... h = 0, elevation = 0, maxDist = 10, distance = 10, wComp = 0, mul = 1, add = 0, scaleflag = 1; var dist, scaler; dist = ((maxDist - distance) / 345); scaler = if((scaleflag == 1), 1/((distance/maxDist)**1.5), 1); ^DelayN.ar(this.multiNew('a ...