Auto full-combo Koibumi2000 in Taiko no Tatsujin CS5
Dependencies: fll mbed-rtos mbed
main.cpp@10:79bb44beb08b, 2015-02-15 (annotated)
- Committer:
- amutake
- Date:
- Sun Feb 15 06:53:27 2015 +0000
- Revision:
- 10:79bb44beb08b
- Parent:
- 9:0d6631edfc32
- Child:
- 11:21b3b0494baa
Create TaikoSource
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
amutake | 0:c80e972b4c59 | 1 | #include "mbed.h" |
amutake | 0:c80e972b4c59 | 2 | #include "rtos.h" |
amutake | 0:c80e972b4c59 | 3 | #include "fll.h" |
amutake | 9:0d6631edfc32 | 4 | #include "fll_producers.h" |
amutake | 10:79bb44beb08b | 5 | #include "taiko.h" |
sierra | 5:130721ce29f7 | 6 | |
amutake | 0:c80e972b4c59 | 7 | int main(void) |
amutake | 0:c80e972b4c59 | 8 | { |
amutake | 10:79bb44beb08b | 9 | /* |
sierra | 5:130721ce29f7 | 10 | button_t array0[] = {R1, 0}; |
amutake | 7:61b4825304e2 | 11 | button_t array1[] = {CIRCLE, 0}; |
amutake | 7:61b4825304e2 | 12 | |
sierra | 6:d0348b7a2f05 | 13 | Producer* source0 = new RepeaterSource(array0, sizeof(array0)/sizeof(button_t)); |
sierra | 6:d0348b7a2f05 | 14 | Producer* source1 = new RepeaterSource(array1, sizeof(array1)/sizeof(button_t)); |
sierra | 6:d0348b7a2f05 | 15 | Producer* ss[] = {source0, source1}; |
amutake | 9:0d6631edfc32 | 16 | Producer* source = new MergeFlow(ss, 2); |
amutake | 10:79bb44beb08b | 17 | */ |
amutake | 10:79bb44beb08b | 18 | |
amutake | 10:79bb44beb08b | 19 | note don1 = { Don, 1 }; |
amutake | 10:79bb44beb08b | 20 | note don05 = { Don, 0.5 }; |
amutake | 10:79bb44beb08b | 21 | note ka1 = { Ka, 1 }; |
amutake | 10:79bb44beb08b | 22 | |
amutake | 10:79bb44beb08b | 23 | note* note_seq[] = { &don1, &don05, &don05, &don1, &ka1 }; |
amutake | 10:79bb44beb08b | 24 | |
amutake | 10:79bb44beb08b | 25 | Producer* source = new TaikoSource(note_seq, sizeof(note_seq)/sizeof(note*), 120); |
amutake | 8:d16a0fcc2735 | 26 | |
amutake | 8:d16a0fcc2735 | 27 | fll_run(source); |
amutake | 0:c80e972b4c59 | 28 | } |