unique id for this instance
will generate notes if needed or return the cached notes
The octave is clamped to the range [0, 9].
The octave is clamped to the range [0, 9].
The following predefined templates are available:
maj | maj4 | maj6 | maj69 |
maj7 | maj9 | maj11 | maj13 |
maj7s11 | majb5 | min | min4 |
min6 | min7 | minAdd9 | min69 |
min9 | min11 | min13 | min7b5 |
dom7 | dom9 | dom11 | dom13 |
dom7s5 | dom7b5 | dom7s9 | dom7b9 |
dom9b5 | dom9s5 | dom7s11 | dom7s5s9 |
dom7s5b9 | dim | dim7 | aug |
sus2 | sus4 | fifth | b5 |
s11 |
Mutates the chord in place
the chord with a sharp 5th
a copy of the chord with a sharp 5th
a copy of the chord
Mutates the chord in place
the chord with a flat 5th
a copy of the chord with a flat 5th
the other chord to compare to
true if the two chords are equal
the note names -> ['C4', 'E4', 'G4']
Mutates the chord in place
the chord with a flat 3,5, and 7th
a copy of the chord with a flat 3,5, and 7th
Mutates the chord in place
the chord with with the first note moved to the end up one octave
a copy of the chord with with the first note moved to the end up one octave
true if the chord has a sharp 5th
true if the chord has a flat 5th
true if the chord has a flat 3,5, and 7th
true if the chord has a natural 3rd
true if the chord has a flat 3rd
mutates the chord in place
the chord with a natrual 3rd
a copy of the chord with a natural 3rd
mutates the chord in place
the chord with a flat 3rd
a copy of the chord with a flat 3rd
the string form of the chord
Generated using TypeDoc
Chords consist of a root note, octave, chord template, and a base scale.
The chord template is an array of integers, each integer representing
a scale degree from the base scale(defaults to major).
The default template is the I,III,V denoted as [1,3,5]
ChordIntervals used in templates can also contain a modifier,
for a particular scale degree, such as [1,3,[5, -1]]
where -1 is flat, 0 is natural, and 1 is sharp.
It could also be written as [1,3,[5, modifier.flat]]
if you import modifier.
The following predefined templates are available: