feat: added sheet music (stuff notation) view to the piano roll window MIDI mode

This commit is contained in:
Xiaohan-Tian
2026-05-09 23:50:02 -07:00
parent 841575e01f
commit d69b3924e5
14 changed files with 1440 additions and 80 deletions
+18
View File
@@ -15,6 +15,8 @@ export class KGPianoRollState {
private currentMode: string = "ionian"; // Default mode
private automationViewEnabled: boolean = false;
private currentAutomationType: string = "pitch-bend";
private sheetMusicViewEnabled: boolean = false;
private sheetQuantization: string = '16,48';
// Chord guide state
private currentSuitableChords: Record<string, string[]> = {}; // Map of chord symbols to note names (e.g., {"I": ["C", "E", "G"]})
@@ -83,6 +85,22 @@ export class KGPianoRollState {
this.currentAutomationType = type;
}
public getSheetMusicViewEnabled(): boolean {
return this.sheetMusicViewEnabled;
}
public setSheetMusicViewEnabled(enabled: boolean): void {
this.sheetMusicViewEnabled = enabled;
}
public getSheetQuantization(): string {
return this.sheetQuantization;
}
public setSheetQuantization(value: string): void {
this.sheetQuantization = value;
}
public getCurrentSuitableChords(): Record<string, string[]> {
return this.currentSuitableChords;
}