revert: section tracks inherit parent instrument, auto-loads SF prog0

Previous fix f2ac70e inherited instrumentId/program/name
from parent MAIN track. This causes SECTION-TAB to auto-load
program 0 of whatever SoundFont is loaded on MAIN, even
though user didn't select any instrument for the section.
Section tracks now keep null instrument + synth_engine
undefined. User can still load instrument manually via
Synth button (routed by updateActiveTracks fix).
This commit is contained in:
2026-07-28 08:27:27 +07:00
parent f2ac70eee0
commit 18e177fa2d
3 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -8514,9 +8514,10 @@ const App = () => {
markers: [],
isArmed: false,
monitoringEnabled: true,
instrumentId: t.instrumentId || null,
instrumentProgram: t.instrumentProgram,
instrumentName: t.instrumentName || null
instrumentId: null,
instrumentProgram: undefined,
instrumentName: null,
synth_engine: undefined
}));
setSessionTabs(prev => [...prev, { id: tabId, name: tabName, sectionId: sectionId, tracks: clonedTracks, color: section.color || null }]);
setActiveTab(tabId);