ScaleDegree class
- Implemented types
- Annotations
-
- @immutable
Constructors
- ScaleDegree(int ordinal, {ImperfectQuality? quality, int inversion = 0, int semitonesDelta = 0})
-
Creates a new ScaleDegree.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- inversion → int
-
The inversion of the Chord above this ScaleDegree.
final
- inverted → ScaleDegree
-
This ScaleDegree inverted.
no setter
- isLowered → bool
-
Whether this ScaleDegree is lowered.
no setter
- isRaised → bool
-
Whether this ScaleDegree is raised.
no setter
- lowered → ScaleDegree
-
This ScaleDegree lowered by 1 semitone.
no setter
- major → ScaleDegree
-
This ScaleDegree as ImperfectQuality.major.
no setter
- minor → ScaleDegree
-
This ScaleDegree as ImperfectQuality.minor.
no setter
- ordinal → int
-
The ordinal that identifies this ScaleDegree.
final
- quality → ImperfectQuality?
-
The quality of the Chord above this ScaleDegree.
final
- raised → ScaleDegree
-
This ScaleDegree raised by 1 semitone.
no setter
- romanNumeral → String
-
Returns the roman numeral of this ScaleDegree based on ordinal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semitonesDelta → int
-
The semitones raising or lowering this ScaleDegree’s root note.
final
Methods
-
compareTo(
ScaleDegree other) → int -
Compares this object to another object.
override
-
copyWith(
{int? ordinal, ImperfectQuality? quality, int? inversion, int? semitonesDelta}) → ScaleDegree - Creates a new ScaleDegree from this one by updating individual properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
{ScaleDegreeNotation system = ScaleDegreeNotation.standard}) → String -
The string representation of this ScaleDegree based on
system
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- i → const ScaleDegree
- The I (tonic) ScaleDegree.
- ii → const ScaleDegree
- The II ScaleDegree.
- iii → const ScaleDegree
- The III ScaleDegree.
- iv → const ScaleDegree
- The IV ScaleDegree.
- neapolitanSixth → const ScaleDegree
- The neapolitan sixth ScaleDegree.
- v → const ScaleDegree
- The V ScaleDegree.
- vi → const ScaleDegree
- The VI ScaleDegree.
- vii → const ScaleDegree
- The VII ScaleDegree.