1.1.0 • Published 2 years ago

@devcjohn/chords v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Chords

This library is designed to take a set of notes and return the key those notes belong to. It currently only supports major chords

Example use

const key = getMajorKey('C', 'E', 'G')
// key === 'C'

const key = getMajorKey('F', 'D', 'Bb')
// key === 'Bb'

const key = getMajorKey('F##', 'D#', 'A#)
// key === 'D#'

For more examples, see the test file

Todo

  • Support 4+ notes
  • Support minor chords
  • Support diminished / augmented chords
  • Support 7th chords
  • Support 9th chords, etc
  • Improve error message when empty string passed
  • Better typing
1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago