Music works yo
Dependencies: m3pi_ng m3pimaze mbed
Diff: main.cpp
- Revision:
- 0:c480ffb2a60f
- Child:
- 1:278526f1dabc
diff -r 000000000000 -r c480ffb2a60f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jun 02 09:00:25 2014 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "m3pi_ng.h" +#include "cmath" +#include "iostream" + +m3pi thinggy; + +int main() { + // V=volume max is 15::O5=octave5::G16=G16th note::R24=rest24th note...a rest is needed between any two note that are the same + char dixie[]={'V','1','5','O','5','G','1','6','E','1','6','C','8','R','2','4','C','8','R','2','4','C','1','6','D','1','6','E','1','6','F','1','6','G','8','R','2','4','G','8','R','2','4','G','8','E','1','6'}; + //the number of characters in the array + int numb=49; + thinggy.playtune(dixie,numb); + + } +