Function tryParseInput

  • Parses a note with an optional octave. If the octave is present, returns a Note. If the octave is absent, returns a PitchClass (e.g. "C", "C#", "Db", "Ebb", "Fx").

    Parameters

    • noteText: string

    Returns NoteInput | string