From 5b5b9ae4c3d2260fa9b6d87ef73947ac03c47614 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 3 Oct 2026 04:47:35 -0400 Subject: [PATCH] Play the audio mixdown instead of encoding a WAV of it Opening the 8625 study froze the main thread for 4.7 seconds and settled at 615MB of heap. A profile put three quarters of a project open inside mix/wav-bytes, which playback had no business calling at all. Two separate causes. The peak scan built a lazy sequence of one boxed double per SAMPLE -- ten million of them for a seven-minute mix -- to compute a single maximum over data already sitting in Float32Arrays; the hand-written loop is 73x faster and agrees to the bit. The rest was structural: the WAV existed only because an