Riding dirty

Dependencies:   m3pi_ng mbed

main.cpp

Committer:
mmpeter
Date:
2014-06-03
Revision:
0:e83567ef4990

File content as of revision 0:e83567ef4990:

#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++;
        }