ddycai / chord-transposer

Node library for transposing musical chords within text.
https://ddycai.github.io/chord-transposer/
MIT License
58 stars 23 forks source link

Defer guessing the key until it is actually needed #7

Closed phjardas closed 6 years ago

phjardas commented 6 years ago

This allows the user to explicitly set the song key and prevents the transposer to always try to guess the song key during construction.

A use case where this would fail would be the sequence G# in the key of C#m, because G# is considered an invalid chord on its own.

Fixes #6