Auto full-combo Koibumi2000 in Taiko no Tatsujin CS5
Dependencies: fll mbed-rtos mbed
main.cpp@12:54aeb978fe9d, 2015-02-15 (annotated)
- Committer:
- amutake
- Date:
- Sun Feb 15 09:10:25 2015 +0000
- Revision:
- 12:54aeb978fe9d
- Parent:
- 11:21b3b0494baa
- Child:
- 13:fd698d077882
Add ??
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 | 11:21b3b0494baa | 9 | fll_init(); |
amutake | 11:21b3b0494baa | 10 | |
amutake | 10:79bb44beb08b | 11 | /* |
sierra | 5:130721ce29f7 | 12 | button_t array0[] = {R1, 0}; |
amutake | 7:61b4825304e2 | 13 | button_t array1[] = {CIRCLE, 0}; |
amutake | 7:61b4825304e2 | 14 | |
sierra | 6:d0348b7a2f05 | 15 | Producer* source0 = new RepeaterSource(array0, sizeof(array0)/sizeof(button_t)); |
sierra | 6:d0348b7a2f05 | 16 | Producer* source1 = new RepeaterSource(array1, sizeof(array1)/sizeof(button_t)); |
sierra | 6:d0348b7a2f05 | 17 | Producer* ss[] = {source0, source1}; |
amutake | 9:0d6631edfc32 | 18 | Producer* source = new MergeFlow(ss, 2); |
amutake | 10:79bb44beb08b | 19 | */ |
amutake | 10:79bb44beb08b | 20 | |
amutake | 10:79bb44beb08b | 21 | note don1 = { Don, 1 }; |
amutake | 11:21b3b0494baa | 22 | note don075 = { Don, 0.75 }; |
amutake | 10:79bb44beb08b | 23 | note don05 = { Don, 0.5 }; |
amutake | 11:21b3b0494baa | 24 | note don025 = { Don, 0.25 }; |
amutake | 11:21b3b0494baa | 25 | note un1 = { Un, 1 }; |
amutake | 11:21b3b0494baa | 26 | note un05 = { Un, 0.5 }; |
amutake | 11:21b3b0494baa | 27 | note ka05 = { Ka, 0.5 }; |
amutake | 12:54aeb978fe9d | 28 | note renda3 = { Renda, 3 }; |
amutake | 10:79bb44beb08b | 29 | |
amutake | 11:21b3b0494baa | 30 | note* note_seq[] = { |
amutake | 11:21b3b0494baa | 31 | &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don1, |
amutake | 11:21b3b0494baa | 32 | &don025, &don025, &don025, &don025, &don05, &don05, &don1, &un05, &don025, &don025, |
amutake | 11:21b3b0494baa | 33 | |
amutake | 11:21b3b0494baa | 34 | &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don025, &don025, |
amutake | 11:21b3b0494baa | 35 | &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &un05, |
amutake | 11:21b3b0494baa | 36 | |
amutake | 11:21b3b0494baa | 37 | &don05, &ka05, &ka05, &un05, &don05, &ka05, &ka05, &un05, |
amutake | 11:21b3b0494baa | 38 | &don05, &ka05, &don05, &ka05, &don1, &un1, |
amutake | 11:21b3b0494baa | 39 | |
amutake | 11:21b3b0494baa | 40 | &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don025, &don025, |
amutake | 11:21b3b0494baa | 41 | &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &un05, |
amutake | 11:21b3b0494baa | 42 | |
amutake | 11:21b3b0494baa | 43 | &don05, &ka05, &ka05, &un05, &don05, &ka05, &ka05, &un05, |
amutake | 12:54aeb978fe9d | 44 | &don075, &don025, &don025, &don025, &don025, &don025, &don05, &don05, &don1, |
amutake | 12:54aeb978fe9d | 45 | |
amutake | 12:54aeb978fe9d | 46 | &renda3, &un1, |
amutake | 12:54aeb978fe9d | 47 | &renda3, &un1 |
amutake | 11:21b3b0494baa | 48 | }; |
amutake | 10:79bb44beb08b | 49 | |
amutake | 10:79bb44beb08b | 50 | Producer* source = new TaikoSource(note_seq, sizeof(note_seq)/sizeof(note*), 120); |
amutake | 8:d16a0fcc2735 | 51 | |
amutake | 8:d16a0fcc2735 | 52 | fll_run(source); |
amutake | 0:c80e972b4c59 | 53 | } |