diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-06 11:32:13 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-06 11:32:13 +0100 |
| commit | 3002553be5bf880ead27fb3e415bc97d484b43eb (patch) | |
| tree | 98a4263e09570199c77bfdf1ad91cc3a91940eb3 /src/gpu/demo_effects.cc | |
| parent | 7b55dc55df6c15dc20c21dfab566176a07f6d86f (diff) | |
fix(spectral_editor): Fix procedural audio and add color-coded curves
Fixed three issues reported during testing:
1. Procedural audio now audible:
- Added AMPLITUDE_SCALE=10.0 to match DCT coefficient magnitudes
- Amplitude range 0-1 from Y-position now scaled to proper spectral levels
2. Procedural spectrogram now visible:
- Each curve rendered separately with its own color
- Normalized intensity calculation (specValue / 10.0)
- Only draw pixels with intensity > 0.01 for performance
3. Color-coded curves:
- Each curve assigned unique color from palette (8 colors cycling)
- Colors: Blue, Green, Orange, Purple, Cyan, Brown, Pink, Gold
- Control points and paths use curve color
- Curve list shows color indicator dot
- Procedural spectrogram uses curve colors for easy tracking
Visual improvements:
- Selected curves have thicker stroke (3px vs 2px)
- Each curve contribution visible in separate color
- Color dots in sidebar for quick identification
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/gpu/demo_effects.cc')
0 files changed, 0 insertions, 0 deletions
