scale library

Properties

chords → dynamic Function(dynamic name)
Get all chords that fits a given scale
final
intervals → dynamic Function(dynamic name)
Given a scale name, return its intervals. The name can be the type and optionally the tonic (which is ignored)
final
memoize → dynamic Function([dynamic str]) Function([dynamic fn, Map cache])
final
modeNames → dynamic Function(dynamic name)
Find mode names of a scale
final
names Function
Return the available scale names
final
NO_SCALE Map<String, List>
final
properties Map<String, dynamic> Function(dynamic name)
final
props → dynamic Function([dynamic str])
Get scale properties. It returns an object with:
final
subsets → dynamic Function(dynamic name)
Find all scales names that are a subset of the given one (has less notes but all from the given scale)
final
supersets → dynamic Function(dynamic name)
Get all scales names that are a superset of the given one (has the same notes and at least one more)
final
toScale → dynamic Function(dynamic notes)
Given an array of notes, return the scale: a pitch class set starting from the first note of the array
final

Functions

exists(dynamic name) → dynamic
Check if the given name is a known scale from the scales dictionary
notes(dynamic nameOrTonic, [dynamic name]) → dynamic
Get the notes (pitch classes) of a scale.
tokenize([dynamic str]) → dynamic
Given a string with a scale name and (optionally) a tonic, split that components.