From 585690a0469bce8d5ebe79210b7b95d3adb9ce0d Mon Sep 17 00:00:00 2001 From: Xiaohan-Tian <157918347+Xiaohan-Tian@users.noreply.github.com> Date: Tue, 12 Aug 2025 21:10:49 -0700 Subject: [PATCH] fixed the issue that changing instrument will cause track volume back to default. --- src/core/audio-interface/KGAudioBus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/audio-interface/KGAudioBus.ts b/src/core/audio-interface/KGAudioBus.ts index a85f986..e1a51db 100644 --- a/src/core/audio-interface/KGAudioBus.ts +++ b/src/core/audio-interface/KGAudioBus.ts @@ -215,7 +215,7 @@ export class KGAudioBus { this.instrument = newInstrument; // Restore volume settings - // this.updateSamplerVolume(); + this.updateSamplerVolume(); console.log(`Instrument changed successfully to ${newInstrument}`); } catch (error) {