play sounds with a buzzer
Dependencies: mbed
tones.h@1:1eefeb256849, 2016-05-12 (annotated)
- Committer:
- maclobdell
- Date:
- Thu May 12 17:34:03 2016 +0000
- Revision:
- 1:1eefeb256849
- Parent:
- 0:586507ee54a5
fixed play tone function to not set frequency as the period
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
maclobdell | 0:586507ee54a5 | 1 | #ifndef SXSW_TONES_H |
maclobdell | 0:586507ee54a5 | 2 | #define SXSW_TONES_H |
maclobdell | 0:586507ee54a5 | 3 | |
maclobdell | 0:586507ee54a5 | 4 | #define NOTE_B0 31 |
maclobdell | 0:586507ee54a5 | 5 | #define NOTE_C1 33 |
maclobdell | 0:586507ee54a5 | 6 | #define NOTE_CS1 35 |
maclobdell | 0:586507ee54a5 | 7 | #define NOTE_D1 37 |
maclobdell | 0:586507ee54a5 | 8 | #define NOTE_DS1 39 |
maclobdell | 0:586507ee54a5 | 9 | #define NOTE_E1 41 |
maclobdell | 0:586507ee54a5 | 10 | #define NOTE_F1 44 |
maclobdell | 0:586507ee54a5 | 11 | #define NOTE_FS1 46 |
maclobdell | 0:586507ee54a5 | 12 | #define NOTE_G1 49 |
maclobdell | 0:586507ee54a5 | 13 | #define NOTE_GS1 52 |
maclobdell | 0:586507ee54a5 | 14 | #define NOTE_A1 55 |
maclobdell | 0:586507ee54a5 | 15 | #define NOTE_AS1 58 |
maclobdell | 0:586507ee54a5 | 16 | #define NOTE_B1 62 |
maclobdell | 0:586507ee54a5 | 17 | #define NOTE_C2 65 |
maclobdell | 0:586507ee54a5 | 18 | #define NOTE_CS2 69 |
maclobdell | 0:586507ee54a5 | 19 | #define NOTE_D2 73 |
maclobdell | 0:586507ee54a5 | 20 | #define NOTE_DS2 78 |
maclobdell | 0:586507ee54a5 | 21 | #define NOTE_E2 82 |
maclobdell | 0:586507ee54a5 | 22 | #define NOTE_F2 87 |
maclobdell | 0:586507ee54a5 | 23 | #define NOTE_FS2 93 |
maclobdell | 0:586507ee54a5 | 24 | #define NOTE_G2 98 |
maclobdell | 0:586507ee54a5 | 25 | #define NOTE_GS2 104 |
maclobdell | 0:586507ee54a5 | 26 | #define NOTE_A2 110 |
maclobdell | 0:586507ee54a5 | 27 | #define NOTE_AS2 117 |
maclobdell | 0:586507ee54a5 | 28 | #define NOTE_B2 123 |
maclobdell | 0:586507ee54a5 | 29 | #define NOTE_C3 131 |
maclobdell | 0:586507ee54a5 | 30 | #define NOTE_CS3 139 |
maclobdell | 0:586507ee54a5 | 31 | #define NOTE_D3 147 |
maclobdell | 0:586507ee54a5 | 32 | #define NOTE_DS3 156 |
maclobdell | 0:586507ee54a5 | 33 | #define NOTE_E3 165 |
maclobdell | 0:586507ee54a5 | 34 | #define NOTE_F3 175 |
maclobdell | 0:586507ee54a5 | 35 | #define NOTE_FS3 185 |
maclobdell | 0:586507ee54a5 | 36 | #define NOTE_G3 196 |
maclobdell | 0:586507ee54a5 | 37 | #define NOTE_GS3 208 |
maclobdell | 0:586507ee54a5 | 38 | #define NOTE_A3 220 |
maclobdell | 0:586507ee54a5 | 39 | #define NOTE_AS3 233 |
maclobdell | 0:586507ee54a5 | 40 | #define NOTE_B3 247 |
maclobdell | 0:586507ee54a5 | 41 | #define NOTE_C4 262 |
maclobdell | 0:586507ee54a5 | 42 | #define NOTE_CS4 277 |
maclobdell | 0:586507ee54a5 | 43 | #define NOTE_D4 294 |
maclobdell | 0:586507ee54a5 | 44 | #define NOTE_DS4 311 |
maclobdell | 0:586507ee54a5 | 45 | #define NOTE_E4 330 |
maclobdell | 0:586507ee54a5 | 46 | #define NOTE_F4 349 |
maclobdell | 0:586507ee54a5 | 47 | #define NOTE_FS4 370 |
maclobdell | 0:586507ee54a5 | 48 | #define NOTE_G4 392 |
maclobdell | 0:586507ee54a5 | 49 | #define NOTE_GS4 415 |
maclobdell | 0:586507ee54a5 | 50 | #define NOTE_A4 440 |
maclobdell | 0:586507ee54a5 | 51 | #define NOTE_AS4 466 |
maclobdell | 0:586507ee54a5 | 52 | #define NOTE_B4 494 |
maclobdell | 0:586507ee54a5 | 53 | #define NOTE_C5 523 |
maclobdell | 0:586507ee54a5 | 54 | #define NOTE_CS5 554 |
maclobdell | 0:586507ee54a5 | 55 | #define NOTE_D5 587 |
maclobdell | 0:586507ee54a5 | 56 | #define NOTE_DS5 622 |
maclobdell | 0:586507ee54a5 | 57 | #define NOTE_E5 659 |
maclobdell | 0:586507ee54a5 | 58 | #define NOTE_F5 698 |
maclobdell | 0:586507ee54a5 | 59 | #define NOTE_FS5 740 |
maclobdell | 0:586507ee54a5 | 60 | #define NOTE_G5 784 |
maclobdell | 0:586507ee54a5 | 61 | #define NOTE_GS5 831 |
maclobdell | 0:586507ee54a5 | 62 | #define NOTE_A5 880 |
maclobdell | 0:586507ee54a5 | 63 | #define NOTE_AS5 932 |
maclobdell | 0:586507ee54a5 | 64 | #define NOTE_B5 988 |
maclobdell | 0:586507ee54a5 | 65 | #define NOTE_C6 1047 |
maclobdell | 0:586507ee54a5 | 66 | #define NOTE_CS6 1109 |
maclobdell | 0:586507ee54a5 | 67 | #define NOTE_D6 1175 |
maclobdell | 0:586507ee54a5 | 68 | #define NOTE_DS6 1245 |
maclobdell | 0:586507ee54a5 | 69 | #define NOTE_E6 1319 |
maclobdell | 0:586507ee54a5 | 70 | #define NOTE_F6 1397 |
maclobdell | 0:586507ee54a5 | 71 | #define NOTE_FS6 1480 |
maclobdell | 0:586507ee54a5 | 72 | #define NOTE_G6 1568 |
maclobdell | 0:586507ee54a5 | 73 | #define NOTE_GS6 1661 |
maclobdell | 0:586507ee54a5 | 74 | #define NOTE_A6 1760 |
maclobdell | 0:586507ee54a5 | 75 | #define NOTE_AS6 1865 |
maclobdell | 0:586507ee54a5 | 76 | #define NOTE_B6 1976 |
maclobdell | 0:586507ee54a5 | 77 | #define NOTE_C7 2093 |
maclobdell | 0:586507ee54a5 | 78 | #define NOTE_CS7 2217 |
maclobdell | 0:586507ee54a5 | 79 | #define NOTE_D7 2349 |
maclobdell | 0:586507ee54a5 | 80 | #define NOTE_DS7 2489 |
maclobdell | 0:586507ee54a5 | 81 | #define NOTE_E7 2637 |
maclobdell | 0:586507ee54a5 | 82 | #define NOTE_F7 2794 |
maclobdell | 0:586507ee54a5 | 83 | #define NOTE_FS7 2960 |
maclobdell | 0:586507ee54a5 | 84 | #define NOTE_G7 3136 |
maclobdell | 0:586507ee54a5 | 85 | #define NOTE_GS7 3322 |
maclobdell | 0:586507ee54a5 | 86 | #define NOTE_A7 3520 |
maclobdell | 0:586507ee54a5 | 87 | #define NOTE_AS7 3729 |
maclobdell | 0:586507ee54a5 | 88 | #define NOTE_B7 3951 |
maclobdell | 0:586507ee54a5 | 89 | #define NOTE_C8 4186 |
maclobdell | 0:586507ee54a5 | 90 | #define NOTE_CS8 4435 |
maclobdell | 0:586507ee54a5 | 91 | #define NOTE_D8 4699 |
maclobdell | 0:586507ee54a5 | 92 | #define NOTE_DS8 4978 |
maclobdell | 0:586507ee54a5 | 93 | |
maclobdell | 0:586507ee54a5 | 94 | #endif |