Guitar game

My query is the following, you can instead of randomly choosing the numbers, I put a specific order, I want to put a song and I know the order of each note, but it gets stuck in a single note I wanted to put a array but I get an error in the if