Parses a Note from s, starting at position pos.
The note.
This function must find a valid letter at s[pos], and then optionally a sequence of '#' (sharps) or 'b' (flats). It finds as many of the accidental as it can and then stops at the first character that can't be part of the accidental.
Exception Type | Condition |
---|---|
ArgumentException | A note cannot be parsed. |