It's not my library, i just want to publish my program.
Fork of PWM_Tone_Library by
pwm_tone.h@1:4b841d62e529, 2016-10-21 (annotated)
- Committer:
- justinkim
- Date:
- Fri Oct 21 04:01:30 2016 +0000
- Revision:
- 1:4b841d62e529
- Parent:
- 0:d06af372d384
??
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
justinkim | 0:d06af372d384 | 1 | /* Includes ------------------------------------------------------------------*/ |
justinkim | 0:d06af372d384 | 2 | #include "mbed.h" |
justinkim | 0:d06af372d384 | 3 | |
justinkim | 0:d06af372d384 | 4 | /* Private typedef -----------------------------------------------------------*/ |
justinkim | 0:d06af372d384 | 5 | /* Private define ------------------------------------------------------------*/ |
justinkim | 0:d06af372d384 | 6 | #define Do3 131 //C octave3 |
justinkim | 0:d06af372d384 | 7 | #define Do3s 139 //C# |
justinkim | 0:d06af372d384 | 8 | #define Re3 147 //D |
justinkim | 0:d06af372d384 | 9 | #define Re3s 156//D# |
justinkim | 0:d06af372d384 | 10 | #define Mi3 165 //E |
justinkim | 0:d06af372d384 | 11 | #define Fa3 175 //F |
justinkim | 0:d06af372d384 | 12 | #define Fa3s 185 //F# |
justinkim | 0:d06af372d384 | 13 | #define So3 196 //G |
justinkim | 0:d06af372d384 | 14 | #define So3s 208 //G# |
justinkim | 0:d06af372d384 | 15 | #define La3 220 //A |
justinkim | 0:d06af372d384 | 16 | #define La3s 233 //A# |
justinkim | 0:d06af372d384 | 17 | #define Ti3 247 //B |
justinkim | 0:d06af372d384 | 18 | #define Do4 262 //C octave4 |
justinkim | 0:d06af372d384 | 19 | #define Do4s 277 //C# |
justinkim | 0:d06af372d384 | 20 | #define Re4 294 //D |
justinkim | 0:d06af372d384 | 21 | #define Re4s 311//D# |
justinkim | 0:d06af372d384 | 22 | #define Mi4 330 //E |
justinkim | 0:d06af372d384 | 23 | #define Fa4 349 //F |
justinkim | 0:d06af372d384 | 24 | #define Fa4s 370 //F# |
justinkim | 0:d06af372d384 | 25 | #define So4 392 //G |
justinkim | 0:d06af372d384 | 26 | #define So4s 415 //G# |
justinkim | 0:d06af372d384 | 27 | #define La4 440 //A |
justinkim | 0:d06af372d384 | 28 | #define La4s 466 //A# |
justinkim | 0:d06af372d384 | 29 | #define Ti4 494 //B |
justinkim | 0:d06af372d384 | 30 | #define Do5 523 //C octave5 |
justinkim | 0:d06af372d384 | 31 | #define Do5s 554 //C# |
justinkim | 0:d06af372d384 | 32 | #define Re5 587 //D |
justinkim | 0:d06af372d384 | 33 | #define Re5s 622//D# |
justinkim | 0:d06af372d384 | 34 | #define Mi5 659 //E |
justinkim | 0:d06af372d384 | 35 | #define Fa5 699 //F |
justinkim | 0:d06af372d384 | 36 | #define Fa5s 740 //F# |
justinkim | 0:d06af372d384 | 37 | #define So5 784 //G |
justinkim | 0:d06af372d384 | 38 | #define So5s 831 //G# |
justinkim | 0:d06af372d384 | 39 | #define La5 880 //A |
justinkim | 0:d06af372d384 | 40 | #define La5s 932 //A# |
justinkim | 0:d06af372d384 | 41 | #define Ti5 988 //B |
justinkim | 1:4b841d62e529 | 42 | #define Do6 1047 //C octave6 |
justinkim | 1:4b841d62e529 | 43 | #define Do6s 1109 //C# |
justinkim | 1:4b841d62e529 | 44 | #define Re6 1175 //D |
justinkim | 1:4b841d62e529 | 45 | #define Re6s 1245 //D# |
justinkim | 1:4b841d62e529 | 46 | #define Mi6 1319 //E |
justinkim | 1:4b841d62e529 | 47 | #define Fa6 1397 //F |
justinkim | 1:4b841d62e529 | 48 | #define Fa6s 1480 //F# |
justinkim | 1:4b841d62e529 | 49 | #define So6 1568 //G |
justinkim | 1:4b841d62e529 | 50 | #define So6s 1661 //G# |
justinkim | 1:4b841d62e529 | 51 | #define La6 1760 //A |
justinkim | 1:4b841d62e529 | 52 | #define La6s 1865 //A# |
justinkim | 1:4b841d62e529 | 53 | #define Ti6 1976 //B |
justinkim | 0:d06af372d384 | 54 | |
justinkim | 0:d06af372d384 | 55 | /* Private variables ---------------------------------------------------------*/ |
justinkim | 0:d06af372d384 | 56 | /* Private function prototypes -----------------------------------------------*/ |
justinkim | 0:d06af372d384 | 57 | void Tune(PwmOut name, int period, int beat); |
justinkim | 0:d06af372d384 | 58 | void Auto_tunes(PwmOut name, int period, int beat); |
justinkim | 0:d06af372d384 | 59 | void Stop_tunes(PwmOut name); |
justinkim | 0:d06af372d384 | 60 | |
justinkim | 0:d06af372d384 | 61 | /* Private functions ---------------------------------------------------------*/ |