Struct ChromaticPitchEvent
A pitch outside the diatonic scale of the analyzed key.
public readonly record struct ChromaticPitchEvent : IEquatable<ChromaticPitchEvent>
- Implements
- Inherited Members
Constructors
ChromaticPitchEvent(Rational, int, byte, string, string)
A pitch outside the diatonic scale of the analyzed key.
public ChromaticPitchEvent(Rational Offset, int Pitch, byte PitchClass, string NoteName, string Alteration)
Parameters
OffsetRationalOnset time in whole-note units.
PitchintMIDI pitch number (middle C = 60).
PitchClassbytePitch class (0-11).
NoteNamestringNote name of the pitch class.
AlterationstringAlteration label relative to the tonic (e.g.
b6,#4).
Properties
Alteration
Alteration label relative to the tonic (e.g. b6, #4).
public string Alteration { get; init; }
Property Value
NoteName
Note name of the pitch class.
public string NoteName { 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; }