Auto full-combo Koibumi2000 in Taiko no Tatsujin CS5

Dependencies:   fll mbed-rtos mbed

taiko.h

Committer:
amutake
Date:
2015-02-15
Revision:
11:21b3b0494baa
Parent:
10:79bb44beb08b
Child:
12:54aeb978fe9d

File content as of revision 11:21b3b0494baa:

// Toolkit for Taiko no Tatsujin

#pragma once

#include "fll.h"
#include "fll_producers.h"

enum Taiko {
    Don = 0x01,
    Ka = 0x10,
    Un = 0x00,
};

typedef struct _note {
    Taiko taiko;
    float length;
} note;

class TaikoSource : public Producer {
private:
    note** note_seq;
    int index;
    int size;
    float bpm;
    int frame_i;
    float lag; // < FRAME  
public:
    TaikoSource(note** ns, int s, float b);
    virtual button_t await();
};