Skip to content

uiMidiKeyboard keyboard shortcuts for changing octave and velocity #701

Answered by damiensellier
synthmutt asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, there's no shortcuts for octave keyswitch yet.
We can add key combos to change any parameters listed here :
https://docs.juce.com/master/classMidiKeyboardComponent.html

setKeyPressBaseOctave() seems to be the one you're looking for right ?
https://docs.juce.com/master/classMidiKeyboardComponent.html#ad79211e120662c2ce6079e78f724209f

Changes the base note above which key-press-triggered notes are played.
The set of key-mappings that trigger notes can be moved up and down to cover the entire scale using this method.
The value passed in is an octave number between 0 and 10 (inclusive), and indicates which C is the base note to which the key-mapped notes are relative.

It's easy to add in…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@synthmutt
Comment options

@damiensellier
Comment options

@synthmutt
Comment options

@damiensellier
Comment options

Answer selected by synthmutt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants