MusicTheory Docs API Toolbox GitHub NuGet
Contents

API / MusicTheory.Training

Question<T> record

One drill question: what to play, what to choose from and the right answer.

Constructors

Question<T>(string Prompt, IReadOnlyList<IReadOnlyList<Note>> Sounds, IReadOnlyList<T?> Choices, T? Answer, KeySignature? Key = null)
One drill question: what to play, what to choose from and the right answer.
Prompt
The instruction shown to the learner.
Sounds
The notes to play, in order; notes in the same inner list sound together.
Choices
The possible answers; empty when the answer is a free sequence.
Answer
The expected answer.
Key
The tonal context, when the drill has one.

Properties

string Prompt { get; init; }
The instruction shown to the learner.
IReadOnlyList<IReadOnlyList<Note>> Sounds { get; init; }
The notes to play, in order; notes in the same inner list sound together.
IReadOnlyList<T?> Choices { get; init; }
The possible answers; empty when the answer is a free sequence.
T? Answer { get; init; }
The expected answer.
KeySignature? Key { get; init; }
The tonal context, when the drill has one.