if (buttonState[i] != lastButtonState[i]) {
if (buttonState[i] == HIGH) {
noteOn(0,note[i],100);
}
}
Spot the difference.
It compiles for me with this change - if you can spot it.
Duane B