fix: few minor UI adjustments and fixes

This commit is contained in:
Xiaohan-Tian
2026-05-07 23:28:16 -07:00
parent 917a1b0a21
commit 1e33caafc5
8 changed files with 199 additions and 34 deletions
+19 -1
View File
@@ -13,6 +13,8 @@ export class KGPianoRollState {
private currentSnap: string = "NO SNAP";
private lastEditedNoteLength: number = 1; // Default to 1 beat
private currentMode: string = "ionian"; // Default mode
private automationViewEnabled: boolean = false;
private currentAutomationType: string = "pitch-bend";
// Chord guide state
private currentSuitableChords: Record<string, string[]> = {}; // Map of chord symbols to note names (e.g., {"I": ["C", "E", "G"]})
@@ -65,6 +67,22 @@ export class KGPianoRollState {
this.currentMode = mode;
}
public getAutomationViewEnabled(): boolean {
return this.automationViewEnabled;
}
public setAutomationViewEnabled(enabled: boolean): void {
this.automationViewEnabled = enabled;
}
public getCurrentAutomationType(): string {
return this.currentAutomationType;
}
public setCurrentAutomationType(type: string): void {
this.currentAutomationType = type;
}
public getCurrentSuitableChords(): Record<string, string[]> {
return this.currentSuitableChords;
}
@@ -104,4 +122,4 @@ export class KGPianoRollState {
public setCurrentChordCursorPitch(pitch: number | null): void {
this.currentChordCursorPitch = pitch;
}
}
}