tono

Dependencies:   Music mbed

Files at this revision

API Documentation at this revision

Comitter:
oscarvzfz
Date:
Mon Nov 10 23:51:37 2014 +0000
Commit message:
tono

Changed in this revision

Music.lib Show annotated file Show diff for this revision Revisions of this file
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 000000000000 -r 67dbcaae50da Music.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Music.lib	Mon Nov 10 23:51:37 2014 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/mdu7078/code/Music/#c33ed3d85f97
diff -r 000000000000 -r 67dbcaae50da main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Nov 10 23:51:37 2014 +0000
@@ -0,0 +1,22 @@
+
+ #include "Music.h"
+ 
+music m1(p21);
+double tempo = 200;
+char s1[] = "E4:8; E4:8; R:8; E4:8; R:8; C4:8; E4:4; G4:4; R:4; G3:4; R:4;";
+char c[] = "C4:8;C4:8;C4:8;F4:8;R:8;A4:8;R:8;C4:8;C4:8;C4:8;F4:8;R:8;A4:8;R:8;F4:8;F4:8;E4:8;E4:8;D4:8;D4:8;C4:8;R:8;C4:8;C4:8;C4:8;E4:8;R:8;G4:8;R:8;C4:8;C4:8;C4:8;E4:8;R:8;G4:8;R:8;C5:8;D5:8;C5:8;A4#:8;A4:8;G4:8;F4:8;C4:8";
+char a[]="A0:8;B0:8;;C0:8;D0:8;E0:8;F0:8;G0:8;A1:8;B1:8;;C1:8;D1:8;E1:8;F1:8;G1:8;A2:8;B2:8;;C2:8;D2:8;E2:8;F2:8;G2:8;A3:8;B3:8;;C3:8;D3:8;E3:8;F3:8;G3:8;A4:8;B4:8;;C4:8;D4:8;E4:8;F4:8;G4:8;A5:8;B5:8;;C5:8;D5:8;E5:8;F5:8;G5:8;";
+int len = 320;
+
+ main(){
+m1.play(c,tempo,len);
+ }
+/*
+A  DO
+B  RE
+C  MI
+D  FA
+E  SOL
+F  LA
+G  SI
+*/
diff -r 000000000000 -r 67dbcaae50da mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Nov 10 23:51:37 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file