YMZ294 Player. modified from "Yamaguchi's YMZ294 Library" for LPC1114.

Dependencies:   mbed

Committer:
kohacraft
Date:
Wed Dec 09 01:38:08 2015 +0000
Revision:
0:7a56bf0441ea
YMZ294 Player. modified from "Yamaguchi's YMZ294 Library" for LPC1114

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kohacraft 0:7a56bf0441ea 1 #ifndef MBED_NOTE_H
kohacraft 0:7a56bf0441ea 2 #define MBED_NOTE_H
kohacraft 0:7a56bf0441ea 3
kohacraft 0:7a56bf0441ea 4 #include "mbed.h"
kohacraft 0:7a56bf0441ea 5
kohacraft 0:7a56bf0441ea 6 class Note {
kohacraft 0:7a56bf0441ea 7 public:
kohacraft 0:7a56bf0441ea 8 Note(int pitch = 0, int dur = 0, bool tie = false);
kohacraft 0:7a56bf0441ea 9 Note(const char *s);
kohacraft 0:7a56bf0441ea 10
kohacraft 0:7a56bf0441ea 11 int pitch; // 69 = A4 = 440Hz, 0 for Rest
kohacraft 0:7a56bf0441ea 12 int dur; // w h q i s t x (. /), duration may be appended, w = 1920
kohacraft 0:7a56bf0441ea 13 bool tie; // true when tied to next note
kohacraft 0:7a56bf0441ea 14 };
kohacraft 0:7a56bf0441ea 15
kohacraft 0:7a56bf0441ea 16 #endif