NotePosition class

Available Extensions
Annotations
  • @freezed

Constructors

NotePosition({required Note note, @Default(4) int octave, @Default(Accidental.None) Accidental accidental})
factory

Properties

accidental Accidental
no setterinherited
copyWith → $NotePositionCopyWith<NotePosition>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
note Note
no setterinherited
octave int
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

middleC NotePosition
no setter

Static Methods

fromName(String string) NotePosition?
Parse a String into a NotePosition. Accepts strings of two or three characters, which must include a note name, an optional sharp or flat symbol, and an octave number.