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
chordChordCandidatemelodyPitchesReadOnlySpan<int>isStrongBeatbool