diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-06 16:44:18 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-06 16:44:18 +0100 |
| commit | 6ed5952afe5c7a03f82ea02d261c3be2d56bd6a1 (patch) | |
| tree | f37a9b230ece3e101d83d88a6d95b6523eed5488 /src/tests/test_audio_backend.cc | |
| parent | a9f0174f95b577cc7f8d67023eb37d83d050c0fd (diff) | |
fix(editor): Apply window to spectrum before IDCT, not after
Fixed comb-like pattern in web editor playback by matching the C++
synth windowing strategy.
Root Cause:
- C++ synth (synth.cc): Applies window to SPECTRUM before IDCT
- JavaScript editors: Applied window to TIME DOMAIN after IDCT
- This mismatch caused phase/amplitude distortion (comb pattern)
Solution:
- Updated spectral_editor/script.js: Window spectrum before IDCT
- Updated editor/script.js: Window spectrum before IDCT
- Removed redundant time-domain windowing after IDCT
- JavaScript now matches C++ approach exactly
Result:
- Clean frequency spectrum (no comb pattern)
- Correct audio playback matching C++ synth output
- Generated Gaussian curves sound proper
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/tests/test_audio_backend.cc')
0 files changed, 0 insertions, 0 deletions
