musical_notes.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #pragma once
  2. // Note durations in milliseconds
  3. #define _N01 1600
  4. #define _N02 800
  5. #define _N04 400
  6. #define _N08 200
  7. #define _N16 100
  8. // Tone frequencies
  9. #define _C3 130
  10. #define _Db3 138
  11. #define _D3 146
  12. #define _Eb3 155
  13. #define _E3 164
  14. #define _F3 174
  15. #define _Gb3 185
  16. #define _G3 196
  17. #define _Ab3 207
  18. #define _A3 220
  19. #define _Bb3 233
  20. #define _B3 246
  21. #define _C4 261
  22. #define _Db4 277
  23. #define _D4 293
  24. #define _Eb4 311
  25. #define _E4 329
  26. #define _F4 349
  27. #define _Gb4 369
  28. #define _G4 392
  29. #define _Ab4 415
  30. #define _A4 440
  31. #define _Bb4 466
  32. #define _B4 493
  33. #define _C5 523
  34. #define _Db5 544
  35. #define _D5 587
  36. #define _Eb5 622
  37. #define _E5 659
  38. #define _F5 698
  39. #define _Gb5 739
  40. #define _G5 783
  41. #define _Ab5 830
  42. #define _A5 880
  43. #define _Bb5 932
  44. #define _B5 987
  45. #define _C6 1046
  46. #define _Db6 1108
  47. #define _D6 1174
  48. #define _Eb6 1244
  49. #define _E6 1318
  50. #define _F6 1396
  51. #define _Gb6 1479
  52. #define _G6 1567
  53. #define _Ab6 1661
  54. #define _A6 1760
  55. #define _Bb6 1864
  56. #define _B6 1975
  57. #define _C7 2093
  58. #define _Db7 2217
  59. #define _D7 2349
  60. #define _Eb7 2489
  61. #define _E7 2637
  62. #define _F7 2794
  63. #define _Gb7 2960
  64. #define _G7 3136
  65. #define _Ab7 3322
  66. #define _A7 3520
  67. #define _Bb7 3729
  68. #define _B7 3951