Skip to content

Instantly share code, notes, and snippets.

@konsumer
Created February 7, 2020 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konsumer/9b97b5d789c651eadfb0b14ba52a25f7 to your computer and use it in GitHub Desktop.
Save konsumer/9b97b5d789c651eadfb0b14ba52a25f7 to your computer and use it in GitHub Desktop.
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