feat: persist track mute/solo status

This commit is contained in:
Xiaohan-Tian
2026-05-17 13:06:47 -07:00
parent cbd66ab4f6
commit 9c197ecd08
13 changed files with 285 additions and 21 deletions
+8
View File
@@ -873,6 +873,14 @@ export const useProjectStore = create<ProjectState>((set, get) => {
}
}
// Reapply restored mute/solo state after all buses exist so solo logic can be
// computed against the full track set.
for (const track of tracks) {
const trackId = track.getId().toString();
audioInterface.setTrackMute(trackId, track.getMuted());
audioInterface.setTrackSolo(trackId, track.getSolo());
}
// Update CSS variables
updateTimeSignatureCSS(timeSignature);
updateMaxBarsCSS(maxBars);