Documentation
    Preparing search index...

    Function withPlaybackMode

    • Converts a scientific pitch notation input to the abc notation of the desired playback mode.

      Parameters

      • input: NoteInput

        The note input in scientific pitch notation

      • playbackMode: PlaybackMode

        The playback mode (arpeggio / block)

      Returns string

      The corresponding abc notation

      // returns [CEG]6
      withPlaybackMode(['C3', 'G3', 'B3'], 'block');
      // returns CEG
      withPlaybackMode(['C3', 'G3', 'B3'], 'arpeggio');