DUE and DAC0 analogWrite beep tone

Perhaps:

void buttonBeep(){
      for (int j = 0; j < 124; j++) {
        for (int i = 0; i < 124; i+=2) // step 2 at a time.
          analogWrite(DAC0, i);
      }
}

[/quote]