Documentation
    Preparing search index...
    Index
    • Clears all highlighted notes.

      Returns Piano

    • Clears all played notes.

      Returns Piano

    • Removes the current element from the DOM.

      Returns void

    • Renders the UI inside the current element.

      Returns Piano

    • Highlights the passed notes. Sets the corresponding note labels if passed.

      Use an underscore in order to skip a note.

      Parameters

      • notes: NoteInput

        The notes to be displayed

      • OptionalnoteLabels: NoteInput

        The corresponding note labels

      Returns Piano

      // will highlight C4, E4 and C5 with labels 1, 3 and 5
      setNotes("C4 E4 G4", "1 3 5")
      // will highlight C4, E4 and C5 with labels 1, (nothing) and 5
      setNotes("C4 E4 G4", "1 _ 5")
    • Sets the passed notes as played.

      Parameters

      Returns Piano