FrettedInstrument class
A fretted instrument. Instances of this are used to compute chord frettings.
- Inheritance
-
- Object
- Instrument
- FrettedInstrument
Constructors
-
FrettedInstrument({required String name, required List<
Pitch> stringPitches})
Properties
- fretted → bool
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stringIndices
→ Iterable<
int> -
The indices, starting at 0, of the strings.
no setter
-
stringPitches
→ List<
Pitch> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pitchAt(
{required int stringIndex, required int fretNumber}) → Pitch - The pitch of a given fret on a give (0-based) string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited