![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
4 songs: rain, william, sun, and circus
Songs.h@1:3595fce69880, 2015-05-09 (annotated)
- Committer:
- Luminoscity
- Date:
- Sat May 09 21:32:39 2015 +0000
- Revision:
- 1:3595fce69880
- Parent:
- 0:c02f01feda7b
Sped up circus
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Luminoscity | 0:c02f01feda7b | 1 | #include "mbed.h" |
Luminoscity | 0:c02f01feda7b | 2 | #include "Buzzer.h" |
Luminoscity | 0:c02f01feda7b | 3 | |
Luminoscity | 0:c02f01feda7b | 4 | #define MAX_NOTES 200 |
Luminoscity | 0:c02f01feda7b | 5 | |
Luminoscity | 0:c02f01feda7b | 6 | class Song { |
Luminoscity | 0:c02f01feda7b | 7 | private: |
Luminoscity | 0:c02f01feda7b | 8 | int beats[MAX_NOTES]; |
Luminoscity | 0:c02f01feda7b | 9 | int range[MAX_NOTES]; |
Luminoscity | 0:c02f01feda7b | 10 | char *notes; |
Luminoscity | 0:c02f01feda7b | 11 | int length; |
Luminoscity | 0:c02f01feda7b | 12 | int tempo; |
Luminoscity | 0:c02f01feda7b | 13 | int betweenWait; |
Luminoscity | 0:c02f01feda7b | 14 | |
Luminoscity | 0:c02f01feda7b | 15 | public: |
Luminoscity | 0:c02f01feda7b | 16 | Song(); |
Luminoscity | 0:c02f01feda7b | 17 | Song(char *); |
Luminoscity | 0:c02f01feda7b | 18 | void play(); |
Luminoscity | 0:c02f01feda7b | 19 | void choose(char *); |
Luminoscity | 0:c02f01feda7b | 20 | void setTempo(int); |
Luminoscity | 0:c02f01feda7b | 21 | }; |