Double Check what I said about the variable names.
The array does have an s at the end: noteDurations
noteDurations