We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 011b977 commit d10f471Copy full SHA for d10f471
src/graph_spectrum_calc.js
@@ -110,11 +110,11 @@ GraphSpectrumCalc.dataLoadPSD = function(analyserZoomY) {
110
const flightSamples = this._getFlightSamplesFreq(false);
111
112
let pointsPerSegment = 512;
113
- const multiplier = Math.floor(1 / analyserZoomY); // 0. ... 10
+ const multipiler = Math.floor(1 / analyserZoomY); // 0. ... 10
114
if (multipiler == 0) {
115
pointsPerSegment = 256;
116
- } else if (multiplier > 1) {
117
- pointsPerSegment *= 2 ** Math.floor(multiplier / 2);
+ } else if (multipiler > 1) {
+ pointsPerSegment *= 2 ** Math.floor(multipiler / 2);
118
}
119
pointsPerSegment = Math.min(pointsPerSegment, flightSamples.samples.length);
120
const overlapCount = Math.floor(pointsPerSegment / 2);
0 commit comments