Auto full-combo Koibumi2000 in Taiko no Tatsujin CS5

Dependencies:   fll mbed-rtos mbed

main.cpp

Committer:
amutake
Date:
2015-02-15
Revision:
10:79bb44beb08b
Parent:
9:0d6631edfc32
Child:
11:21b3b0494baa

File content as of revision 10:79bb44beb08b:

#include "mbed.h"
#include "rtos.h"
#include "fll.h"
#include "fll_producers.h"
#include "taiko.h"

int main(void)
{
    /*
    button_t array0[] = {R1, 0};
    button_t array1[] = {CIRCLE, 0};

    Producer* source0 = new RepeaterSource(array0, sizeof(array0)/sizeof(button_t));
    Producer* source1 = new RepeaterSource(array1, sizeof(array1)/sizeof(button_t));
    Producer* ss[] = {source0, source1};
    Producer* source = new MergeFlow(ss, 2);
    */
    
    note don1 = { Don, 1 };
    note don05 = { Don, 0.5 };
    note ka1 = { Ka, 1 };
    
    note* note_seq[] = { &don1, &don05, &don05, &don1, &ka1 };
    
    Producer* source = new TaikoSource(note_seq, sizeof(note_seq)/sizeof(note*), 120);
    
    fll_run(source);
}