Scale<T extends Scalable<T>> class

A set of musical notes ordered by fundamental frequency or pitch.

See Scale (music).


See also:

Implemented types
Annotations
  • @immutable

Constructors

Scale(List<T> _degrees, [List<T>? _descendingDegrees])
Creates a new Scale instance from _degrees and optional _descendingDegrees.
const

Properties

degreeChords List<Chord<T>>
The Chord for each ScaleDegree of this Scale.
no setter
degrees List<T>
The Scalable degrees that define this Scale.
no setter
descendingDegrees List<T>
The descending Scalable degrees that define this Scale.
no setter
hashCode int
The hash code for this object.
no setteroverride
length int
The length of this Scale.
no setter
pattern ScalePattern
The ScalePattern of this Scale.
no setter
reversed Scale<T>
The reversed of this Scale.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

degree(ScaleDegree scaleDegree) → T
The T for the scaleDegree of this Scale.
degreeChord(ScaleDegree scaleDegree) Chord<T>
The Chord for the scaleDegree of this Scale.
functionChord(HarmonicFunction harmonicFunction) Chord<T>
The Chord for the harmonicFunction of this Scale.
isEnharmonicWith(Scale<T> other) bool
Whether this Scale is enharmonically equivalent to other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
transposeBy(Interval interval) Scale<T>
Transposes this Scale by interval.
override

Operators

operator ==(Object other) bool
The equality operator.
override