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
ChordChordInfoThe candidate chord.
Pitchesint[]MIDI pitches of the chord tones.
BaseCostfloatIntrinsic cost of the candidate before contextual scoring.
Properties
BaseCost
Intrinsic cost of the candidate before contextual scoring.
public float BaseCost { get; init; }
Property Value
Chord
The candidate chord.
public ChordInfo Chord { get; init; }
Property Value
Pitches
MIDI pitches of the chord tones.
public int[] Pitches { get; init; }
Property Value
- int[]