Struct MelodicHarmonyEvent
One melody note analyzed against the current chord slice.
public readonly record struct MelodicHarmonyEvent : IEquatable<MelodicHarmonyEvent>
- Implements
- Inherited Members
Constructors
MelodicHarmonyEvent(Rational, int, byte, Rational, Rational, ushort, bool, MelodicHarmonyEventType, string)
One melody note analyzed against the current chord slice.
public MelodicHarmonyEvent(Rational Offset, int Pitch, byte PitchClass, Rational ChordStart, Rational ChordEnd, ushort ChordMask, bool IsChordTone, MelodicHarmonyEventType Type, string Description)
Parameters
OffsetRationalOnset time in whole-note units.
PitchintMIDI pitch number (middle C = 60).
PitchClassbytePitch class (0-11).
ChordStartRationalStart time of the chord slice, in whole-note units.
ChordEndRationalEnd time of the chord slice, in whole-note units.
ChordMaskushort12-bit pitch-class mask of the chord slice.
IsChordToneboolWhether the note is a member of the chord.
TypeMelodicHarmonyEventTypeClassification of the note.
DescriptionstringHuman-readable description of the classification.
Properties
ChordEnd
End time of the chord slice, in whole-note units.
public Rational ChordEnd { get; init; }
Property Value
ChordMask
12-bit pitch-class mask of the chord slice.
public ushort ChordMask { get; init; }
Property Value
ChordStart
Start time of the chord slice, in whole-note units.
public Rational ChordStart { get; init; }
Property Value
Description
Human-readable description of the classification.
public string Description { get; init; }
Property Value
IsChordTone
Whether the note is a member of the chord.
public bool IsChordTone { get; init; }
Property Value
Offset
Onset time in whole-note units.
public Rational Offset { get; init; }
Property Value
Pitch
MIDI pitch number (middle C = 60).
public int Pitch { get; init; }
Property Value
PitchClass
Pitch class (0-11).
public byte PitchClass { get; init; }
Property Value
Type
Classification of the note.
public MelodicHarmonyEventType Type { get; init; }