coda
Tired of regexping your way through your music notes? This package provides some useful abstractions to work with music concepts.
Quickstart
Install with:
npm install coda-music
Usage:
> var coda = ;> var Scale = codaScale;> var Interval = codaInterval;> var Chord = codaChord; > Scale id: 'CM' specId: 'M' label: 'C Major Scale' ascending: 'C' 'D' 'E' 'F' 'G' 'A' 'B' descending: 'B' 'A' 'G' 'F' 'E' 'D' 'C' > Scalelength;84 > Chord id: 'C7' specId: '7' label: 'C 7th' notes: 'C' 'E' 'G' 'A#' > Chordlength;336 > Interval;8
Roadmap
- Key signatures
- Harmonize a scale
- Make scale notes key-aware (currently uses sharps only)
- Ability to provide custom "specs" (templates to build scales/chords upon)
- Suggestions? Please, file an issue or consider submitting a PR!