![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
YMZ294 Player. modified from "Yamaguchi's YMZ294 Library" for LPC1114.
Diff: Player/Note.h
- Revision:
- 0:7a56bf0441ea
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Player/Note.h Wed Dec 09 01:38:08 2015 +0000 @@ -0,0 +1,16 @@ +#ifndef MBED_NOTE_H +#define MBED_NOTE_H + +#include "mbed.h" + +class Note { +public: + Note(int pitch = 0, int dur = 0, bool tie = false); + Note(const char *s); + + int pitch; // 69 = A4 = 440Hz, 0 for Rest + int dur; // w h q i s t x (. /), duration may be appended, w = 1920 + bool tie; // true when tied to next note +}; + +#endif \ No newline at end of file