Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
beatstep.on('noteoff', async params => {
if (params.channel === 0x02) { // left controller buttons are all set to channel 2
// scale is sequence-bank
if (params.note === controls.SHIFT) {
console.log('sequence bank', hex(await beatstep.get(0x50, 0x03)))
}
// global midi channel is track
// TODO: this always returns 0x15
if (params.note === controls.CHAN) {
console.log('channel', hex(await beatstep.get(0x50, 0x0B)))
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.