MusicTheory Docs API Toolbox GitHub NuGet
Contents

API / MusicTheory

VoiceLeadingViolation record

Represents a voice leading violation.

Constructors

VoiceLeadingViolation(VoiceLeadingViolationType Type, string Description, (int, int)? VoiceIndices = null)
Represents a voice leading violation.
Type
The kind of violation.
Description
A readable description.
VoiceIndices
The two voices involved, or null for a single-voice violation.

Properties

VoiceLeadingViolationType Type { get; init; }
The kind of violation.
string Description { get; init; }
A readable description.
(int, int)? VoiceIndices { get; init; }
The two voices involved, or null for a single-voice violation.