Expected unqualified id before ')'

Hi my friend and I are trying to make 4 chasing leds and a piezo speaker work togther. We are experiencing an error: “expected unqualified id before ‘)’ token”
Our code is attached.

jingle_bells2.ino (3.36 KB)

() void playTone(int tone, int duration) {

What are those parentheses there for?

These are all wrong too:

void setup 1(); {
if (char notes = 'e');
{
  // led1 = HIGH
}

OCR?

if (char notes = 'e');
{
  // led1 = HIGH
}

1 - there is an ";" on the If line statement line, wihch means the code (if the condition is true) will never get executed ?

2 - The single line in the "if code block" is commented, so it line will never get executed and it's the only line in the block ?

Do I have it right ?

dan

Syntax fixes needed:

if (char notes == 'e')
{
  // led1 = HIGH
  digitalWrite (led1, HIGH); // this intended?
}

This is what happens when people learn by cookbook instead of reading the language specification.