Table of Contents

Class IntervalStatistics

Namespace
Celeritas.Core.Analysis
Assembly
Celeritas.dll

Statistics about interval usage in the piece.

public sealed class IntervalStatistics
Inheritance
IntervalStatistics
Inherited Members

Properties

ConsonanceRatio

Percentage of intervals that are consonant (perfect + imperfect); 100 when none.

public float ConsonanceRatio { get; }

Property Value

float

DissonanceRatio

Percentage of intervals that are dissonant (mild + sharp); 0 when none.

public float DissonanceRatio { get; }

Property Value

float

ImperfectConsonances

Number of imperfect-consonance intervals (thirds and sixths).

public int ImperfectConsonances { get; init; }

Property Value

int

IntervalCounts

Occurrence count for each interval class (index 0-11 = semitones mod 12).

public int[] IntervalCounts { get; }

Property Value

int[]

MildDissonances

Number of mild-dissonance intervals (major second, minor seventh).

public int MildDissonances { get; init; }

Property Value

int

PerfectConsonances

Number of perfect-consonance intervals (unison, fifth, octave, fourth).

public int PerfectConsonances { get; init; }

Property Value

int

SharpDissonances

Number of sharp-dissonance intervals (minor second, major seventh, tritone).

public int SharpDissonances { get; init; }

Property Value

int

Total

Total number of classified intervals.

public int Total { get; }

Property Value

int