MusicTheory Docs API Toolbox GitHub NuGet
Contents

API reference

Generated from the XML documentation of the published packages, so it always matches the code.

MusicTheory

AccidentalStyle enum
How accidentals are written: Bb / F# or B♭ / F♯.
Alteration enum
Accidentals, valued in semitones.
Beaming static class
Reads which events of a measure are beamed together.
Cadence record
A cadence arriving on the chord at Index.
CadenceDetector static class
Finds authentic, plagal, half and deceptive cadences in a chord sequence, on HarmonicAnalyzer numerals.
CadenceType enum
The kind of a cadence.
Chord record
A chord: a root, a ChordType, optional extensions and an inversion.
ChordFinder static class
Provides methods for identifying chords from a set of notes.
ChordInversion enum
Represents the inversion of a chord.
ChordMatch record
Represents a single chord identification result.
ChordProgression class
Diatonic harmony in a key: the chords built by stacking the scale's thirds, Roman numerals and progressions written as numerals (ii7 - V7 - Imaj7).
ChordQuality enum
The family of a chord's triad.
ChordScale static class
Chord-scale matching: which scales on a chord's root contain every chord tone.
ChordSymbol record
A lead-sheet chord symbol such as Am7, D/F#, B♭Δ7 or C7b9#11: a root, a chord type, optional tensions and an optional bass that need not be a chord tone (C/Bb).
ChordSymbolParseOptions record
Options for ChordSymbol.Parse.
ChordSymbolStyle record
How a ChordSymbol is rendered.
ChordTransposer static class
String-in, string-out chord transposition for lyric sheets and tools.
ChordType enum
The chord types, each defined by its intervals above the root (see Chord.Intervals).
Direction enum
Represents the direction of a musical operation.
Duration record
Represents a musical duration (note or rest length), exact to the fraction.
DurationType enum
Represents the type of note duration.
Hand enum
The hand a fingering is for.
HarmonicAnalyzer static class
Roman-numeral analysis of chords in a key, by pitch class (so a mis-spelled F##m in Eb is still iii).
HarmonicFunction enum
How a chord relates to the key it is analysed in.
Interval record
A spelled, directed interval: a quality, a number (1 = unison, 8 = octave, 9 and up are compound) and a direction on the staff.
IntervalQuality enum
The quality of an interval, ordered from narrowest to widest.
KeyCandidate record
A key proposed by KeyDetector.
KeyDetector static class
Infers the key of a chord sequence with a cheap, explainable score over the 24 major/minor keys.
KeyMode enum
Represents the mode of a key (major or minor).
KeyRegion record
A stretch of chords in one key.
KeySignature record
A key: a tonic and a mode, with its signature computed on the line of fifths.
Measure record
A time signature and the events of one voice inside one bar.
MinorSolfege enum
Which note a minor key calls do in movable do.
ModulationDetector static class
Splits a chord sequence into key regions by voting over sliding KeyDetector windows.
MotionType enum
Represents the type of motion between two voices.
NeoRiemannian static class
Neo-Riemannian P, L and R moves on spelled major and minor triads.
Note record
A spelled pitch: a letter, an accidental and an octave in scientific pitch notation (middle C is C4).
NoteName enum
The seven note letters.
NoteNotation enum
Note-naming convention accepted by Note.Parse.
PianoFingering static class
Standard piano fingerings for heptatonic scales and close-position triads.
PianoKey record
A piano key in white-key units: white keys are 1 wide, black keys 0.6 and sit on the boundary.
PianoLayout static class
Keyboard geometry for drawing a piano view.
PianoVoicer static class
Voices chord symbols as the shapes pianists play (drop 2/3, shell, rootless).
PianoVoicingStyle enum
Piano voicing shapes.
PitchClassSet record
An unordered set of pitch classes (0 to 11), the object of pitch-class set theory.
Rational struct
An exact fraction of Int64 parts, always in lowest terms with the sign on the numerator.
Reharmonizer static class
Common jazz reharmonisation moves, spelled by interval.
RhythmEvent record
A chord, a single note or a rest with a duration.
RomanNumeral record
A Roman-numeral reading of one chord in a key.
Scale record
A scale on a tonic.
ScaleType enum
Scale types, each defined by its intervals above the tonic.
Solfege static class
Solfège note names: fixed do (Do is C) and movable do (the syllable names a scale degree of a key).
SolfegeStyle enum
How Solfege.FixedDo writes accidentals.
SuffixHandling enum
What ChordTransposer does with the suffix text of a chord.
Swing static class
Swing timing: maps straight score positions to performed positions.
Temperament class
A tuning system: per-degree offsets (in cents) from 12-TET, applied relative to a tonic.
TempoChange record
A step tempo change at an exact score position.
TempoMap record
An immutable list of step tempo changes, converting score positions (in whole notes) to seconds and back.
TimeSignature record
Represents a musical time signature (meter).
TunedPitch record
A note plus a deviation in cents from its 12-TET pitch: a tuner reading or a microtonal pitch.
VoiceLeader static class
Chooses piano voicings for a chord progression so that each one moves the least from the previous.
VoiceLeadingRules static class
Common-practice part-writing checks.
VoiceLeadingViolation record
Represents a voice leading violation.
VoiceLeadingViolationType enum
Represents the type of voice leading violation.

MusicTheory.Guitar

Barre record
An index-finger barre across a range of strings.
BarreShape record
A barre bar from BarreShape.X1 to BarreShape.X2 at height BarreShape.Y.
ChordDiagramLayout record
Framework-agnostic geometry for a chord diagram: strings are vertical lines, frets horizontal; (0, 0) is the top-left of the grid, the nut (or top fret line) is at y = 0, and markers sit half a fret above it.
DiagramOptions record
Diagram options.
FingerDot record
A fretted note.
Fretboard record
A tuning and a fret range: names every fret and finds the positions of a note, scale or chord.
FretPosition record
One sounding position on a Fretboard.
GuitarVoicing record
A playable guitar voicing of a chord.
GuitarVoicingProvider class
Voicings for every ChordType: curated open shapes, movable E/A/D-form shapes and a fretboard search, merged, de-duplicated and ranked by GuitarVoicing.Difficulty.
IGuitarVoicingProvider interface
Supplies guitar voicings for a chord.
Line record
A line segment.
MarkerKind enum
Open or muted marker kind.
Point record
A point.
StringMarker record
An open/muted marker above the nut.
Tuning record
A fretted-instrument tuning: the open-string notes, lowest string first.
VoicingDescriber static class
Spoken names and accessible labels for chords and voicings.
VoicingOptions record
Options for IGuitarVoicingProvider.GetVoicings.
VoicingSource enum
Where a voicing comes from.

MusicTheory.Training

AnswerResult record
The outcome of checking an answer.
ChordDrill class
A reproducible chord-quality drill: the same options and seed replay the same questions.
ChordDrillOptions record
Which chord qualities a drill asks, and whether it inverts them.
Difficulty enum
How demanding a drill is.
IntervalDrill class
A reproducible interval ear-training drill: the same options and seed replay the same questions.
IntervalDrillOptions record
Which intervals a drill asks, and how.
MelodyDrill class
A reproducible melodic-dictation drill: the same options and seed replay the same questions.
MelodyDrillOptions record
How long a dictated melody is and how it moves.
ProgressionDrill class
A reproducible Roman-numeral progression drill: the same options and seed replay the same questions.
ProgressionDrillOptions record
Which degrees a progression drill draws from, and whether it uses minor keys.
Question record
One drill question: what to play, what to choose from and the right answer.
ScaleDrill class
A reproducible scale-identification drill: the same options and seed replay the same questions.
ScaleDrillOptions record
Which scales a drill asks.
SeededRandom class
A deterministic random source (SplitMix64).