Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function dict (name, tonic) {
var data = dict.props(name)
if (!data) {
var n = R.exec(name)
data = n ? dict.props(n[5]) : null
if (!data) return []
tonic = tonic === false ? tonic : tonic || n[1] + n[2] + n[3]
}
if (typeof tonic === 'undefined') return function (t) { return dict(name, t) }
return data.intervals.map(transpose(tonic))
}
return build(src, dict)
scale.get = function (name) {
var p = regex.exec(name)
return (p && p[5]) ? scale(p[5], p[1] + p[2] + p[3]) : []
}
.map(function (e) { return roman.exec(e) })
.map(function (roman) {