Combining Code - MIDI test and 5x7 LED matrix

Also, I cannot find where the curly symbol should go.

It is called a brace, it marks out blocks of code, they always match left and right in the code.
It goes where it needs to go to do what you want to do.

You should get more experience in writing code before you try and do this. Try a few tutorials first and learn what code does.

reply #1 told you about the one you had missing.