Table of Contents

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

melodyPitches int[]

MIDI pitches active in this segment (reduce with % 12 for pitch classes)

key KeySignature

Current key signature

context HarmonizationContext

Optional context from previous harmonization

Returns

IEnumerable<ChordCandidate>

Candidate chords with their associated costs