A program for playing Ciciban song. All notes are included, so any song can be easily added if you know its notes.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tbjazic
Date:
Sat Nov 19 10:40:47 2016 +0000
Parent:
0:c84a78a490d0
Commit message:
Adjusted frequency.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
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]);
         }
diff -r c84a78a490d0 -r a92e43e7429e mbed.bld
--- a/mbed.bld	Thu Dec 18 17:01:08 2014 +0000
+++ b/mbed.bld	Sat Nov 19 10:40:47 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/0ab6a29f35bf
\ No newline at end of file