Struct ModalTurnEvent
A detected segment where a different mode explains the pitch material better than the base key mode.
public readonly record struct ModalTurnEvent : IEquatable<ModalTurnEvent>
- Implements
- Inherited Members
Constructors
ModalTurnEvent(int, int, Mode, double, int)
A detected segment where a different mode explains the pitch material better than the base key mode.
public ModalTurnEvent(int StartChordIndex, int EndChordIndex, Mode Mode, double Confidence, int OutOfKeyPitchClassMask)
Parameters
StartChordIndexintIndex of the first chord in the segment.
EndChordIndexintIndex of the last chord in the segment.
ModeModeThe mode that best explains the segment.
ConfidencedoubleCoverage improvement over the base mode.
OutOfKeyPitchClassMaskint12-bit pitch-class mask (bit n = pitch class n) of pitch classes used that lie outside the base key. A mask (not an array) keeps this record struct's value equality meaningful.
Properties
Confidence
Coverage improvement over the base mode.
public double Confidence { get; init; }
Property Value
EndChordIndex
Index of the last chord in the segment.
public int EndChordIndex { get; init; }
Property Value
Mode
The mode that best explains the segment.
public Mode Mode { get; init; }
Property Value
OutOfKeyPitchClassMask
12-bit pitch-class mask (bit n = pitch class n) of pitch classes used that lie outside the base key. A mask (not an array) keeps this record struct's value equality meaningful.
public int OutOfKeyPitchClassMask { get; init; }
Property Value
StartChordIndex
Index of the first chord in the segment.
public int StartChordIndex { get; init; }