kohacraft Lab
/
kc_YMZ294player
YMZ294 Player. modified from "Yamaguchi's YMZ294 Library" for LPC1114.
Diff: Player/Layer.h
- Revision:
- 0:7a56bf0441ea
diff -r 000000000000 -r 7a56bf0441ea Player/Layer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Player/Layer.h Wed Dec 09 01:38:08 2015 +0000 @@ -0,0 +1,21 @@ +#ifndef MBED_LAYER_H +#define MBED_LAYER_H + +#include "YMZ294.h" +#include "MusicString.h" + +class Layer { +public: + Layer(); + Layer(MusicString& ms); + int play(YMZ294& soundGen, Ch channel, int tick, bool attenuate); + void rewind(); + bool isNull(); + +private: + MusicString ms; + Note note; + int tick; +}; + +#endif \ No newline at end of file