 /*
-KidModular - SEQUENCER 
+KidModular - SEQUENCER - V.0.1.0 
 by Tiago Angelo (aka p1nho)
 
 Built with: 

uint8_t curStep = 0;
uint8_t stepEdit = 0, pStepEdit = 0;
uint8_t pitch[MAXSTEPS]; 
uint8_t dur[] = {50, 50, 50, 50, 50, 50, 50, 50};
uint8_t pDur = 50; 
// Encoder
byte button, _button; 

/************************************** UPDATE CONTROLS *****************************************************/
void updateControls(){
  // Potentiometers
  bpm = (analogRead(BPMPIN) >> 1) + 30; // from 30 to 541 bpm
  stepTime = 60000.f / bpm;
  numSteps = (analogRead(NSTEPSPIN) / 171) + 1; // from 1 to 6 steps 
  for(int i = 0; i < 8; i++){
    pitch[i] = analogRead(i) >> 3; // from 0 to 127
  }
