Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Control_Surface.h> //Program--include library-- then select "control surface" library..Vamos a programar el codigo con la librería Control Surface
- USBMIDI_Interface usbmidi; //initializes device as usb_midi interface...see other examples like hardwareserial,hairles etc
- Bank<2> bank(3); // A bank with three channels, and 2 bank settings..creamos dos bancos con dos ajustes distintos..el intervalo de cambio entre los valores sera de +-3
- Bank<2> bank2(3);
- CCPotentiometer potentiometer6 = { A4, {42, CHANNEL_6} };
- CCPotentiometer potentiometer7 = { A5, {43, CHANNEL_7} };
- CCPotentiometer potentiometer8 = { A6, {44, CHANNEL_8} };
- CCPotentiometer potentiometer9 = { A7, {45, CHANNEL_9} };
- CCPotentiometer potentiometer10 = { A8, {46, CHANNEL_10} };
- CCPotentiometer potentiometer11 = { A9, {47, CHANNEL_11} };
- CCPotentiometer potentiometer12 = { A10, {48, CHANNEL_12} };
- CCPotentiometer potentiometer13 = { A11, {49, CHANNEL_13} };
- CCPotentiometer potentiometer14 = { A12, {50, CHANNEL_14} };
- CCPotentiometer potentiometer15 = { A13, {51, CHANNEL_15} };
- CCPotentiometer potentiometer16 = { A14, {MIDI_CC::Channel_Volume, CHANNEL_16} };
- /*CCButtonLatched buttons[] {
- {5, 90},
- {6, 91},
- };*/
- CCButtonLatched button7 = { 7, {30, CHANNEL_1}, };
- CCButtonLatched button8 = { 8, {31, CHANNEL_1}, };
- CCButtonLatched button9 = { 9, {32, CHANNEL_1}, };
- CCButtonLatched button10 = { 10, {33, CHANNEL_1}, };
- CCButtonLatched button11 = { 11, {34, CHANNEL_1}, };
- CCButton button12 = { 12, {MIDI_CC::General_Purpose_Controller_8, CHANNEL_1}, };
- Bankable::CCPotentiometer pots[] = {
- {bank, A0, 67},
- {bank, A1, 68},
- {bank, A2, 69},
- };
- //IncrementSelector<2> selector { bank, 2, };
- Bankable::CCButtonLatched<2> button5 { bank2, 5, 90, };
- Bankable::CCButtonLatched button6 { bank2, 6, 91, };
- IncrementDecrementSelector<2> bankselector = {bank, {2, 3}};
- IncrementDecrementSelector<2> bankselector2 = {bank2, {2, 3}};
- void setup() {
- Control_Surface.begin();
- }
- void loop() {
- Control_Surface.loop();
- }
Advertisement
Add Comment
Please, Sign In to add comment