Documentation
    Preparing search index...

    Class Piano

    Index
    • 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")