feat: added track scope mode for sheet music view; adjusted viewport behavior when switching between piano roll view and sheet music view

This commit is contained in:
Xiaohan-Tian
2026-05-10 13:11:10 -07:00
parent d69b3924e5
commit 578be7b726
11 changed files with 850 additions and 135 deletions
+9
View File
@@ -16,6 +16,7 @@ export class KGPianoRollState {
private automationViewEnabled: boolean = false;
private currentAutomationType: string = "pitch-bend";
private sheetMusicViewEnabled: boolean = false;
private sheetMusicTrackScopeEnabled: boolean = false;
private sheetQuantization: string = '16,48';
// Chord guide state
@@ -93,6 +94,14 @@ export class KGPianoRollState {
this.sheetMusicViewEnabled = enabled;
}
public getSheetMusicTrackScopeEnabled(): boolean {
return this.sheetMusicTrackScopeEnabled;
}
public setSheetMusicTrackScopeEnabled(enabled: boolean): void {
this.sheetMusicTrackScopeEnabled = enabled;
}
public getSheetQuantization(): string {
return this.sheetQuantization;
}