This is basically a straight port of this library. It is a collection of data structures that represent musical entities, such as Key, Pitch, Interval, Scale, and Chord.
yarn add bs-music-theoryThen add bs-music-theory to bs-dependencies in your bsconfig.json:
{
...
"bs-dependencies": ["bs-music-theory"]
}Look here.
Additional documentation forthcoming.
Here is a repo. I will attempt to provide some usage examples.
yarn run test