The collection of chords that the progression contains.
The difference between the start
and end
values.
Attempts to set this to a negative value will result in an error being thrown.
The value which the range ends at.
Attempts to set this to a value less than start
will result in an error being thrown.
The value which the range starts at.
Attempts to set this to a value greater than end
will result in an error being thrown.
Returns the name of this type. This can be used rather than instanceof which is sometimes unreliable.
Add a new chord to the progression. If the new chord overlaps or entirely contains existing chords within the progression, then those chords will be shrunk down, or fully removed to make room for the new chord.
Returns the ChordProgression instance, to allow for chained operations
The start beat of the chord within the context of the progression
The beat duration of the chord
The chord itself that is to be added
Returns the chord that occurs at the given point in time within the chord progression.
The beat of the chord, relative to the start of the chord progression.
Returns a collection of all the chords that overlap with the passed in range.
If rangeEnd < rangeStart, then it returns all chords which end after rangeStart, or begin before rangeEnd.
Accepts a value and returns what percentage of the way into the range that the value is.
The returned value can be negative, or greater than 100%, if the passed in value is less than the range start, or greater than the range end.
The value to compare against the range.
Removes all chords from the progression that match the passed in criteria
The rule for which chords to remove
Generated using TypeDoc
The ChordProgression class reppresents a sequence of chords that play one after another.