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