Closed marcelblum closed 3 years ago
Oh and just to clarify, to repro the bug:
const analyser = new Tone.Analyser({ type: "waveform", smoothing: .4, size: 512 });
console.log(analyser.smoothing);
//0.8
console.log(analyser._analysers[0]._nativeAnalyserNode.smoothingTimeConstant);
//0.8
thank you!
Fix for the following bug:
smoothing
setting in theAnalyser
constructor is ignored (smoothing
always ends up with the default value 0.8). Fixed by explicitly calling thesmoothingTimeConstant
setter in the constructor.