 #define SDCARD_MOSI_PIN  7
 #define SDCARD_SCK_PIN   14
 
+// LEDS
 const byte ledPin1 = 13;
 const byte ledPin2 = 14;
-const byte sensorPin1 = 2;
-const byte sensorPin2 = 3;
+// Sensors
+const byte sensorPin1 = 5;
+const byte sensorPin2 = 6;
+// Sync
+const byte syncPin = 3; 
+const byte playPin =  4;
+bool play = 0;
+
+const char *tounes[] = {"toune1.wav", "toune2.wav", "toune3.wav", "toune4.wav"};
+int nbTounes = sizeof(tounes)/sizeof(tounes[0]);
+int currentSong = 0;
 
 void setup()
 {

	Serial.print("Sensor 2: ");
	//Serial.println(val);
	float vol = map(val, 0, 300, 0, 100) / 100.;
	//Serial.println(val);
	dc2.amplitude(vol);
}


	rpmCounter1.begin(sensorPin1, 4, 400, 4, 10);
	rpmCounter2.begin(sensorPin2, 4, 400, 4, 10);

	// LED
	pinMode(ledPin1, OUTPUT);
	pinMode(ledPin2, OUTPUT);
	digitalWrite(ledPin1, HIGH);
	digitalWrite(ledPin2, HIGH);

	// Sync and play
	pinMode(syncPin, OUTPUT);
	pinMode(playPin, INPUT);
	attachInterrupt(playPin, playTrigger, RISING);

	AudioMemory(8);

