In my code (Which is 99% based on Rougesciences excellent MIDI tutorial ) I have a lot of variables (108)
Will this bog the Arduino down?
//Buttons
int buttonPinOne = 2; //choose the input pin for a pushbutton
int buttonValOne = 0; //variable for reading the button status
int buttonStateOne = 0; //variable to hold the buttons current state
int bounceCheckOne = 0; //variable for debouncing
int buttonPinTwo = 4;
int buttonValTwo = 0;
int buttonStateTwo = 0;
int bounceCheckTwo = 0;
int buttonPinThree = 4;
int buttonValThree = 0;
int buttonStateThree = 0;
int bounceCheckThree = 0;
int buttonPinFour = 4;
int buttonValFour = 0;
int buttonStateFour = 0;
int bounceCheckFour = 0;
int buttonPinFive = 4;
int buttonValFive = 0;
int buttonStateFive = 0;
int bounceCheckFive = 0;
int buttonPinSix = 4;
int buttonValSix = 0;
int buttonStateSix = 0;
int bounceCheckSix = 0;
int buttonPinSeven = 2;
int buttonValSeven = 0;
int buttonStateSeven = 0;
int bounceCheckSeven = 0;
int buttonPinEight = 4;
int buttonValEight = 0;
int buttonStateEight = 0;
int bounceCheckEight = 0;
int buttonPinNine = 4;
int buttonValNine = 0;
int buttonStateNine = 0;
int bounceCheckNine = 0;
int buttonPinTen = 4;
int buttonValTen = 0;
int buttonStateTen = 0;
int bounceCheckTen = 0;
int buttonPinEleven = 4;
int buttonValEleven = 0;
int buttonStateEleven = 0;
int bounceCheckEleven = 0;
int buttonPinTwelve = 4;
int buttonValTwelve = 0;
int buttonStateTwelve = 0;
int bounceCheckTwelve = 0;
//Pots
int potPinOne = 0; //choose the input pin for a potentometer
int potValOne = 0; //variable for reading potentiometer value
int mappedPotValOne = 0; //variable for holding remapped pot value
int prevPotValOne = 0; //variable for storing our prev pot value
int potTHRESHOLDOne = 2; //threshold amount
int potPinTwo = 0;
int potValTwo = 0;
int mappedPotValTwo = 0;
int prevPotValTwo = 0;
int potTHRESHOLDTwo = 2;
int potPinThree = 0;
int potValThree = 0;
int mappedPotValThree = 0;
int prevPotValThree = 0;
int potTHRESHOLDThree = 2;
int potPinFour = 0;
int potValFour = 0;
int mappedPotValFour = 0;
int prevPotValFour = 0;
int potTHRESHOLDFour = 2;
int potPinFive = 0;
int potValFive = 0;
int mappedPotValFive = 0;
int prevPotValFive = 0;
int potTHRESHOLDFive = 2;
int potPinSix = 0;
int potValSix = 0;
int mappedPotValSix = 0;
int prevPotValSix = 0;
int potTHRESHOLDSix = 2;
int potPinSeven = 0;
int potValSeven = 0;
int mappedPotValSeven = 0;
int prevPotValSeven = 0;
int potTHRESHOLDSeven = 2;
int potPinEight = 0;
int potValEight = 0;
int mappedPotValEight = 0;
int prevPotValEight = 0;
int potTHRESHOLDEight = 2;
//Faders
int faderPinOne = 1; //choose the input pin for a potentometer
int faderValOne = 0; //variable for reading potentiometer value
int mappedfaderValOne = 0; //variable for holding remapped pot value
int prevfaderValOne = 0; //variable for storing our prev pot value
int faderTHRESHOLDOne = 2; //Threshold amount
int faderPinTwo = 2;
int faderValTwo = 0;
int mappedfaderValTwo = 0;
int prevfaderValTwo = 0;
int faderTHRESHOLDTwo = 2;
int faderPinThree = 3;
int faderValThree = 0;
int mappedfaderValThree = 0;
int prevfaderValThree = 0;
int faderTHRESHOLDThree = 2;
int faderPinFour = 4;
int faderValFour = 0;
int mappedfaderValFour = 0;
int prevfaderValFour = 0;
int faderTHRESHOLDFour = 2;