Table of Contents

Struct AccompanimentOptions

Namespace
Celeritas.Core.Accompaniment
Assembly
Celeritas.dll

Configuration for accompaniment generation.

public readonly record struct AccompanimentOptions : IEquatable<AccompanimentOptions>
Implements
Inherited Members

Constructors

AccompanimentOptions(AccompanimentPattern, int, int, float, float, Rational, int)

Configuration for accompaniment generation.

public AccompanimentOptions(AccompanimentPattern Pattern, int BassOctave, int ChordOctave, float BassVelocity, float ChordVelocity, Rational Subdivision, int MaxChordTones)

Parameters

Pattern AccompanimentPattern

Accompaniment pattern (block chords, arpeggio, etc.).

BassOctave int

Octave for the bass line.

ChordOctave int

Octave for the chord voicing.

BassVelocity float

Bass note velocity, 0..1.

ChordVelocity float

Chord note velocity, 0..1.

Subdivision Rational

Rhythmic subdivision in whole-note units.

MaxChordTones int

Maximum number of chord tones to sound at once.

Properties

BassOctave

Octave for the bass line.

public int BassOctave { get; init; }

Property Value

int

BassVelocity

Bass note velocity, 0..1.

public float BassVelocity { get; init; }

Property Value

float

ChordOctave

Octave for the chord voicing.

public int ChordOctave { get; init; }

Property Value

int

ChordVelocity

Chord note velocity, 0..1.

public float ChordVelocity { get; init; }

Property Value

float

Default

Default accompaniment options: block chords, bass octave 2, chord octave 4, eighth-note subdivision.

public static AccompanimentOptions Default { get; }

Property Value

AccompanimentOptions

MaxChordTones

Maximum number of chord tones to sound at once.

public int MaxChordTones { get; init; }

Property Value

int

Pattern

Accompaniment pattern (block chords, arpeggio, etc.).

public AccompanimentPattern Pattern { get; init; }

Property Value

AccompanimentPattern

Subdivision

Rhythmic subdivision in whole-note units.

public Rational Subdivision { get; init; }

Property Value

Rational