Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
}
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)
}