PitchClass class

A pitch class represents a set of pitches separated by an integral number of octaves. For example, C is a single pitch class.

Constructors

PitchClass({required int integer})
factory
PitchClass.fromSemitones(int integer)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
inspect String
no setter
integer int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

parse(String pitchClassName) PitchClass