Task

Output the 8 notes of the C major diatonic scale to the default musical sound device on the system. Specifically, pitch must be tuned to 12-tone equal temperament (12TET) with the modern standard A=440Hz.

These are the notes "C, D, E, F, G, A, B, C(1 octave higher)", or "Do, Re, Mi, Fa, Sol, La, Si/Ti, Do(1 octave higher)" on Fixed do Solfège.

For the purpose of this task, Middle C (in the case of the above tuning, around 261.63 Hz) should be used as the starting note, and any note duration is allowed.

For languages that cannot utilize a sound device, it is permissible to output to a musical score sheet (or midi file), or the task can be omitted.

 
Module checkit {
      \\ using internal speaker
      TUNE 300, "C3DEFGABC4"
      TUNE 300, "C3C#DD#EFF#GG#AA#BC4"
      Thread {
            score 10, 100,  "CAC"
            Play 10, 1
      } as drums interval 1000
      \\ Play in background (16 scores - no 10 for drum machine)
      SCORE 1, 300, "C3DEFGABC4"
      PLAY 1, 19  ' use score 1 with organ 19
      Wait 2400
}
checkit
 