AudioKeys icon indicating copy to clipboard operation
AudioKeys copied to clipboard

Listen for octave change?

Open leifriksheim opened this issue 7 years ago • 1 comments

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.

leifriksheim avatar Apr 25 '18 11:04 leifriksheim

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));

WheelyWonka avatar Oct 02 '21 21:10 WheelyWonka