diff options
Diffstat (limited to 'tools/spectral_editor')
| -rw-r--r-- | tools/spectral_editor/script.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/spectral_editor/script.js b/tools/spectral_editor/script.js index 7c424f9..392d3a5 100644 --- a/tools/spectral_editor/script.js +++ b/tools/spectral_editor/script.js @@ -1521,7 +1521,7 @@ function drawSpectrumViewer() { // Draw spectrum bars (both reference and procedural overlaid) for (let i = 0; i < numBars; i++) { - const binIdx = Math.floor((i / numBars) * state.referenceDctSize); + const binIdx = Math.floor(i * state.referenceDctSize / numBars); // Draw reference spectrum (green, behind) if (refSpectrum) { |
