Struct VoiceInterval
Information about the interval between two voices at a specific time.
public readonly struct VoiceInterval
- Inherited Members
Properties
Interval
Interval class in semitones reduced to 0-11 (octave-equivalent).
public int Interval { get; }
Property Value
Pitch1
MIDI pitch of the first voice (middle C = 60).
public int Pitch1 { get; init; }
Property Value
Pitch2
MIDI pitch of the second voice (middle C = 60).
public int Pitch2 { get; init; }
Property Value
Quality
Consonance/dissonance classification of the interval class.
public IntervalQuality Quality { get; }
Property Value
RawInterval
Absolute distance between the two pitches in semitones, not octave-reduced.
public int RawInterval { get; }
Property Value
Time
Time offset of the interval, in whole-note units.
public Rational Time { get; init; }
Property Value
Voice1
Position in Voices of the first (upper) voice.
public int Voice1 { get; init; }
Property Value
Voice2
Position in Voices of the second (lower) voice.
public int Voice2 { get; init; }
Property Value
Methods
ToString()
Returns the interval name (e.g. P5) followed by its quality.
public override string ToString()