Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fedac/native/audio.c: bump piano sample amp 1.8 → 3.0

Piano voice was still noticeably quieter than sine/square at the
same notepat `volume` — the Salamander samples sit several dB below
the ±1 oscillators and 1.8× wasn't enough headroom recovery. Match
harp's boosted philosophy (LPF + stretch attenuates the loop, so it
gets 2.5×) and let soft_clip catch any peak excess.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+6 -1
+6 -1
fedac/native/src/audio.c
··· 3158 3158 // correction is needed beyond the pitch ratio. 3159 3159 double semis = target_midi_d - (double)anchor->midi; 3160 3160 v->piano_sample_step = pow(2.0, semis / 12.0); 3161 - v->piano_sample_amp = 1.8; 3161 + // Salamander samples sit several dB below the ±1 oscillators 3162 + // (recorded with headroom across velocity layers), so a bare 3163 + // pass-through reads quieter than sine/square at the same 3164 + // notepat `volume`. 3.0× brings perceived loudness in line 3165 + // with the basic waves; soft_clip absorbs any peak excess. 3166 + v->piano_sample_amp = 3.0; 3162 3167 ac_log("[piano] f0=%.1fHz midi=%d → anchor midi=%d step=%.4f len=%d\n", 3163 3168 f0, target_midi, anchor->midi, 3164 3169 v->piano_sample_step, anchor->len);