"Hail to the Victors"

Dependencies:   m3pi_ng mbed

Files at this revision

API Documentation at this revision

Comitter:
hclafton
Date:
Tue May 23 14:33:43 2017 +0000
Commit message:
"Hail to the Victors" in case it comes in handy

Changed in this revision

m3pi_ng.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 2cb43c50829b m3pi_ng.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m3pi_ng.lib	Tue May 23 14:33:43 2017 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/ngoldin/code/m3pi_ng/#5589eef1f879
diff -r 000000000000 -r 2cb43c50829b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 23 14:33:43 2017 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "m3pi_ng.h"
+  
+DigitalOut myled(LED1);
+
+m3pi pi;
+
+int main() {
+    
+    char* song1 = "T240 L1 >c L2 a-b->ca-b->c L1 >d- L2 b->c>d-b->c>d- L1 >e- L2 >f. L8 r>c L2 >c>d-a- L2 b-"; // 48 beats (4/4 time)
+    char* song2 = "T240 L1 >c L2 b-a- L1 >e-. L2 r L1 >c L2 a-b->ca-b->c L1 >d-"; //36 beats (4/4 time)
+    char* song3 = "T240 L2 b->c>d-b->c>d- L1 >e- L2 >f. L8 r>c L2 >c>d-a- L2 b->c>e->c. L4 b- L1 a-."; // 42 beats (4/4 time)
+
+    pi.playtune(song1, 89);
+    wait(12);
+    pi.playtune(song2, 60);
+    wait(9);
+    pi.playtune(song3, 81);
+    wait(10.5);
+}
diff -r 000000000000 -r 2cb43c50829b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue May 23 14:33:43 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/4eea097334d6
\ No newline at end of file