You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I would like to use transposer and change channel on note buttons
Thanks.
#include <Control_Surface.h>
USBMIDI_Interface midi;
CD74HC4067 M1 = { 6, {2, 3, 4, 5} };
CD74HC4067 M2 = { 7, {2, 3, 4, 5} };
CD74HC4067 M3 = { 8, {2, 3, 4, 5} };
CD74HC4067 M4 = { 9, {2, 3, 4, 5} };
CD74HC4067 M5 = { A1, {2, 3, 4, 5} };
CD74HC4067 M6 = { A2, {2, 3, 4, 5} };
///MIDI CHANNEL//
Bank<8> bank(1);
ManyButtonsSelector<8> programSelector = {
bank,
{{M3.pin(7), M3.pin(6), M3.pin(5), M3.pin(4), M3.pin(3), M3.pin(2), M3.pin(1), M3.pin(0)}},
};
//OCTAVE SELECT//
Transposer<-2, +2> transposer {12};
IncrementDecrementSelector<transposer.getNumberOfBanks()> selector {
transposer,
{M1.pin(1), M1.pin(2)},
Wrap::Clamp,
};
Bankable::NoteButton buttons[] {
// {transposer, M1.pin(15), {48, CHANNEL_1} }, //C
};
Bankable::CCPotentiometer Potentiometers[] = {
{{bank, BankType::ChangeChannel}, M5.pin(0), {MIDI_CC::Modulation_Wheel , CHANNEL_1} }, //M Wheel
{{bank, BankType::ChangeChannel}, M6.pin(0), {10, CHANNEL_1} }, //Pot1
{{bank, BankType::ChangeChannel}, M6.pin(1), {10, CHANNEL_1} }, //Pot2
{{bank, BankType::ChangeChannel}, M6.pin(2), {10, CHANNEL_1} }, //Pot3
{{bank, BankType::ChangeChannel}, M6.pin(3), {10, CHANNEL_1} }, //Pot4
{{bank, BankType::ChangeChannel}, M6.pin(4), {10, CHANNEL_1} }, //Pot5
{{bank, BankType::ChangeChannel}, M6.pin(5), {10, CHANNEL_1} }, //Pot6
{{bank, BankType::ChangeChannel}, M6.pin(6), {10, CHANNEL_1} }, //Pot7
{{bank, BankType::ChangeChannel}, M6.pin(7), {10, CHANNEL_1} }, //Pot8
{{bank, BankType::ChangeChannel}, M6.pin(8), {10, CHANNEL_1} }, //Pot9
};
Bankable::PBPotentiometer Potentiometer[] = {
{{bank, BankType::ChangeChannel}, M5.pin(1), CHANNEL_1 }, //P Wheel
};
Bankable::CCButton Buttons[] = {
{{bank, BankType::ChangeChannel}, M3.pin(8), {20, CHANNEL_1} }, //PLY
};
void setup() {
Control_Surface.begin();
}
void loop() {
Control_Surface.loop();
}
Beta Was this translation helpful? Give feedback.
All reactions