SetLocalStorageItem("sound A1", 55)
SetLocalStorageItem("sound A2", 110)
SetLocalStorageItem("sound A3", 220)
SetLocalStorageItem("sound A4", 440)
SetLocalStorageItem("sound A5", 880)
SetLocalStorageItem("sound A6", 1760)
SetLocalStorageItem("sound A7", 3520)
SetLocalStorageItem("sound A8", 7040)
SetLocalStorageItem("sound A9", 14080)
SetLocalStorageItem("sound B1", 61.735)
SetLocalStorageItem("sound B2", 123.471)
SetLocalStorageItem("sound B3", 246.942)
SetLocalStorageItem("sound B4", 493.883)
SetLocalStorageItem("sound B5", 987.767)
SetLocalStorageItem("sound B6", 1975.533)
SetLocalStorageItem("sound B7", 3951.066)
SetLocalStorageItem("sound B8", 7902.133)
SetLocalStorageItem("sound B9", 15804.266)
SetLocalStorageItem("sound C1", 32.703)
SetLocalStorageItem("sound C2", 65.406)
SetLocalStorageItem("sound C3", 130.813)
SetLocalStorageItem("sound C4", 261.626)
SetLocalStorageItem("sound C5", 523.251)
SetLocalStorageItem("sound C6", 1046.502)
SetLocalStorageItem("sound C7", 2093.005)
SetLocalStorageItem("sound C8", 4186.009)
SetLocalStorageItem("sound C9", 8372.018)
SetLocalStorageItem("sound D1", 36.708)
SetLocalStorageItem("sound D2", 73.416)
SetLocalStorageItem("sound D3", 146.832)
SetLocalStorageItem("sound D4", 293.665)
SetLocalStorageItem("sound D5", 587.33)
SetLocalStorageItem("sound D6", 1174.659)
SetLocalStorageItem("sound D7", 2349.318)
SetLocalStorageItem("sound D8", 4698.636)
SetLocalStorageItem("sound D9", 9397.273)
SetLocalStorageItem("sound E1", 41.203)
SetLocalStorageItem("sound E2", 82.407)
SetLocalStorageItem("sound E3", 164.814)
SetLocalStorageItem("sound E4", 329.628)
SetLocalStorageItem("sound E5", 659.255)
SetLocalStorageItem("sound E6", 1318.51)
SetLocalStorageItem("sound E7", 2637.02)
SetLocalStorageItem("sound E8", 5274.041)
SetLocalStorageItem("sound E9", 10548.082)
SetLocalStorageItem("sound F1", 43.654)
SetLocalStorageItem("sound F2", 87.307)
SetLocalStorageItem("sound F3", 174.614)
SetLocalStorageItem("sound F4", 349.228)
SetLocalStorageItem("sound F5", 698.456)
SetLocalStorageItem("sound F6", 1396.913)
SetLocalStorageItem("sound F7", 2793.826)
SetLocalStorageItem("sound F8", 5587.652)
SetLocalStorageItem("sound F9", 11175.303)
SetLocalStorageItem("sound G1", 48.999)
SetLocalStorageItem("sound G2", 97.999)
SetLocalStorageItem("sound G3", 195.998)
SetLocalStorageItem("sound G4", 391.995)
SetLocalStorageItem("sound G5", 783.991)
SetLocalStorageItem("sound G6", 1567.982)
SetLocalStorageItem("sound G7", 3135.963)
SetLocalStorageItem("sound G8", 6271.927)
SetLocalStorageItem("sound G9", 12543.854)
'
function Hz#(note$)
note$ = ucase$(replace$(note$,"#","+"))
note$ = replace$(note$,"B+","C")
Hz# = GetLocalStorageItem("sound " + note$)
end function
t = 5
_sndwave "square"
sound Hz#("D3"), t*2
sound Hz#("G3"), t*3
sound 0, t
sound Hz#("B3"), t
sound Hz#("G3"), t
sound Hz#("B3"), t*3
sound 0, t
sound Hz#("A3"), t*2
sound Hz#("G3"), t*3
sound 0, t
sound Hz#("E3"), t*2
sound Hz#("D3"), t*3
sound 0, t
sound Hz#("D3"), t*2
sound Hz#("G3"), t*3
sound 0, t
sound Hz#("B3"), t
sound Hz#("G3"), t
sound Hz#("B3"), t*3
sound 0, t
sound Hz#("A3"), t*2
sound Hz#("D4"), t*5
sound 0, t
sound Hz#("B3"), t*2
sound Hz#("D4"), t*3
sound Hz#("B3"), t
sound Hz#("D4"), t
sound Hz#("B3"), t
sound Hz#("G3"), t*3
sound 0, t
sound Hz#("D3"), t*2
sound Hz#("E3"), t*3
sound Hz#("G3"), t
sound Hz#("G3"), t
sound Hz#("E3"), t
sound Hz#("D3"), t*3
sound 0, t
sound Hz#("D3"), t*2
sound Hz#("G3"), t*3
sound 0, t
sound Hz#("B3"), t
sound Hz#("B3"), t
sound Hz#("G3"), t
sound Hz#("B3"), t*3
sound 0, t
sound Hz#("A3"), t*2
sound Hz#("G3"), t*3