der Roboter
/
RidingDirty
Riding dirty
Diff: main.cpp
- Revision:
- 0:e83567ef4990
diff -r 000000000000 -r e83567ef4990 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jun 03 11:36:29 2014 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" +#include "m3pi_ng.h" +#include "cmath" +#include "iostream" + +m3pi thinggy; +int x=0; +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 dirty[]={'V','1','5','O','4','R','8','A','#','8','R','2','4','A','#','8','R','2','4','A','#','8','O','5','F','4','O','4','A','#','4', + 'R','4','A','#','8','O','5','F','4','F','#','4', + }; + //the number of characters in the array + int numb=strlen(dirty); + thinggy.playtune(dirty,numb); + x++; + } + + \ No newline at end of file