Help! select bank with unused matrixadress button #455
-
Hi, Pieter ! i need some help, let's say i had 2x4 button matrix and i want use the left and right top corner as increment decrement bank selector with led and the other button leave unused, so just two button used at the moment. my question, it's possible replacing incrementdecrementbutton pin with matrix address for selecting bank ? and it's look like i must write custom midi output element but i have no basic c++. So, can you explain some sample sketch ? thx! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't have much time right now, but you might want to have a look at this related issue: #308 (comment) Basically, if you want to be able to use the existing selectors or non-matrix MIDI elements, you need to implement the Alternatively, you can read the matrix yourself in your sketch, you can then send the MIDI messages yourself, as shown in the Custom MIDI Output Element example and its Bankable counterpart, and you can change the banks manually (without a Selector) by calling [ Before diving into the Control Surface docs, it might be useful to familiarize yourself with the basics of C++ first, e.g. using https://learncpp.com. |
Beta Was this translation helpful? Give feedback.
I don't have much time right now, but you might want to have a look at this related issue: #308 (comment)
Basically, if you want to be able to use the existing selectors or non-matrix MIDI elements, you need to implement the
ExtendedInputOutputElement
interface to tell Control Surface how it should read your button. The link above contains such an implementation.Alternatively, you can read the matrix yourself in your sketch, you can then send the MIDI messages yourself, as shown in the Custom MIDI Output Element example and its Bankable counterpart, and you can change the banks manually (without a Selector) by calling [
bank.select(setting)
](You don't need to use a selector to change the …