Table of Contents

Struct VoiceInterval

Namespace
Celeritas.Core.Analysis
Assembly
Celeritas.dll

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

int

Pitch1

MIDI pitch of the first voice (middle C = 60).

public int Pitch1 { get; init; }

Property Value

int

Pitch2

MIDI pitch of the second voice (middle C = 60).

public int Pitch2 { get; init; }

Property Value

int

Quality

Consonance/dissonance classification of the interval class.

public IntervalQuality Quality { get; }

Property Value

IntervalQuality

RawInterval

Absolute distance between the two pitches in semitones, not octave-reduced.

public int RawInterval { get; }

Property Value

int

Time

Time offset of the interval, in whole-note units.

public Rational Time { get; init; }

Property Value

Rational

Voice1

Position in Voices of the first (upper) voice.

public int Voice1 { get; init; }

Property Value

int

Voice2

Position in Voices of the second (lower) voice.

public int Voice2 { get; init; }

Property Value

int

Methods

ToString()

Returns the interval name (e.g. P5) followed by its quality.

public override string ToString()

Returns

string