Table of Contents

Interface IHarmonicRhythmStrategy

Namespace
Celeritas.Core.Harmonization
Assembly
Celeritas.dll

Determines where chord changes occur (harmonic rhythm). Implement this to customize chord change placement.

public interface IHarmonicRhythmStrategy

Methods

Segment(ReadOnlySpan<NoteEvent>)

Segment a melody into slices, each representing one chord.

IReadOnlyList<MelodySlice> Segment(ReadOnlySpan<NoteEvent> melody)

Parameters

melody ReadOnlySpan<NoteEvent>

The melody notes to segment

Returns

IReadOnlyList<MelodySlice>

Time slices where each slice gets one chord