I substituted my multi array with a single array and the code works,
These are the variables and the specific lines of code.
Declaired variables:
int melodyArray[10] = { 0 }; //Temp array for melody for music playback
int noteDurationArray[10] = { 0 }; //Temp array for duration of notes for music playback
Respective line of code:
int noteDuration = 1000/noteDurationArray[thisNote];
tone(10, melodyArray[thisNote],noteDuration);
Substituted with functional variables:
int melody[] = {
NOTE_F4, NOTE_E4, NOTE_D4, NOTE_CS4, NOTE_AS3, NOTE_C4, NOTE_D4, NOTE_D4};
int noteDurations[] = { 4, 4, 4, 4, 4, 4, 3, 2, 4 };
Substituted with functional lines of code:
int noteDuration = 1000/noteDurations[thisNote];
tone(10, melody[thisNote],noteDuration);
That's as narrow down to the root of the problem I can ascertain.
Any thing out of the ordinary or problematic?