Table of Contents

Struct ChordCandidate

Namespace
Celeritas.Core.Harmonization
Assembly
Celeritas.dll

A chord candidate with an associated base cost. Lower cost = more likely to be chosen.

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

Constructors

ChordCandidate(ChordInfo, int[], float)

A chord candidate with an associated base cost. Lower cost = more likely to be chosen.

public ChordCandidate(ChordInfo Chord, int[] Pitches, float BaseCost)

Parameters

Chord ChordInfo

The candidate chord.

Pitches int[]

MIDI pitches of the chord tones.

BaseCost float

Intrinsic cost of the candidate before contextual scoring.

Properties

BaseCost

Intrinsic cost of the candidate before contextual scoring.

public float BaseCost { get; init; }

Property Value

float

Chord

The candidate chord.

public ChordInfo Chord { get; init; }

Property Value

ChordInfo

Pitches

MIDI pitches of the chord tones.

public int[] Pitches { get; init; }

Property Value

int[]