Table of Contents

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

progression IReadOnlyList<HarmonicRhythmItem>
key KeySignature
options AccompanimentOptions?

Returns

NoteEvent[]

Exceptions

ArgumentNullException

progression is null.

ArgumentException

options is a default(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

chords IReadOnlyList<ChordAssignment>
options AccompanimentOptions?

Returns

NoteEvent[]

Exceptions

ArgumentNullException

chords is null.

ArgumentException

options is a default(AccompanimentOptions)-like value (see Default).

ArgumentOutOfRangeException

A computed MIDI pitch falls outside 0..127 (bad BassOctave or ChordOctave).