fix: few minor UI adjustments and fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user