Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
A web component for selecting common spellings of enharmonic notes, and providing access to the selected note's associated pitch integer.
This package works with Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun




JSR Score
100%
Published
2 weeks ago (3.1.0)
A custom HTML element that allows users to select an enharmonic note.
This component displays a primary button which, when clicked, opens a modal dialog. The dialog presents a list of all enharmonic equivalents for each pitch class, allowing the user to select a specific note.
Key Features:
- Interactive Display: Renders a clickable button displaying the currently selected note (or a default symbol).
- Enharmonic Selection Dialog: Provides a comprehensive dialog for choosing any enharmonic note from all available pitch classes.
- Theming Support: Allows customization of note-specific colors (e.g., for underlines) via CSS custom properties.
- Event-Driven: Dispatches a custom event when a note is successfully selected, providing the note name and its corresponding pitch integer.
- Programmatic Control: Exposes public properties for getting/setting the selected note's name and pitch integer.
- Attribute Synchronization: Supports setting the initial selected note via an HTML attribute.
- Random Selection: Includes a public method to programmatically select a random note, useful for demonstrations or practice applications.
Built and signed on
GitHub Actions
Add Package
deno add jsr:@musodojo/enharmonic-note-selector
Import symbol
import * as enharmonic_note_selector from "@musodojo/enharmonic-note-selector";
Import directly with a jsr specifier
import * as enharmonic_note_selector from "jsr:@musodojo/enharmonic-note-selector";
Add Package
pnpm i jsr:@musodojo/enharmonic-note-selector
pnpm dlx jsr add @musodojo/enharmonic-note-selector
Import symbol
import * as enharmonic_note_selector from "@musodojo/enharmonic-note-selector";
Add Package
yarn add jsr:@musodojo/enharmonic-note-selector
yarn dlx jsr add @musodojo/enharmonic-note-selector
Import symbol
import * as enharmonic_note_selector from "@musodojo/enharmonic-note-selector";
Add Package
vlt install jsr:@musodojo/enharmonic-note-selector
Import symbol
import * as enharmonic_note_selector from "@musodojo/enharmonic-note-selector";
Add Package
npx jsr add @musodojo/enharmonic-note-selector
Import symbol
import * as enharmonic_note_selector from "@musodojo/enharmonic-note-selector";
Add Package
bunx jsr add @musodojo/enharmonic-note-selector
Import symbol
import * as enharmonic_note_selector from "@musodojo/enharmonic-note-selector";