EqualTemperament class
- Inheritance
-
- Object
- TuningSystem
- EqualTemperament
- Annotations
-
- @immutable
Constructors
-
EqualTemperament(List<
int> _steps, {Pitch referencePitch = _defaultReferencePitch}) -
Creates a new EqualTemperament from
_steps
and referencePitch.const - EqualTemperament.edo12({Pitch referencePitch = _defaultReferencePitch})
-
See 12 equal temperament.
const
- EqualTemperament.edo19({Pitch referencePitch = _defaultReferencePitch})
-
See 19 equal temperament.
const
Properties
-
cents
→ Iterable<
Cent> -
The cents for each division step in this EqualTemperament.
no setter
- edo → int
-
The equal divisions of the octave of this EqualTemperament.
no setter
- generator → Cent
-
The number of Cent for the generator at Interval.P5 in this
TuningSystem.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
- referencePitch → Pitch
-
The reference Pitch from which this TuningSystem is tuned.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
steps
→ List<
int> -
The equal divisions between each BaseNote and the next one.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ratio(
Pitch pitch) → Ratio -
The Ratio from
pitch
in this TuningSystem.override -
ratioFromSemitones(
int semitones) → Ratio -
The Ratio from
semitones
for this EqualTemperament. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- referenceGeneratorCents → const Cent
- The reference generator cents.