AudioKeys
AudioKeys copied to clipboard
Listen for octave change?
Is there a way to listen for octave changes? I see that the keyboard.down listener only fires on notes – not octave change. I have a dynamic keyboard that needs to know when the octave is changing to render the correct active piano keys. For know is use the keyboard.get('octave') for every keyboard.down event, but it doesn't feel like the best solution.
I made a fork with that feature: https://github.com/WheelyWonka/AudioKeys for those who are looking for that one in 2021 😅
I could emit a PR if @kylestetz is interested.
this.keyboard.octaveChanged(octave => console.log('octaveChanged!', octave));
this.keyboard.velocityChanged(velocity => console.log('velocityChanged!', velocity));