Control-Surface icon indicating copy to clipboard operation
Control-Surface copied to clipboard

How to use 1 shift button to change bank:

Open DRCRecoveryData opened this issue 2 months ago • 0 comments

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?

DRCRecoveryData avatar Apr 21 '24 02:04 DRCRecoveryData