Table of Contents

Class Motif

Namespace
Celeritas.Core.Analysis
Assembly
Celeritas.dll

A detected melodic motif (recurring pattern).

public sealed class Motif
Inheritance
Motif
Inherited Members

Properties

IntervalPattern

The recurring pattern as consecutive melodic intervals in semitones.

public required int[] IntervalPattern { get; init; }

Property Value

int[]

Length

Number of intervals in the pattern.

public required int Length { get; init; }

Property Value

int

Occurrences

Onset of each occurrence's first note. When the melody was analyzed without timing, these are sequential note positions (index i as i/1) rather than musical times.

public required IReadOnlyList<Rational> Occurrences { get; init; }

Property Value

IReadOnlyList<Rational>

PatternDescription

Human-readable description of the interval pattern.

public string PatternDescription { get; }

Property Value

string

Significance

Prominence score in 0-1, derived from pattern length and occurrence count.

public required double Significance { get; init; }

Property Value

double