Auto full-combo Koibumi2000 in Taiko no Tatsujin CS5

Dependencies:   fll mbed-rtos mbed

Committer:
amutake
Date:
Mon Feb 16 13:03:06 2015 +0000
Revision:
18:c5d3a4d6e8e5
Parent:
16:253d933a7633
Child:
19:1036e651648b
Add OnetimeSource, DelayFlow, SequentialFlow and menu control, then full combo stablly

Who changed what in which revision?

UserRevisionLine numberNew 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 15:ed0c2da735c2 21
amutake 10:79bb44beb08b 22 note don1 = { Don, 1 };
amutake 11:21b3b0494baa 23 note don075 = { Don, 0.75 };
amutake 10:79bb44beb08b 24 note don05 = { Don, 0.5 };
amutake 11:21b3b0494baa 25 note don025 = { Don, 0.25 };
amutake 11:21b3b0494baa 26 note un1 = { Un, 1 };
amutake 11:21b3b0494baa 27 note un05 = { Un, 0.5 };
amutake 13:fd698d077882 28 note ka1 = { Ka, 1 };
amutake 11:21b3b0494baa 29 note ka05 = { Ka, 0.5 };
amutake 13:fd698d077882 30 note ka025 = { Ka, 0.25 };
amutake 12:54aeb978fe9d 31 note renda3 = { Renda, 3 };
amutake 15:ed0c2da735c2 32 note renda2 = { Renda, 2 };
amutake 15:ed0c2da735c2 33 note dondai05 = { DonDai, 0.5 };
amutake 15:ed0c2da735c2 34 note dondai1 = { DonDai, 1 };
amutake 15:ed0c2da735c2 35 note kadai05 = { KaDai, 0.5 };
amutake 15:ed0c2da735c2 36 note kadai1 = { KaDai, 1 };
amutake 10:79bb44beb08b 37
amutake 15:ed0c2da735c2 38 /*
amutake 15:ed0c2da735c2 39 // Radetzkymarsch perfect score
amutake 11:21b3b0494baa 40 note* note_seq[] = {
amutake 11:21b3b0494baa 41 &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don1,
amutake 11:21b3b0494baa 42 &don025, &don025, &don025, &don025, &don05, &don05, &don1, &un05, &don025, &don025,
amutake 11:21b3b0494baa 43
amutake 11:21b3b0494baa 44 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don025, &don025,
amutake 11:21b3b0494baa 45 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &un05,
amutake 11:21b3b0494baa 46
amutake 11:21b3b0494baa 47 &don05, &ka05, &ka05, &un05, &don05, &ka05, &ka05, &un05,
amutake 11:21b3b0494baa 48 &don05, &ka05, &don05, &ka05, &don1, &un1,
amutake 11:21b3b0494baa 49
amutake 11:21b3b0494baa 50 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don025, &don025,
amutake 11:21b3b0494baa 51 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &un05,
amutake 11:21b3b0494baa 52
amutake 11:21b3b0494baa 53 &don05, &ka05, &ka05, &un05, &don05, &ka05, &ka05, &un05,
amutake 12:54aeb978fe9d 54 &don075, &don025, &don025, &don025, &don025, &don025, &don05, &don05, &don1,
amutake 12:54aeb978fe9d 55
amutake 12:54aeb978fe9d 56 &renda3, &un1,
amutake 13:fd698d077882 57 &renda3, &un1,
amutake 13:fd698d077882 58
amutake 13:fd698d077882 59 &don1, &don075, &don025, &don1, &don1,
amutake 13:fd698d077882 60 &ka05, &ka025, &ka025, &ka05, &don05, &ka05, &ka025, &ka025, &ka1,
amutake 13:fd698d077882 61
amutake 13:fd698d077882 62 &don1, &don075, &don025, &don1, &don1,
amutake 13:fd698d077882 63 &ka05, &ka025, &ka025, &ka05, &don05, &ka05, &ka025, &ka025, &ka05, &don05,
amutake 13:fd698d077882 64
amutake 13:fd698d077882 65 &ka05, &ka025, &ka025, &ka05, &ka025, &ka025, &ka05, &ka025, &ka025, &ka05, &ka025, &ka025,
amutake 13:fd698d077882 66 &ka1, &un1, &un1, &un05, &don025, &don025,
amutake 13:fd698d077882 67
amutake 13:fd698d077882 68 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don025, &don025,
amutake 13:fd698d077882 69 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &un05,
amutake 13:fd698d077882 70
amutake 13:fd698d077882 71 &don05, &ka05, &ka05, &un05, &don05, &ka05, &ka05, &un05,
amutake 13:fd698d077882 72 &don05, &ka05, &don05, &ka05, &don1, &un1,
amutake 13:fd698d077882 73
amutake 13:fd698d077882 74 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don025, &don025,
amutake 13:fd698d077882 75 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &un05,
amutake 13:fd698d077882 76
amutake 13:fd698d077882 77 &don05, &ka05, &ka05, &un05, &don05, &ka05, &ka05, &un05,
amutake 13:fd698d077882 78 &don075, &don025, &don025, &don025, &don025, &don025, &don05, &don05, &don1,
amutake 14:83af8f502d83 79
amutake 14:83af8f502d83 80 // changing tempo?
amutake 13:fd698d077882 81 &don1, &un05, &don05, &don05, &don05, &don05, &don05,
amutake 14:83af8f502d83 82 &don05, &ka025, &ka025, &ka05, &ka05, &ka1, &un1,
amutake 14:83af8f502d83 83
amutake 14:83af8f502d83 84 //
amutake 14:83af8f502d83 85 &don1, &ka1, &don05, &don05, &ka1,
amutake 14:83af8f502d83 86 &don1, &ka05, &ka05, &don1, &un1,
amutake 14:83af8f502d83 87
amutake 14:83af8f502d83 88 &don1, &ka05, &ka05, &don025, &don025, &don05, &ka1,
amutake 14:83af8f502d83 89 &don1, &ka05, &ka05, &don1, &un1,
amutake 14:83af8f502d83 90
amutake 14:83af8f502d83 91 &don1, &ka1, &don05, &don05, &ka1,
amutake 14:83af8f502d83 92 &don1, &ka05, &ka05, &don1, &un1,
amutake 14:83af8f502d83 93
amutake 14:83af8f502d83 94 &don1, &ka05, &ka05, &don025, &don025, &don05, &ka1,
amutake 14:83af8f502d83 95 &don025, &don025, &don05, &don025, &don025, &don05, &don1, &un1,
amutake 14:83af8f502d83 96
amutake 14:83af8f502d83 97 //
amutake 14:83af8f502d83 98 &don05, &don025, &don025, &don1, &ka05, &ka05, &ka05, &ka05,
amutake 14:83af8f502d83 99 &don05, &don025, &don025, &don1, &ka05, &ka05, &ka1,
amutake 14:83af8f502d83 100
amutake 14:83af8f502d83 101 &don05, &don025, &don025, &don1, &ka05, &ka05, &ka05, &ka05,
amutake 14:83af8f502d83 102 &don1, &un05, &don025, &don025, &don1, &un1,
amutake 14:83af8f502d83 103
amutake 14:83af8f502d83 104 &don1, &ka1, &don05, &don05, &ka1,
amutake 14:83af8f502d83 105 &don1, &ka05, &ka05, &don1, &un1,
amutake 14:83af8f502d83 106
amutake 14:83af8f502d83 107 &don1, &ka05, &ka05, &don025, &don025, &don05, &ka1,
amutake 14:83af8f502d83 108 &don025, &don025, &don05, &don025, &don025, &don05, &don1, &un1,
amutake 14:83af8f502d83 109
amutake 14:83af8f502d83 110 &don05, &don025, &don025, &don1, &ka05, &ka05, &ka05, &ka05,
amutake 14:83af8f502d83 111 &don05, &don025, &don025, &don1, &ka05, &ka05, &ka1,
amutake 14:83af8f502d83 112
amutake 14:83af8f502d83 113 &don05, &don025, &don025, &don1, &ka05, &ka05, &ka05, &ka05,
amutake 14:83af8f502d83 114 &don1, &un05, &don025, &don025, &don1, &un1,
amutake 14:83af8f502d83 115
amutake 14:83af8f502d83 116 &don025, &don025, &don025, &don025, &don05, &ka05, &don025, &don025, &don025, &don025, &don05, &ka05,
amutake 14:83af8f502d83 117 &don025, &don025, &don025, &don025, &don05, &ka05, &ka1, &un1,
amutake 14:83af8f502d83 118
amutake 14:83af8f502d83 119 &don025, &don025, &don025, &don025, &don1, &don025, &don025, &don025, &don025, &don1,
amutake 14:83af8f502d83 120 &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don1,
amutake 14:83af8f502d83 121
amutake 14:83af8f502d83 122 //
amutake 14:83af8f502d83 123 &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don1,
amutake 14:83af8f502d83 124 &don025, &don025, &don025, &don025, &don05, &don05, &don1, &un05, &don025, &don025,
amutake 14:83af8f502d83 125
amutake 14:83af8f502d83 126 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don025, &don025,
amutake 14:83af8f502d83 127 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &un05,
amutake 14:83af8f502d83 128
amutake 14:83af8f502d83 129 &don05, &ka05, &ka05, &un05, &don05, &ka05, &ka05, &un05,
amutake 14:83af8f502d83 130 &don05, &ka05, &don05, &ka05, &don1, &un1,
amutake 14:83af8f502d83 131
amutake 14:83af8f502d83 132 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don025, &don025,
amutake 14:83af8f502d83 133 &don05, &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &un05,
amutake 14:83af8f502d83 134
amutake 14:83af8f502d83 135 &don05, &ka05, &ka05, &un05, &don05, &ka05, &ka05, &un05,
amutake 14:83af8f502d83 136 &don075, &don025, &don025, &don025, &don025, &don025, &don05, &don05, &don1
amutake 11:21b3b0494baa 137 };
amutake 10:79bb44beb08b 138
amutake 14:83af8f502d83 139 Producer* source = new TaikoSource(note_seq, sizeof(note_seq)/sizeof(note*), 119.9);
amutake 15:ed0c2da735c2 140
amutake 15:ed0c2da735c2 141 */
amutake 15:ed0c2da735c2 142
amutake 18:c5d3a4d6e8e5 143 button_t menu_bs[] = {
amutake 18:c5d3a4d6e8e5 144 START, START, START, START, START, START,
amutake 18:c5d3a4d6e8e5 145 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
amutake 18:c5d3a4d6e8e5 146 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
amutake 18:c5d3a4d6e8e5 147 LEFT, LEFT, LEFT, LEFT, LEFT, LEFT,
amutake 18:c5d3a4d6e8e5 148 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
amutake 18:c5d3a4d6e8e5 149 CIRCLE, CIRCLE,
amutake 18:c5d3a4d6e8e5 150 };
amutake 18:c5d3a4d6e8e5 151
amutake 18:c5d3a4d6e8e5 152 Producer* menu = new OnetimeSource(menu_bs, sizeof(menu_bs) / sizeof(button_t));
amutake 18:c5d3a4d6e8e5 153
amutake 15:ed0c2da735c2 154 // Koibumi2000
amutake 15:ed0c2da735c2 155 note* note_seq[] = {
amutake 18:c5d3a4d6e8e5 156 &un1, &un1, &un1, &un1,
amutake 18:c5d3a4d6e8e5 157 &un1, &un1, &un05, &dondai05, &un1,
amutake 15:ed0c2da735c2 158
amutake 15:ed0c2da735c2 159 &don05, &don05, &un1, &un1, &un1,
amutake 15:ed0c2da735c2 160 &un1, &un1, &un1, &un1,
amutake 15:ed0c2da735c2 161
amutake 15:ed0c2da735c2 162 &don05, &don05, &un1, &un1, &un1,
amutake 15:ed0c2da735c2 163 &dondai1, &un1, &dondai1, &un1,
amutake 15:ed0c2da735c2 164
amutake 15:ed0c2da735c2 165 //
amutake 15:ed0c2da735c2 166 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don1,
amutake 15:ed0c2da735c2 167 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don1,
amutake 15:ed0c2da735c2 168
amutake 15:ed0c2da735c2 169 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don1,
amutake 15:ed0c2da735c2 170 &don05, &don05, &ka05, &ka05, &don05, &don05, &ka1,
amutake 15:ed0c2da735c2 171
amutake 15:ed0c2da735c2 172 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don1,
amutake 15:ed0c2da735c2 173 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don1,
amutake 15:ed0c2da735c2 174
amutake 15:ed0c2da735c2 175 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don1,
amutake 15:ed0c2da735c2 176 &don05, &don05, &ka05, &ka05, &don05, &don05, &ka1,
amutake 15:ed0c2da735c2 177
amutake 15:ed0c2da735c2 178 //
amutake 15:ed0c2da735c2 179 &dondai1, &un1, &don025, &don025, &don025, &don025, &don1, //
amutake 15:ed0c2da735c2 180
amutake 15:ed0c2da735c2 181 //
amutake 15:ed0c2da735c2 182 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 183 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 184
amutake 15:ed0c2da735c2 185 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 186 &don05, &don05, &ka05, &ka05, &don05, &don05, &ka1,
amutake 15:ed0c2da735c2 187
amutake 15:ed0c2da735c2 188 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 189 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 190
amutake 15:ed0c2da735c2 191 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 192 &don05, &ka05, &don05, &ka05, &don05, &kadai05, &un1,
amutake 15:ed0c2da735c2 193
amutake 15:ed0c2da735c2 194 //
amutake 15:ed0c2da735c2 195 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 196 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 197
amutake 15:ed0c2da735c2 198 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 199 &don05, &ka05, &don05, &ka05, &don05, &kadai05, &kadai05, &kadai05,
amutake 15:ed0c2da735c2 200
amutake 15:ed0c2da735c2 201 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 202 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 203
amutake 15:ed0c2da735c2 204 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 15:ed0c2da735c2 205 &don05, &ka05, &don05, &ka05, &don025, &don025, &don025, &don025, &don1,
amutake 15:ed0c2da735c2 206
amutake 15:ed0c2da735c2 207 //
amutake 15:ed0c2da735c2 208 &don025, &don025, &don05, &un05, &don025, &don025, &don05, &un05, &dondai1,
amutake 15:ed0c2da735c2 209 &don025, &don025, &don05, &un05, &don025, &don025, &don05, &un05, &dondai1,
amutake 15:ed0c2da735c2 210
amutake 15:ed0c2da735c2 211 &don025, &don025, &don05, &un05, &don025, &don025, &don05, &un05, &kadai1,
amutake 15:ed0c2da735c2 212 &don025, &don025, &don05, &un05, &don025, &don025, &don05, &un05, &kadai1,
amutake 15:ed0c2da735c2 213
amutake 15:ed0c2da735c2 214 &don025, &don025, &don05, &un05, &ka025, &ka025, &ka05, &un05, &dondai1,
amutake 15:ed0c2da735c2 215 &don025, &don025, &don05, &un05, &ka025, &ka025, &ka05, &un05, &dondai1,
amutake 15:ed0c2da735c2 216
amutake 15:ed0c2da735c2 217 &don025, &don025, &don05, &un05, &don025, &don025, &don05, &un05, &kadai1,
amutake 15:ed0c2da735c2 218 &don025, &don025, &don05, &un05, &don025, &don025, &don05, &un05, &kadai1,
amutake 15:ed0c2da735c2 219
amutake 15:ed0c2da735c2 220 //
amutake 15:ed0c2da735c2 221 &don05, &don05, &don1, &don05, &don025, &don025, &don05, &don05,
amutake 15:ed0c2da735c2 222 &don05, &don05, &don1, &don05, &don025, &don025, &don05, &don05,
amutake 15:ed0c2da735c2 223
amutake 15:ed0c2da735c2 224 &don05, &don05, &don1, &don05, &don025, &don025, &don05, &don05,
amutake 15:ed0c2da735c2 225 &don05, &don025, &don025, &don05, &don05, &don05, &don025, &don025, &don05, &don05,
amutake 15:ed0c2da735c2 226
amutake 15:ed0c2da735c2 227 &don05, &ka05, &don05, &ka05, &don05, &don025, &don025, &don05, &don05,
amutake 15:ed0c2da735c2 228 &don05, &ka05, &don05, &ka05, &don05, &don025, &don025, &don05, &don05,
amutake 15:ed0c2da735c2 229
amutake 15:ed0c2da735c2 230 &don05, &ka05, &don05, &ka05, &don05, &don025, &don025, &don05, &ka05,
amutake 15:ed0c2da735c2 231 &don05, &don025, &don025, &don05, &ka05, &don05, &ka025, &ka025, &ka05, &ka05,
amutake 15:ed0c2da735c2 232
amutake 15:ed0c2da735c2 233 //
amutake 15:ed0c2da735c2 234 &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don05, &don05,
amutake 15:ed0c2da735c2 235 &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don05, &don05,
amutake 15:ed0c2da735c2 236
amutake 15:ed0c2da735c2 237 &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don05, &don05,
amutake 15:ed0c2da735c2 238 &don05, &don025, &don025, &don025, &don025, &don05, &don05, &don025, &don025, &don025, &don025,&don05,
amutake 15:ed0c2da735c2 239
amutake 15:ed0c2da735c2 240 &don025, &don025, &don05, &ka05, &ka05, &don025, &don025, &don05, &ka05, &ka05,
amutake 15:ed0c2da735c2 241 &don025, &don025, &don05, &ka05, &ka05, &don025, &don025, &don05, &ka05, &ka05,
amutake 15:ed0c2da735c2 242
amutake 15:ed0c2da735c2 243 &don025, &don025, &don05, &ka05, &ka05, &don025, &don025, &don05, &ka05, &ka05,
amutake 15:ed0c2da735c2 244 &don025, &don025, &don05, &ka025, &ka025, &ka05, &don025, &don025, &don05, &dondai1,
amutake 15:ed0c2da735c2 245
amutake 15:ed0c2da735c2 246 // irregular time
amutake 15:ed0c2da735c2 247 &don05, &don1, &don1, &don1, &don05, &un05, &don05, &don05, &don05, &don1, &don05, &don05,
amutake 15:ed0c2da735c2 248 &un05, &don1, &don1, &don1, &don05, &don05, &don05, &don1, // ?
amutake 15:ed0c2da735c2 249
amutake 15:ed0c2da735c2 250 &don05, &don1, &don1, &don05, &don05, &don05, &un05, &ka025, &ka025, &ka05, &ka025, &ka025, &ka1, &don05, &don05,
amutake 15:ed0c2da735c2 251 &un05, &don1, &don05, &don05, &don05, &un05, &ka025, &ka025, &ka05, &ka025, &ka025, &ka05, &un05,
amutake 15:ed0c2da735c2 252
amutake 15:ed0c2da735c2 253 &don05, &don025, &don025, &don05, &don1, &don1, &ka025, &ka025, &ka05, &ka025, &ka025, &ka05, &don025, &don025, &don1, &don05, &don1, &don1, &don1, &ka025, &ka025, &ka05, &ka025, &ka025, &ka05, &don05, &don05, &don05,
amutake 15:ed0c2da735c2 254
amutake 15:ed0c2da735c2 255 // normal time
amutake 15:ed0c2da735c2 256 &don1, &ka1, &don1, &ka1, &don05, &don05, &ka05, &ka05, &don05, &don05, &ka1,
amutake 15:ed0c2da735c2 257 &don025, &don025, &don05, &ka025, &ka025, &ka05, &don025, &don025, &don05, &ka025, &ka025, &ka05, &don1, &un1, &un05, &don025, &don025, &don05, &don05,
amutake 15:ed0c2da735c2 258
amutake 15:ed0c2da735c2 259 &don1, &ka1, &don1, &ka1, &don05, &don05, &ka05, &ka05, &don05, &don05, &ka1,
amutake 15:ed0c2da735c2 260 &don025, &don025, &don025, &don025, &ka025, &ka025, &ka05, &don025, &don025, &don025, &don025, &ka025, &ka025, &ka05, &don025, &don025, &don025, &don025, &ka025, &ka025, &ka05, &don05, &don05, &don05, &don05,
amutake 15:ed0c2da735c2 261
amutake 15:ed0c2da735c2 262 &don1, &ka1, &don1, &ka1, &dondai1, &kadai1, &dondai1, &kadai1,
amutake 15:ed0c2da735c2 263 &don025, &don025, &don025, &don025, &ka025, &ka025, &ka025, &ka025,
amutake 15:ed0c2da735c2 264 &don025, &don025, &don025, &don025, &ka025, &ka025, &ka025, &ka025,
amutake 15:ed0c2da735c2 265 &don025, &don025, &don025, &don025, &ka025, &ka025, &ka025, &ka025,
amutake 15:ed0c2da735c2 266 &don025, &don025, &don025, &don025, &ka025, &ka025, &ka05,
amutake 15:ed0c2da735c2 267
amutake 15:ed0c2da735c2 268 &renda2, &un05, &don025, &don025, &don1,
amutake 15:ed0c2da735c2 269
amutake 15:ed0c2da735c2 270 // switch (tatsujin)
amutake 16:253d933a7633 271 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 16:253d933a7633 272 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 16:253d933a7633 273
amutake 16:253d933a7633 274 &don05, &ka05, &don05, &ka05, &don05, &ka05, &don05, &ka05,
amutake 16:253d933a7633 275 &don05, &ka05, &don05, &ka05, &don05, &kadai05, &un05, &kadai05,
amutake 15:ed0c2da735c2 276
amutake 16:253d933a7633 277 //
amutake 15:ed0c2da735c2 278 &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don05, &don05,
amutake 15:ed0c2da735c2 279 &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don05, &don05,
amutake 15:ed0c2da735c2 280
amutake 15:ed0c2da735c2 281 &don025, &don025, &don05, &don025, &don025, &don05, &don05, &don05, &don05, &don05,
amutake 15:ed0c2da735c2 282 &don05, &don05, &don05, &don05, &don05, &don025, &don025, &don025, &don025, &don05,
amutake 16:253d933a7633 283 //
amutake 15:ed0c2da735c2 284 &don025, &don025, &don05, &ka025, &ka025, &ka05, &don025, &don025, &don05, &ka025, &ka025, &ka05,
amutake 15:ed0c2da735c2 285 &don025, &don025, &don05, &ka025, &ka025, &ka05, &don025, &don025, &don05, &ka025, &ka025, &ka05,
amutake 15:ed0c2da735c2 286
amutake 15:ed0c2da735c2 287 &don025, &don025, &don025, &don025, &ka025, &ka025, &ka025, &ka025, &don025, &don025, &don025, &don025, &ka025, &ka025, &ka025, &ka025,
amutake 15:ed0c2da735c2 288 &don025, &don025, &don05, &ka05, &ka05, &don025, &don025, &don025, &don025, &don05, &ka05,
amutake 16:253d933a7633 289 //
amutake 15:ed0c2da735c2 290 &don025, &don025, &don025, &don025, &ka025, &ka025, &ka05, &don025, &don025, &don025, &don025, &ka025, &ka025, &ka05,
amutake 15:ed0c2da735c2 291 &don025, &don025, &don025, &don025, &ka025, &ka025, &ka05, &don025, &don025, &don025, &don025, &ka025, &ka025, &ka05,
amutake 15:ed0c2da735c2 292
amutake 15:ed0c2da735c2 293 &don025, &don025, &ka025, &ka025, &don025, &don025, &ka025, &ka025, &don025, &don025, &ka025, &ka025, &don025, &don025, &ka025, &ka025,
amutake 15:ed0c2da735c2 294 &don05, &don05, &don05, &don05, &don025, &don025, &don025, &don025, &don025, &don025, &don05,
amutake 15:ed0c2da735c2 295
amutake 15:ed0c2da735c2 296 // irregular time
amutake 15:ed0c2da735c2 297 &don05, &don05, &un05, &don05, &un05, &don05, &un05, &don05, &un05, &don05, &don05, &don05, &don1,
amutake 15:ed0c2da735c2 298 &don05, &don05, &un05, &don05, &un05, &don05, &un05, &don05, &un05, &don05, &don05, &don05, &don1,
amutake 15:ed0c2da735c2 299
amutake 16:253d933a7633 300 // last
amutake 15:ed0c2da735c2 301 &dondai05, &dondai05
amutake 15:ed0c2da735c2 302 };
amutake 15:ed0c2da735c2 303
amutake 18:c5d3a4d6e8e5 304 Producer* taiko = new TaikoSource(note_seq, sizeof(note_seq)/sizeof(note*), 200);
amutake 18:c5d3a4d6e8e5 305
amutake 18:c5d3a4d6e8e5 306 Producer* delayed = new DelayFlow(taiko, 3.49);
amutake 18:c5d3a4d6e8e5 307
amutake 18:c5d3a4d6e8e5 308 Producer* src_seq[] = { menu, delayed };
amutake 18:c5d3a4d6e8e5 309 Producer* source = new SequentialFlow(src_seq, 2);
amutake 8:d16a0fcc2735 310
amutake 8:d16a0fcc2735 311 fll_run(source);
amutake 0:c80e972b4c59 312 }