Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function pitchSetGen (notes) {
var scale = _.map(_.pc, notes)
var chromas = _.map(_.chroma, scale)
return function (pitch) {
var midi = pitch
var ch = midi % 12
var index = chromas.indexOf(ch)
return index > -1 ? buildNote(scale[index], midi) : null
}
}
export function pitchSetGen (notes) {
var scale = _.map(_.pc, notes)
var chromas = _.map(_.chroma, scale)
return function (pitch) {
var midi = pitch
var ch = midi % 12
var index = chromas.indexOf(ch)
return index > -1 ? buildNote(scale[index], midi) : null
}
}
export function pitchSetGen (notes) {
var scale = _.map(_.pc, notes)
var chromas = _.map(_.chroma, scale)
return function (pitch) {
var midi = pitch
var ch = midi % 12
var index = chromas.indexOf(ch)
return index > -1 ? buildNote(scale[index], midi) : null
}
}
function pitchSetGen (notes) {
var scale = _.map(_.pc, notes)
var chromas = _.map(_.chroma, scale)
return function (pitch) {
var midi = pitch
var ch = midi % 12
var index = chromas.indexOf(ch)
return index > -1 ? buildNote(scale[index], midi) : null
}
}