John I am sorry but I can't figure it out. I will need your help.
Also when it plays, it looks like it just lighing the lights in order pin 2-9. I looks ok. but what I was going for was a not assigned to an LED
ie C Led1 G Led2 A Led3 and so on. this way when that noted played more then once the Led would light.
thanks
johncc:
kculm:
Here is the problemelse {
// here, i is counting from 0 to 41
digitalWrite(ledPins[i], HIGH); // but there are only 9 ledPins!
playNote(notes[i], beats[i] * tempo);
digitalWrite(ledPins[i], LOW);
delay (100);
}
but
for (int i = 0; i < 8; i++) {
if (names[i] == note) {
// Here i, represents the note that was found, between 0 and 7 inclusive
playTone(tones[i], duration);
}See if you can figure out how to fix this. If not I will post the solution tonight... Cheers, John