Table of Contents

Interface IMelodyFitScorer

Namespace
Celeritas.Core.Harmonization
Assembly
Celeritas.dll

Scores how well a chord fits the melody at a given moment.

public interface IMelodyFitScorer

Methods

ScoreFit(ChordCandidate, ReadOnlySpan<int>, bool)

Calculate the cost of using this chord for the given melody pitches. Lower cost = better fit.

float ScoreFit(ChordCandidate chord, ReadOnlySpan<int> melodyPitches, bool isStrongBeat)

Parameters

chord ChordCandidate
melodyPitches ReadOnlySpan<int>
isStrongBeat bool

Returns

float