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

It's spelled "noteDurations [thisNote]".

You only have 7 notes.