Music Player Library for YMZ294 Sound Generator LSI

Dependents:   Workshop_SSG

Layer.h

Committer:
yamaguch
Date:
2011-07-06
Revision:
0:85d8bf9fb6fe

File content as of revision 0:85d8bf9fb6fe:

#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, Channel channel, int tick, bool attenuate);
    void rewind();
    bool isNull();

private:
    MusicString ms;
    Note note;
    int tick;
};

#endif