DUE and DAC0 analogWrite beep tone

Where did you get the idea, the code? It seems like you don't really understand how works. Do you understand at least, how the 'for' loops work? Try this:

void buttonBeep(){
      for (int j = 0; j < 124; j++) {
        for (int i = 0; i < 124; i++)
         Serial.print(j);
         Serial.print(',');
         Serial.println(i);
     }
}