diff --git a/src/vocoder.js b/src/vocoder.js index 4c3b020..b25d85b 100644 --- a/src/vocoder.js +++ b/src/vocoder.js @@ -1,3 +1,7 @@ +/* + +*/ + var Tone = require('tone'); function Vocoder () { @@ -25,9 +29,8 @@ Vocoder.prototype.setCarrierOscFrequency = function (freq) { this.oscillatorNode.frequency.rampTo(freq, 0.05); }; -// this function will algorithmically re-calculate vocoder bands, distributing evenly +// this function algorithmically calculates vocoder bands, distributing evenly // from startFreq to endFreq, splitting evenly (logarhythmically) into a given numBands. -// The function places this info into the vocoderBands and numVocoderBands variables. Vocoder.prototype.generateVocoderBands = function (startFreq, endFreq, numBands) { // Remember: 1200 cents in octave, 100 cents per semitone @@ -41,7 +44,6 @@ Vocoder.prototype.generateVocoderBands = function (startFreq, endFreq, numBands) for (var i=0; i0)?i:-i)/32768; - } - - for (i=0; i