Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var data = mapValues(hash, function (src) {
return gamut.set(src)
})
alias = alias || {}
function scale (src, tonic) {
var intervals = gamut.set(src)
return tonic ? transpose(tonic, intervals) : gamut.asIntervals(intervals)
}
module.exports = function (degrees, notes) {
var tonic = gamut.asArray(notes)[0]
var set = gamut.set(notes)
var numbers = gamut.asArray(degrees).map(function (i) { return +i - 1 })
var selected = numbers.map(function (num) {
return find(num, set)
})
return transpose(tonic, selected)
}