fix: main playback default program 0 loads MAIN SoundFont

Line 10283 same issue as 10393: when instrumentProgram is
undefined (section cloned tracks), program defaults to 0.
_playNoteFluid calls program_change(ch,0) on FluidSynth,
which loads program 0 from whatever SoundFont is loaded
(MAIN session's SF). Fix: pass undefined -> oscillator
fallback for all tracks without assigned instrument.
This commit is contained in:
2026-07-28 09:15:51 +07:00
parent 52ec9379d6
commit 2f2f84066c
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -10280,7 +10280,7 @@ const App = () => {
const noteEndSec = noteStartSec + noteDurSec;
if (offsetTime < noteEndSec) {
const durationMs = noteDurSec * 1000;
const program = track.instrumentProgram !== undefined ? track.instrumentProgram : 0;
const program = track.instrumentProgram;
if (offsetTime < noteStartSec) {
const delay = noteStartSec - offsetTime;
const startTime = context.currentTime + delay;