BaseNote enum
- Inheritance
- Implemented types
Constructors
- BaseNote(int semitones)
-
Creates a new BaseNote from semitones.
const
- BaseNote.fromOrdinal(int ordinal)
-
Returns a BaseNote that matches with
ordinal
.factory - BaseNote.parse(String source)
-
Parse
source
as a BaseNote and return its value.factory
Values
- c → const BaseNote
-
Note C.
const BaseNote(0)
- d → const BaseNote
-
Note D.
const BaseNote(2)
- e → const BaseNote
-
Note E.
const BaseNote(4)
- f → const BaseNote
-
Note F.
const BaseNote(5)
- g → const BaseNote
-
Note G.
const BaseNote(7)
- a → const BaseNote
-
Note A.
const BaseNote(9)
- b → const BaseNote
-
Note B.
const BaseNote(11)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- ordinal → int
-
The ordinal number of this BaseNote.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semitones → int
-
The number of semitones that identify this BaseNote.
final
Methods
-
compareTo(
BaseNote other) → int -
Compares this object to another object.
override
-
difference(
BaseNote other) → int -
The difference in semitones between this BaseNote and
other
. -
intervalSize(
BaseNote other) → Size -
The Size that conforms between this BaseNote and
other
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
positiveDifference(
BaseNote other) → int -
The positive difference in semitones between this BaseNote and
other
. -
toString(
{NoteNotation system = NoteNotation.english}) → String -
The string representation of this BaseNote based on
system
.override -
transposeBySize(
Size size) → BaseNote -
Transposes this BaseNote by interval
size
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromSemitones(
int semitones) → BaseNote? -
Returns a BaseNote that matches with
semitones
as in BaseNote, otherwise returnsnull
.