MusicTheory Docs API Toolbox GitHub NuGet
Contents

API / MusicTheory.Training

MelodyDrillOptions record

How long a dictated melody is and how it moves.

Constructors

MelodyDrillOptions(int Length, IReadOnlyList<int> Steps, bool MinorKeys, bool EndOnTonic)
How long a dictated melody is and how it moves.
Length
The number of notes.
Steps
The scale-degree steps the melody may take between notes.
MinorKeys
Whether questions may be in a minor key.
EndOnTonic
Whether the last note is the tonic or its octave.

Properties

int Length { get; init; }
The number of notes.
IReadOnlyList<int> Steps { get; init; }
The scale-degree steps the melody may take between notes.
bool MinorKeys { get; init; }
Whether questions may be in a minor key.
bool EndOnTonic { get; init; }
Whether the last note is the tonic or its octave.

Methods

static MelodyDrillOptions For(Difficulty difficulty)
The preset for a difficulty level.