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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user