Table of Contents

Struct ChromaticPitchEvent

Namespace
Celeritas.Core.Analysis
Assembly
Celeritas.dll

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

Offset Rational

Onset time in whole-note units.

Pitch int

MIDI pitch number (middle C = 60).

PitchClass byte

Pitch class (0-11).

NoteName string

Note name of the pitch class.

Alteration string

Alteration 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

string

NoteName

Note name of the pitch class.

public string NoteName { get; init; }

Property Value

string

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