Music works yo
Dependencies: m3pi_ng m3pimaze mbed
Revision 1:278526f1dabc, committed 2014-06-02
- Comitter:
- mmpeter
- Date:
- Mon Jun 02 09:19:01 2014 +0000
- Parent:
- 0:c480ffb2a60f
- Commit message:
- Hot Cross Buns
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c480ffb2a60f -r 278526f1dabc main.cpp --- a/main.cpp Mon Jun 02 09:00:25 2014 +0000 +++ b/main.cpp Mon Jun 02 09:19:01 2014 +0000 @@ -7,10 +7,10 @@ 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'}; + char cross[]={'V','1','5','O','5','B','4','A','4','G','2','B','4','A','4','G','2', 'R', '2', '4', 'G','1', '6', 'R', '2', '4', 'G','1', '6', 'R', '2', '4', 'G','1', '6', 'R', '2', '4', 'G','1', '6', 'A', '1', '6', 'R', '2', '4', 'A', '1', '6', 'R', '2', '4', 'A', '1', '6', 'R', '2', '4', 'A', '1', '6', 'B', '4', 'A', '4', 'G', '2'}; //the number of characters in the array - int numb=49; - thinggy.playtune(dixie,numb); + int numb=strlen(cross); + thinggy.playtune(cross,numb); }