 int vallTom = 0;
 int valCrash = 0;
 
-// variable to store the value read
+
+void setup() // Will be run only once
+{
+  //Serial.begin(9600); // for debugging console
  
-void setup()
-{
-  Serial.begin(9600);
+  // Set all digital pins as type INPUT
   pinMode(bass, INPUT); 
   pinMode(hHat, INPUT);
   pinMode(hTom, INPUT);

#include <Math.h>
#include <Keyboard.h>
#include <MIDI.h>

// Set up variables for dance pad input
int bass= 2; 
int hHat = 3;
int hTom = 4;

int lTom = 8;
int crash = 9;

// Initiate variables for recording input states
int valBass = 0;
int valhHat = 0;
int valhTom = 0;
