Pitch class

A musical pitch, represented as a pair of the number of diatonic semitones C, and the number of accidental semitones above this diatonic value.

Constructors

Pitch({required int chromaticIndex, int accidentalSemitones = 0, int octave = -1})
factory
Pitch.fromMidiNumber(int midiNumber)
factory

Properties

accidentalSemitones int
final
accidentalsString String
no setter
diatonicSemitones int
final
hashCode int
The hash code for this object.
no setteroverride
helmholtzName String
no setter
inspect String
no setter
letterIndex int
an int in 0...7, where 0 represents 'C'
no setter
letterName String
a String in 'A'..'G'
no setter
midiNumber int
no setter
octave int
no setter
pitchClass PitchClass
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semitones int
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPitch() Pitch
toPitchClass() PitchClass
toString() String
A string representation of this object.
override

Operators

operator +(Interval interval) Pitch
operator -(dynamic other) Interval
operator ==(dynamic other) bool
The equality operator.
override

Static Methods

parse(String pitchName) Pitch
parseHelmholtzNotation(String pitchName) Pitch
parseScientificNotation(String pitchName) Pitch