Created
February 7, 2020 03:09
-
-
Save konsumer/9b97b5d789c651eadfb0b14ba52a25f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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