Auto full-combo Koibumi2000 in Taiko no Tatsujin CS5

Dependencies:   fll mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers taiko.h Source File

taiko.h

00001 // Toolkit for Taiko no Tatsujin
00002 
00003 #pragma once
00004 
00005 #include "fll.h"
00006 #include "fllaux.h"
00007 
00008 enum Taiko {
00009     Un = 0,
00010     Don = 1,
00011     Ka = 2,
00012     Renda = 3,
00013     DonDai = 4,
00014     KaDai = 5,
00015 };
00016 
00017 typedef struct _note {
00018     Taiko taiko;
00019     float length;
00020 } note;
00021 
00022 class TaikoSource : public Producer
00023 {
00024 private:
00025     note** note_seq;
00026     int index;
00027     int size;
00028     float bpm;
00029     int frame_i;
00030     float lag; // < FRAME
00031 public:
00032     TaikoSource(note** ns, int s, float b);
00033     virtual button_t await();
00034     virtual bool is_finished();
00035     virtual void reset();
00036 };