; sfx.asm

;          131072
;  fhz = ---------
;        2048-fdmg

;          524288
;  fhz = ----------  (replace H=0 with H=1/2)
;         H*2^(S+1)
;
;  00111100
;  SSSSWHHH

;  pulse note hz to fdmg:
;  fdmg = (-131072/x)+2048


;  noise note:
;  



SFX_GetKey:
    duty 2
    pitchenvelope 0, 8
    squarenote 2, 15,  0, 1798   ; C-5,  523.25Hz
    squarenote 2, 15,  0, 1881   ; G-5,  783.99Hz
    squarenote 2, 15,  0, 1923   ; C-6, 1046.50Hz
    squarenote 2,  8,  0, 1798    
    squarenote 2,  8,  0, 1881
    squarenote 2,  8,  0, 1923
    squarenote 0,  0,  0,    0
    endchannel	;sound_ret



SFX_TextBox:
    duty 2
    pitchenvelope 0, 8
    squarenote 1, 15,  0, 1923
    squarenote 1,  0,  0,    0
    squarenote 1, 15,  0, 1985    ; C-7, 2093.00Hz
    squarenote 1,  8,  0, 1923
    squarenote 1,  0,  0,    0
    squarenote 1,  8,  0, 1985    ; C-7, 2093.00Hz
    squarenote 0,  0,  0,    0
    endchannel