Table of Contents

Struct MelodicHarmonyEvent

Namespace
Celeritas.Core.Analysis
Assembly
Celeritas.dll

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

Offset Rational

Onset time in whole-note units.

Pitch int

MIDI pitch number (middle C = 60).

PitchClass byte

Pitch class (0-11).

ChordStart Rational

Start time of the chord slice, in whole-note units.

ChordEnd Rational

End time of the chord slice, in whole-note units.

ChordMask ushort

12-bit pitch-class mask of the chord slice.

IsChordTone bool

Whether the note is a member of the chord.

Type MelodicHarmonyEventType

Classification of the note.

Description string

Human-readable description of the classification.

Properties

ChordEnd

End time of the chord slice, in whole-note units.

public Rational ChordEnd { get; init; }

Property Value

Rational

ChordMask

12-bit pitch-class mask of the chord slice.

public ushort ChordMask { get; init; }

Property Value

ushort

ChordStart

Start time of the chord slice, in whole-note units.

public Rational ChordStart { get; init; }

Property Value

Rational

Description

Human-readable description of the classification.

public string Description { get; init; }

Property Value

string

IsChordTone

Whether the note is a member of the chord.

public bool IsChordTone { get; init; }

Property Value

bool

Offset

Onset time in whole-note units.

public Rational Offset { get; init; }

Property Value

Rational

Pitch

MIDI pitch number (middle C = 60).

public int Pitch { get; init; }

Property Value

int

PitchClass

Pitch class (0-11).

public byte PitchClass { get; init; }

Property Value

byte

Type

Classification of the note.

public MelodicHarmonyEventType Type { get; init; }

Property Value

MelodicHarmonyEventType