Interface IChordCandidateProvider
- Namespace
- Celeritas.Core.Harmonization
- Assembly
- Celeritas.dll
Provides chord candidates for a given melody slice. Implement this interface to customize how chords are generated.
public interface IChordCandidateProvider
Methods
GetCandidates(int[], KeySignature, HarmonizationContext?)
Generate candidate chords for a melody segment.
IEnumerable<ChordCandidate> GetCandidates(int[] melodyPitches, KeySignature key, HarmonizationContext? context = null)
Parameters
melodyPitchesint[]MIDI pitches active in this segment (reduce with % 12 for pitch classes)
keyKeySignatureCurrent key signature
contextHarmonizationContextOptional context from previous harmonization
Returns
- IEnumerable<ChordCandidate>
Candidate chords with their associated costs