Advertisement
AZJIO

_Beep.au3

Sep 16th, 2011
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.74 KB | None | 0 0
  1. ; Z.Abreu_Tico-Tico
  2.  
  3. Global $nTempo=0.8
  4. Global $iTone=0
  5. HotKeySet("{ESC}", "_Quit")
  6.  
  7.  
  8. _Beep(8,4,100)
  9. _Beep(7,4,100)
  10. _Beep(8,4,100)
  11. _Beep(9,4,100)
  12. _Beep(8,4,100,100)
  13. _Beep(1,5,100,100)
  14.  
  15. _Beep(8,4,100)
  16. _Beep(7,4,100)
  17. _Beep(8,4,100)
  18. _Beep(9,4,100)
  19. _Beep(8,4,100,100)
  20. _Beep(12,4,100,100)
  21.  
  22. _Beep(8,4,100)
  23. _Beep(7,4,100)
  24. _Beep(8,4,100)
  25. _Beep(9,4,100)
  26. _Beep(8,4,100)
  27.  
  28. _Beep(6,5,100)
  29. _Beep(3,5,100)
  30. _Beep(12,4,100)
  31. _Beep(8,4,100)
  32. _Beep(6,4,100)
  33. _Beep(5,4,100)
  34. _Beep(4,4,200,300)
  35.  
  36. ; @AZJIO
  37. Func _Beep($iNote,$iOctave=4,$iDuration=200,$iPause=0)
  38.     $iFrequency=440*2^(($iNote+$iTone)/12+$iOctave+1/6-4)
  39.     Beep($iFrequency, $iDuration/$nTempo)
  40.     If $iPause<>0 Then Sleep($iPause/$nTempo)
  41. EndFunc
  42.  
  43. Func _Quit()
  44.     Exit
  45. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement