mickeyf.docs
    Preparing search index...

    Note selection + playback helper.

    Responsibility:

    • Select a scale/key and emit a short percussive note.

    Side effects:

    • Plays audio via Tone.js.
    • If no explicit selection is provided, reads from the DOM ([data-selected-scale], [data-selected-key]).

    Units:

    • Notes are frequencies in Hz.
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Plays a note using the provided selection.

      Invariants:

      • When selection is omitted, scale/key are read from the DOM and default to Major/C.
      • Unknown scale names fall back to Major.

      Parameters

      • Optionalselection: { key: string; scaleName: string }

        Optional explicit selection (key and scaleName).

      Returns void