Table of Contents

Class CounterpointViolation

Namespace
Celeritas.Core.Analysis
Assembly
Celeritas.dll

Counterpoint violation detected in the analysis.

public sealed record CounterpointViolation : IEquatable<CounterpointViolation>
Inheritance
CounterpointViolation
Implements
Inherited Members

Properties

Description

Human-readable description of the violation.

public required string Description { get; init; }

Property Value

string

Severity

Severity label: Error, Warning, or Style.

public required string Severity { get; init; }

Property Value

string

Time

Time offset where the violation occurs, in whole-note units.

public required Rational Time { get; init; }

Property Value

Rational

Type

Kind of violation (e.g. Parallel Fifths, Large Leap).

public required string Type { get; init; }

Property Value

string

Voice1

Position in Voices of the first voice involved.

public required int Voice1 { get; init; }

Property Value

int

Remarks

The Voice Crossing and Spacing entries of CheckCounterpointRules(NoteBuffer, int) used to name the register slot each voice had been placed in instead, so with an empty slot above them a tenor/bass pair was reported as voices 2 and 3 of a two-voice list.

Voice2

Position in Voices of the second voice involved; the same as Voice1 for a finding about one voice, such as a large leap.

public required int Voice2 { get; init; }

Property Value

int