Table of Contents

Class DefaultChordCandidateProvider

Namespace
Celeritas.Core.Harmonization
Assembly
Celeritas.dll

Default provider: generates diatonic chords that contain the melody note.

public sealed class DefaultChordCandidateProvider : IChordCandidateProvider
Inheritance
DefaultChordCandidateProvider
Implements
Inherited Members

Methods

GetCandidates(int[], KeySignature, HarmonizationContext?)

public IEnumerable<ChordCandidate> GetCandidates(int[] melodyPitches, KeySignature key, HarmonizationContext? context = null)

Parameters

melodyPitches int[]
key KeySignature
context HarmonizationContext

Returns

IEnumerable<ChordCandidate>

Exceptions

ArgumentNullException

melodyPitches is null.