Class AccompanimentGenerator
- Namespace
- Celeritas.Core.Accompaniment
- Assembly
- Celeritas.dll
Engine-native accompaniment generator. Produces NoteEvent events from harmonic rhythm.
public static class AccompanimentGenerator
- Inheritance
-
AccompanimentGenerator
- Inherited Members
Methods
Generate(IReadOnlyList<HarmonicRhythmItem>, KeySignature, AccompanimentOptions?)
Generate accompaniment from a roman-numeral progression. Chords are spelled in the provided key.
public static NoteEvent[] Generate(IReadOnlyList<HarmonicRhythmItem> progression, KeySignature key, AccompanimentOptions? options = null)
Parameters
progressionIReadOnlyList<HarmonicRhythmItem>keyKeySignatureoptionsAccompanimentOptions?
Returns
Exceptions
- ArgumentNullException
progressionis null.- ArgumentException
optionsis adefault(AccompanimentOptions)-like value (see Default).- ArgumentOutOfRangeException
A computed MIDI pitch falls outside 0..127 (bad BassOctave or ChordOctave).
Generate(IReadOnlyList<ChordAssignment>, AccompanimentOptions?)
Generate accompaniment from a harmonization output (chord assignments). Uses the provided chord pitches (voicing) and adds a bass line.
public static NoteEvent[] Generate(IReadOnlyList<ChordAssignment> chords, AccompanimentOptions? options = null)
Parameters
chordsIReadOnlyList<ChordAssignment>optionsAccompanimentOptions?
Returns
Exceptions
- ArgumentNullException
chordsis null.- ArgumentException
optionsis adefault(AccompanimentOptions)-like value (see Default).- ArgumentOutOfRangeException
A computed MIDI pitch falls outside 0..127 (bad BassOctave or ChordOctave).