Closed kentforth closed 3 years ago
It's not clear to me what you mean, ProgramChanger doesn't use banks.
If you want to control it using two buttons, see https://tttapa.github.io/Control-Surface-doc/Doxygen/d9/d7f/Program-Changer_8ino-example.html and use the IncrementDecrementSelector instead of the ManyButtonsSelector.
it is not necessary for me to use only programChanger. I just need to change program change number of buttons with banks
Thank you for answer!
it is not necessary for me to use only programChanger. I just need to change program change number of buttons with banks
In that case, you might want to use the Bankable::PCButton
class instead of ProgramChanger
.
Let's say I have 2 buttons for sending program change and 2 buttons for changing banks("btnUp", "btnDown") Initially program change buttons send
MIDI_PC::Acoustic_Grand_Piano
andMIDI_PC::Bright_Acoustic_Piano
I I press btnUp button the first PC button chanegs toMIDI_PC::Electric_Grand_Piano
and second PC button changes toMIDI_PC::Gunshot
If I press btnDown button these buttons go to it's inital PC value
How can I do it? Can you gvie me a sample sketch?
There is program change example in your library, but I don't know how to use it with banks: