A program for playing Ciciban song. All notes are included, so any song can be easily added if you know its notes.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:a92e43e7429e
- Parent:
- 0:c84a78a490d0
diff -r c84a78a490d0 -r a92e43e7429e main.cpp --- a/main.cpp Thu Dec 18 17:01:08 2014 +0000 +++ b/main.cpp Sat Nov 19 10:40:47 2016 +0000 @@ -30,7 +30,7 @@ 1, 0.5, 1, 0.5, 2, 5}; for (int i = 0; i < 26; i++) { - speaker.period(1 / notesCiciban[i]); + speaker.period(1 / (2*notesCiciban[i]) ); speaker = 0.5; wait(speed * beatCiciban[i]); }