use an accelerometer to generate sounds

Dependencies:   FXOS8700CQ mbed

Committer:
maclobdell
Date:
Thu May 12 17:34:47 2016 +0000
Revision:
2:cc285ff20aac
Parent:
0:c482a7d7d833
fixed play tone function to not set frequency as the period

Who changed what in which revision?

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