Play the sound of Pi Yup, you read the title right. play the sound of pi.

More specifically, for every digit of pi in the first 1000, map it to a musical note and output the resulting melody to a file.

Basically, each digit turns to a note on the C Major scale (basically the normal scale). so 1 turns to Middle C, 2 turns to D4, 3 turns to E4, 9 turns to D5 and so on. 

Rules


Each note should be exactly 0.5 seconds long.
The melody should contain the first 1000 digits of pi, including the starting 3.
1 to 7 represent Middle C to B4, 8 is C5, 9 is D5 and 0 is E5
All well supported file formats are allowed, as long as they were created before this challenge.
There may be no pauses anywhere in the file, including the start and end.
The instrument played does not matter. It could be a piano, sine wave, anything really, as long as the correct sound is easily hearable.
It must take no input and produce no output except for the file. Reading from other files is disallowed.
Standard loopholes are forbidden.


Example mathematica code:

(*please forgive me for this horrible, horrible mess of code*)
digits = RealDigits[Pi, 10, 1000][[1]] /. {0 -&gt; 10};
weights = {0, 2, 4, 5, 7, 9, 11, 12, 14, 16}; 
melody = {};
For[i = 1, i &lt; 1001, i++, melody = {melody , Sound[SoundNote[weights[[digits[[i]]]], 0.5]]}]
final = Sound[Flatten[melody]];
Export["C:\\Mathematica Shenanigans\\pi.wav", final];


Example melody showing first 100 digits: http://vocaroo.com/i/s0cfEILwYb8M

For your sanity, A table of pitches for each note and what note does each digit represent:

Digit 1: C: 261.63 Hz
Digit 2: D: 293.66 Hz
Digit 3: E: 329.63 Hz
Digit 4: F: 349.23 Hz
Digit 5: G: 392.00 Hz
Digit 6: A: 440.00 Hz
Digit 7: B: 493.88 Hz
Digit 8: C5: 523.25 Hz
Digit 9: D5: 587.33 Hz
Digit 0: E5: 659.25 Hz
Python 2, 182 bytes

x=p=6637
while~-p:x=p/2*x/p+2*10**999;p-=2
s=&quot;MThd\0\0\0\6\0\1\0\1\342\4MTrk\0\0\13\301\0\220&quot;
for i in`x`:s+=&quot;JHGECA@&gt;&lt;L\260&quot;[~ord(i)%29]+'{&lt;'
open('p.mid','w').write(s+&quot;\0\377/\0&quot;)

`x` will produce 31415926...20198L. The trailing L is used to produce the final channel message byte, via the mapping ~ord(i)%29.
Outputs a single track Type 1 Midi file, named p.mid to the current working directory.
0000: 4d 54 68 64 00 00 00 06  MThd....  # Midi header, 6 bytes to follow
0008: 00 01 00 01              ....      # Type 1, 1 track
000c: e2 04                    â.        # (-)30 ticks per beat, 4 beats per second

000e: 4d 54 72 6b 00 00 0b c1  MTrk...Á  # Track header, 3009 bytes to follow
0016: 00 90 40 7b              ..@{      # Wait  0 ticks, play E4 (3), 97% volume
001a: 3c 3c 7b                 &lt;&lt;{       # Wait 60 ticks, play C4 (1), 97% volume
001d: 3c 41 7b                 &lt;A{       # Wait 60 ticks, play F4 (4), 97% volume
0020: 3c 3c 7b                 &lt;&lt;{       # Wait 60 ticks, play C4 (1), 97% volume
0023: 3c 43 7b                 &lt;C{       # Wait 60 ticks, play G4 (5), 97% volume
...
0bcf: 3c b0 7b 3c              &lt;°{&lt;      # Wait 60 ticks, all notes off
0bd3: 00 ff 2f 00              .ÿ/.      # End of track marker