ChordPattern class

A musical chord pattern.


See also:

Mixed in types
Annotations
  • @immutable

Constructors

ChordPattern(List<Interval> _intervals)
Creates a new ChordPattern from _intervals.
const
ChordPattern.fromIntervalSteps(Iterable<Interval> intervalSteps)
Creates a new ChordPattern from intervalSteps.
factory
ChordPattern.fromQuality(ImperfectQuality quality)
Creates a new ChordPattern from the given quality.
factory

Properties

abbreviation String
The abbreviated Quality representing this ChordPattern.
no setter
augmented ChordPattern
Returns a new ChordPattern with an ImperfectQuality.augmented root triad.
no setteroverride
diminished ChordPattern
Returns a new ChordPattern with an ImperfectQuality.diminished root triad.
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
intervals List<Interval>
The intervals from the root note.
no setter
isAugmented bool
Whether this ChordPattern is ImperfectQuality.augmented.
no setter
isDiminished bool
Whether this ChordPattern is ImperfectQuality.diminished.
no setter
isMajor bool
Whether this ChordPattern is ImperfectQuality.major.
no setter
isMinor bool
Whether this ChordPattern is ImperfectQuality.minor.
no setter
major ChordPattern
Returns a new ChordPattern with an ImperfectQuality.major root triad.
no setteroverride
minor ChordPattern
Returns a new ChordPattern with an ImperfectQuality.minor root triad.
no setteroverride
modifiers List<Interval>
The modifier Intervals from the root note.
no setter
rootTriad ChordPattern
The root triad of this ChordPattern.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Interval interval, {Set<int>? replaceSizes}) ChordPattern
Returns a new ChordPattern adding interval.
override
add11([PerfectQuality quality = PerfectQuality.perfect]) ChordPattern
Returns a new T adding an quality 11th.
inherited
add13([ImperfectQuality quality = ImperfectQuality.major]) ChordPattern
Returns a new T adding a quality 13th.
inherited
add6([ImperfectQuality quality = ImperfectQuality.major]) ChordPattern
Returns a new T adding a quality 6th.
inherited
add7([ImperfectQuality quality = ImperfectQuality.minor]) ChordPattern
Returns a new T adding a quality 7th.
inherited
add9([ImperfectQuality quality = ImperfectQuality.major]) ChordPattern
Returns a new T adding a quality 9th.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on<T extends Scalable<T>>(T scalable) Chord<T>
The Chord built on top of scalable.
sus2() ChordPattern
Returns a new T with a suspended Interval.M2.
inherited
sus4() ChordPattern
Returns a new T with a suspended Interval.P4.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

augmentedTriad → const ChordPattern
An augmented triad ChordPattern.
diminishedTriad → const ChordPattern
A diminished triad ChordPattern.
majorTriad → const ChordPattern
A major triad ChordPattern.
minorTriad → const ChordPattern
A minor triad ChordPattern.