Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use 1 shift button to change bank: #1034

Open
DRCRecoveryData opened this issue Apr 21, 2024 · 0 comments
Open

How to use 1 shift button to change bank: #1034

DRCRecoveryData opened this issue Apr 21, 2024 · 0 comments

Comments

@DRCRecoveryData
Copy link

DRCRecoveryData commented Apr 21, 2024

Hi,
My code is:

#include <Control_Surface.h>

USBMIDI_Interface midi;

// The note numbers corresponding to the buttons in the matrix
const AddressMatrix<4, 4> addresses {{
  {36, 37, 38, 39},
  {40, 41, 42, 43},
  {44, 45, 46, 47},
  {48, 49, 50, 51},
}};

NoteButtonMatrix<4, 4> buttonmatrix {
  {2, 3, 4, 5}, // row pins
  {6, 7, 8, 9}, // column pins
  addresses,    // address matrix
  Channel_1,    // channel and cable number
};

void setup() {
  Control_Surface.begin();
}

void loop() {
  Control_Surface.loop();
}

How can I add a button to function as a 'shift bank' button? When this shift button is pressed, each of the 16 buttons will change to map to a 15 bank note instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant