How to use the music-gamut.asIntervals 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-scale / scale.js View on Github external
function scale (src, tonic) {
  var intervals = gamut.set(src)
  return tonic ? transpose(tonic, intervals) : gamut.asIntervals(intervals)
}