A web component for selecting a musical note from its enharmonic equivalents.
noteColorGroup: ColorGroup | null
Sets the color group for note pitches. This will automatically calculate and apply high-contrast text colors for each background.
rootNotesOnly: boolean
Sets whether the selector should be restricted to common root notes.
selectedNoteName: string | null
noteColorGroup: ColorGroup | null
Gets the currently configured color group for note pitches.
rootNotesOnly: boolean
Gets whether the selector is restricted to common root notes.
selectedNoteInteger: RootNoteInteger | null
Gets the integer representation (0-11) of the selected note.
selectedNoteName: string | null
Gets the currently selected note name (e.g., "C♯", "D♭").
attributeChangedCallback(): void
connectedCallback(): void
disconnectedCallback(): void
setRandomNote(): void
Selects a new, random note from the available options. Ensures the newly selected note is different from the current one.
observedAttributes: string[]