Chords

new Chords()

the plural class, simply to expose some functions in a more logical way
Source:

Methods

<static> fromNotes(array notes, integer inversion) → Chord[]

build a chord from individual notes these can be note objects or just a list of integers
Parameters:
Name Type Argument Default Description
notes array a simple array of integer notes
inversion integer <optional>
0 the number of the inversion, 0 = root position, 1 = first inversion, 2 = second inversion, ...
Source:
Returns:
an array of matching chords, null when nothing is found
Type
Chord[]