Table of Contents

Class RhythmStatistics

Namespace
Celeritas.Core.Analysis
Assembly
Celeritas.dll

Statistics about rhythmic features.

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

Properties

AverageDuration

Mean note duration, in whole-note units.

public Rational AverageDuration { get; init; }

Property Value

Rational

DurationHistogram

Count of notes keyed by their duration (whole-note units).

public Dictionary<Rational, int> DurationHistogram { get; init; }

Property Value

Dictionary<Rational, int>

LongestDuration

Longest note duration, in whole-note units.

public Rational LongestDuration { get; init; }

Property Value

Rational

MeasureCount

Number of measures spanned by the notes.

public int MeasureCount { get; init; }

Property Value

int

NotesPerMeasure

Average number of notes per measure.

public float NotesPerMeasure { get; init; }

Property Value

float

ShortestDuration

Shortest note duration, in whole-note units.

public Rational ShortestDuration { get; init; }

Property Value

Rational

StrengthHistogram

Count of onsets keyed by their beat strength.

public Dictionary<BeatStrength, int> StrengthHistogram { get; init; }

Property Value

Dictionary<BeatStrength, int>

SyncopatedNotes

Number of syncopated notes.

public int SyncopatedNotes { get; init; }

Property Value

int

SyncopationPercent

Percentage of notes that are syncopated; 0 when there are no notes.

public float SyncopationPercent { get; }

Property Value

float

TotalNotes

Total number of notes analyzed.

public int TotalNotes { get; init; }

Property Value

int