TuningFork class

The representation of a tuning fork.

Annotations
  • @immutable

Constructors

TuningFork(Pitch pitch, Frequency frequency)
Creates a new TuningFork from pitch and frequency.
const
TuningFork.parse(String source, {List<StringParser<TuningFork>> chain = parsers})
Parse source as a TuningFork and return its value.
factory

Properties

frequency Frequency
The reference Frequency of this tuning fork.
final
hashCode int
The hash code for this object.
no setteroverride
pitch Pitch
The reference Pitch of this tuning fork.
final
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({StringFormatter<TuningFork> formatter = const CompactTuningForkNotation()}) String
The string representation of this TuningFork based on formatter.
override

Operators

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

Constants

a415 → const TuningFork
The A415 tuning fork.
a432 → const TuningFork
The A432 tuning fork.
a440 → const TuningFork
The A440 (pitch standard) tuning fork.
c256 → const TuningFork
The C256 tuning fork.
parsers → const List<StringNotationSystem<TuningFork>>
The chain of StringParsers used to parse a TuningFork.