fix: section track inherits soundfont_id/bank/program via ...t spread

...t in fallback branch copied soundfont_id, soundfont_bank,
soundfont_program, instrument_source from parent MAIN track
even though instrumentProgram and synth_engine were nulled.
FluidSynth picks up these fields and auto-loads the SoundFont.
Fix: override all soundfont/synth fields to null/undefined.
This commit is contained in:
2026-07-28 08:32:21 +07:00
parent 18e177fa2d
commit 9befc20851
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -8517,6 +8517,10 @@ const App = () => {
instrumentId: null,
instrumentProgram: undefined,
instrumentName: null,
soundfont_id: null,
soundfont_bank: undefined,
soundfont_program: undefined,
instrument_source: null,
synth_engine: undefined
}));
setSessionTabs(prev => [...prev, { id: tabId, name: tabName, sectionId: sectionId, tracks: clonedTracks, color: section.color || null }]);