marklar:
The best way to chop this in 1/2 is to print out the values you are getting to the serial monitor.Also - I would remove the if statements and just test them all with very simple code and see if that works.
void loop(void)
{
aSpeaker1.play(130,400); // produce 130 Hz for 400 msecond to the first speaker.
aSpeaker2.play(140,400);
aSpeaker3.play(160,400);
aSpeaker4.play(170,400);
aSpeaker5.play(190,400);
aSpeaker6.play(200,400);
}
Using this technique, you should be able to determine if the problem is a limit or code logic / values being read, etc.
Nope same thing happens only the first three are playing