You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3a31177
Browse filesBrowse the repository at this point in the historyBrowse files
synthio: keep MidiTrack's timing accurate for long delays
span.dur is a uint16_t, so a delay longer than 65535 samples wrapped: at
44.1kHz that is any gap beyond 1.5 seconds, and a held note or a rest of
ordinary length came out far too short. The conversion overflowed too,
because delta * sample_rate does not fit in 32 bits for a long delay.
Compute the duration in 64 bits and carry whatever does not fit in
span.dur in a separate field, handing it over a chunk at a time.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments