API / MusicTheory
PianoFingering static class
Standard piano fingerings for heptatonic scales and close-position triads.
Methods
static IReadOnlyList<int> ForScale(Scale scale, Hand hand, int octaves = 1)Fingers 1 (thumb) to 5 for the ascending notes of a heptatonic scale: 7 ×
octaves + 1 values.Throws ArgumentNullException scale is null.
Throws ArgumentException The scale is not heptatonic.
Throws ArgumentOutOfRangeException octaves is below 1.
static IReadOnlyList<int> ForTriad(IReadOnlyList<Note> notes, Hand hand)Fingers for a close-position triad, aligned with the notes sorted ascending.
Throws ArgumentNullException notes is null.
Throws ArgumentException Not exactly three distinct pitches within an octave.