Files
Designloves2andClaude Sonnet 5 d90931e863 Fix waveform staircase artifact when zoomed in past sample resolution
drawClipWaveform picked a nearest source-peak sample per pixel column. That
works when zoomed out (many samples per pixel, downsampled via max so
transients survive), but zoomed in past the peaks array's native
resolution, multiple adjacent pixel columns landed on the same sample and
repeated its flat value, stepping abruptly to the next - the square
staircase look reported. Now interpolates linearly between the two
neighboring samples whenever a pixel covers less than one sample, restoring
the smooth capsule-shaped envelope; the max-downsample path is unchanged
for the zoomed-out case. Verified at max horizontal zoom in the live editor
- Compare (Wipe) is nothing to do with this file - screenshot before/after
confirms the blocky steps are replaced by a continuous curve.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-22 21:18:32 +09:00
..
2026-06-13 19:42:31 +09:00