chord library

Properties

exists bool Function(dynamic name)
Check if a given name correspond to a chord in the dictionary
final
intervals → dynamic Function([dynamic name])
Get chord intervals. It always returns an array
final
memo → dynamic Function([dynamic str]) Function([dynamic fn, Map cache])
final
names Function
Return the available chord names
final
NO_CHORD Map<String, List>
final
NUM_TYPES RegExp
final
properties Map<String, dynamic> Function(dynamic name)
final
props → dynamic Function([dynamic str])
Get chord properties. It returns an object with:
final
subsets → dynamic Function(dynamic name)
Find all chords names that are a subset of the given one (has less notes but all from the given chord)
final
supersets → dynamic Function(dynamic name)
Get all chords names that are a superset of the given one (has the same notes and at least one more)
final

Functions

notes(dynamic nameOrTonic, [dynamic name]) → dynamic
Get the chord notes of a chord. This function accepts either a chord name (for example: "Cmaj7") or a list of notes.
tokenize(dynamic name) → dynamic
Tokenize a chord name. It returns an array with the tonic and chord type If not tonic is found, all the name is considered the chord name.