MusicTheory Docs API Toolbox GitHub NuGet
Contents

API / MusicTheory

PianoLayout static class

Keyboard geometry for drawing a piano view.

Methods

static IReadOnlyList<PianoKey> Keys(int lowMidi, int highMidi)
The keys from lowMidi to highMidi inclusive.

Throws ArgumentOutOfRangeException A bound outside 0..127, or highMidi below lowMidi.