Invalid types 'int[int]' for array subscript error in my Arduino code

Double Check what I said about the variable names.

The array does have an s at the end: noteDurations