Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function scale (src, tonic) {
var intervals = gamut.set(src)
return tonic ? transpose(tonic, intervals) : gamut.asIntervals(intervals)
}