How to use the music-gamut.transpose function in music-gamut

To help you get started, we’ve selected a few music-gamut examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github danigb / music-chord / chord.js View on Github external
function chord (src, tonic) {
  var intervals = gamut.sortBySize(gamut.distances(null, src))
  return tonic ? gamut.transpose(tonic, intervals) : intervals
}