MusicTheory Docs API Toolbox GitHub NuGet
Contents

API / MusicTheory.Training

IntervalDrill class

A reproducible interval ear-training drill: the same options and seed replay the same questions.

Constructors

IntervalDrill(IntervalDrillOptions options, UInt64 seed)
Creates a drill. Throws ArgumentException when the pool is empty.

Methods

AnswerResult<Interval> Check(Question<Interval> question, Interval given)
Checks an answer by ear: same size in semitones once simplified, so d5 is right for A4 and direction is ignored.
Question<Interval> Next()
The next question. Draw order (a public contract): root, octave, interval, direction, harmonic.