Game codes for Pokemon Academy Yiu Fai Kwok - 201198802 I have read the University Regulations on Plagiarism and state that the work covered by this declaration is my own and does not contain any unacknowledged work from other sources.

Dependencies:   mbed FXOS8700CQ mbed-rtos

Committer:
yfkwok
Date:
Mon Apr 08 00:41:25 2019 +0000
Revision:
5:bc0691d02fd5
Parent:
4:5bc9c4363d31
Child:
6:9104692d6c8c
Child:
10:adff3c804985
8/4/2019 - Created Exam files

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yfkwok 2:464c7e62d97d 1 #include "Score.h"
yfkwok 2:464c7e62d97d 2
yfkwok 2:464c7e62d97d 3 Score::Score()
yfkwok 2:464c7e62d97d 4 {
yfkwok 2:464c7e62d97d 5
yfkwok 2:464c7e62d97d 6 }
yfkwok 2:464c7e62d97d 7
yfkwok 2:464c7e62d97d 8 Score::~Score()
yfkwok 2:464c7e62d97d 9 {
yfkwok 2:464c7e62d97d 10
yfkwok 2:464c7e62d97d 11 }
yfkwok 2:464c7e62d97d 12
yfkwok 2:464c7e62d97d 13 void Score::title_music(Gamepad &pad)
yfkwok 2:464c7e62d97d 14 {
yfkwok 2:464c7e62d97d 15 while(1){
yfkwok 2:464c7e62d97d 16 pad.tone(NOTE_G3,0.1);
yfkwok 2:464c7e62d97d 17 wait(0.1);
yfkwok 2:464c7e62d97d 18 pad.tone(NOTE_B3,0.1);
yfkwok 2:464c7e62d97d 19 wait(0.1);
yfkwok 2:464c7e62d97d 20 pad.tone(NOTE_D4,0.1);
yfkwok 2:464c7e62d97d 21 wait(0.1);
yfkwok 2:464c7e62d97d 22 pad.tone(NOTE_FS4,0.1);
yfkwok 2:464c7e62d97d 23 wait(0.1);
yfkwok 2:464c7e62d97d 24 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 25 pad.tone(NOTE_G4,0.4);
yfkwok 2:464c7e62d97d 26 wait(0.4);
yfkwok 2:464c7e62d97d 27 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 28 pad.tone(NOTE_G4,0.4);
yfkwok 2:464c7e62d97d 29 wait(0.4);
yfkwok 2:464c7e62d97d 30 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 31 wait(0.2);
yfkwok 2:464c7e62d97d 32 pad.tone(NOTE_G4,0.1);
yfkwok 2:464c7e62d97d 33 wait(0.1);
yfkwok 2:464c7e62d97d 34 pad.tone(NOTE_G4,0.1);
yfkwok 2:464c7e62d97d 35 wait(0.1);
yfkwok 2:464c7e62d97d 36 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 37 pad.tone(NOTE_G4,0.4);
yfkwok 2:464c7e62d97d 38 wait(0.4);
yfkwok 2:464c7e62d97d 39 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 40 pad.tone(NOTE_G4,0.4);
yfkwok 2:464c7e62d97d 41 wait(0.4);
yfkwok 2:464c7e62d97d 42 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 43 pad.tone(NOTE_G4,0.4);
yfkwok 2:464c7e62d97d 44 wait(0.4);
yfkwok 2:464c7e62d97d 45 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 46 pad.tone(NOTE_F4,0.4/3);
yfkwok 2:464c7e62d97d 47 wait(0.4/3);
yfkwok 2:464c7e62d97d 48 pad.tone(NOTE_F4,0.4/3);
yfkwok 2:464c7e62d97d 49 wait(0.4/3);
yfkwok 2:464c7e62d97d 50 pad.tone(NOTE_F4,0.4/3);
yfkwok 2:464c7e62d97d 51 wait(0.4/3);
yfkwok 2:464c7e62d97d 52 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 53 pad.tone(NOTE_F4,0.4/3);
yfkwok 2:464c7e62d97d 54 wait(0.4/3);
yfkwok 2:464c7e62d97d 55 pad.tone(NOTE_F4,0.4/3);
yfkwok 2:464c7e62d97d 56 wait(0.4/3);
yfkwok 2:464c7e62d97d 57 pad.tone(NOTE_FS4,0.4/3);
yfkwok 2:464c7e62d97d 58 wait(0.4/3);
yfkwok 2:464c7e62d97d 59 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 60
yfkwok 2:464c7e62d97d 61 while(1){
yfkwok 2:464c7e62d97d 62 //bar 4
yfkwok 2:464c7e62d97d 63 pad.tone(NOTE_G4,0.6);
yfkwok 2:464c7e62d97d 64 wait(0.6);
yfkwok 2:464c7e62d97d 65 pad.tone(NOTE_B4,0.2);
yfkwok 2:464c7e62d97d 66 wait(0.2);
yfkwok 2:464c7e62d97d 67 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 68 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 69 wait(0.8);
yfkwok 2:464c7e62d97d 70 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 71 pad.tone(NOTE_C4,0.6);
yfkwok 2:464c7e62d97d 72 wait(0.6);
yfkwok 2:464c7e62d97d 73 pad.tone(NOTE_F4,0.2);
yfkwok 2:464c7e62d97d 74 wait(0.2);
yfkwok 2:464c7e62d97d 75 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 76 pad.tone(NOTE_F5,0.6);
yfkwok 2:464c7e62d97d 77 wait(0.6);
yfkwok 2:464c7e62d97d 78 pad.tone(NOTE_E5,0.1);
yfkwok 2:464c7e62d97d 79 wait(0.1);
yfkwok 2:464c7e62d97d 80 pad.tone(NOTE_DS5,0.1);
yfkwok 2:464c7e62d97d 81 wait(0.1);
yfkwok 2:464c7e62d97d 82 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 83 //bar 6
yfkwok 2:464c7e62d97d 84 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 85 wait(0.8);
yfkwok 2:464c7e62d97d 86 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 87 pad.tone(NOTE_F4,0.6);
yfkwok 2:464c7e62d97d 88 wait(0.6);
yfkwok 2:464c7e62d97d 89 pad.tone(NOTE_E4,0.1);
yfkwok 2:464c7e62d97d 90 wait(0.1);
yfkwok 2:464c7e62d97d 91 pad.tone(NOTE_DS4,0.1);
yfkwok 2:464c7e62d97d 92 wait(0.1);
yfkwok 2:464c7e62d97d 93 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 94 pad.tone(NOTE_D4,0.8);
yfkwok 2:464c7e62d97d 95 wait(0.8);
yfkwok 2:464c7e62d97d 96 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 97 pad.tone(NOTE_C4,0.8/3);
yfkwok 2:464c7e62d97d 98 wait(0.8/3);
yfkwok 2:464c7e62d97d 99 pad.tone(NOTE_B3,0.8/3);
yfkwok 2:464c7e62d97d 100 wait(0.8/3);
yfkwok 2:464c7e62d97d 101 pad.tone(NOTE_C4,0.8/3);
yfkwok 2:464c7e62d97d 102 wait(0.8/3);
yfkwok 2:464c7e62d97d 103 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 104 pad.tone(NOTE_G4,0.6);
yfkwok 2:464c7e62d97d 105 wait(0.6);
yfkwok 2:464c7e62d97d 106 pad.tone(NOTE_B4,0.2);
yfkwok 2:464c7e62d97d 107 wait(0.2);
yfkwok 2:464c7e62d97d 108 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 109 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 110 wait(0.8);
yfkwok 2:464c7e62d97d 111 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 112 pad.tone(NOTE_C4,0.8);
yfkwok 2:464c7e62d97d 113 wait(0.8);
yfkwok 2:464c7e62d97d 114 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 115 pad.tone(NOTE_C5,0.8/3);
yfkwok 2:464c7e62d97d 116 wait(0.8/3);
yfkwok 2:464c7e62d97d 117 pad.tone(NOTE_B4,0.8/3);
yfkwok 2:464c7e62d97d 118 wait(0.8/3);
yfkwok 2:464c7e62d97d 119 pad.tone(NOTE_C5,0.8/3);
yfkwok 2:464c7e62d97d 120 wait(0.8/3);
yfkwok 2:464c7e62d97d 121 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 122 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 123 wait(0.8);
yfkwok 2:464c7e62d97d 124 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 125 pad.tone(NOTE_F4,0.8/3);
yfkwok 2:464c7e62d97d 126 wait(0.8/3);
yfkwok 2:464c7e62d97d 127 pad.tone(NOTE_E4,0.8/3);
yfkwok 2:464c7e62d97d 128 wait(0.8/3);
yfkwok 2:464c7e62d97d 129 pad.tone(NOTE_C4,0.8/3);
yfkwok 2:464c7e62d97d 130 wait(0.8/3);
yfkwok 2:464c7e62d97d 131 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 132 pad.tone(NOTE_D4,1.0);
yfkwok 2:464c7e62d97d 133 wait(1.0);
yfkwok 2:464c7e62d97d 134 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 135 pad.tone(NOTE_B3,0.2);
yfkwok 2:464c7e62d97d 136 wait(0.2);
yfkwok 2:464c7e62d97d 137 pad.tone(NOTE_C4,0.2);
yfkwok 2:464c7e62d97d 138 wait(0.2);
yfkwok 2:464c7e62d97d 139 pad.tone(NOTE_D4,0.2);
yfkwok 2:464c7e62d97d 140 wait(0.2);
yfkwok 2:464c7e62d97d 141 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 142 //bar 12
yfkwok 2:464c7e62d97d 143 pad.tone(NOTE_G4,0.6);
yfkwok 2:464c7e62d97d 144 wait(0.6);
yfkwok 2:464c7e62d97d 145 pad.tone(NOTE_B4,0.2);
yfkwok 2:464c7e62d97d 146 wait(0.2);
yfkwok 2:464c7e62d97d 147 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 148 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 149 wait(0.8);
yfkwok 2:464c7e62d97d 150 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 151 pad.tone(NOTE_C4,0.6);
yfkwok 2:464c7e62d97d 152 wait(0.6);
yfkwok 2:464c7e62d97d 153 pad.tone(NOTE_F4,0.2);
yfkwok 2:464c7e62d97d 154 wait(0.2);
yfkwok 2:464c7e62d97d 155 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 156 pad.tone(NOTE_F5,0.6);
yfkwok 2:464c7e62d97d 157 wait(0.6);
yfkwok 2:464c7e62d97d 158 pad.tone(NOTE_E5,0.1);
yfkwok 2:464c7e62d97d 159 wait(0.1);
yfkwok 2:464c7e62d97d 160 pad.tone(NOTE_DS5,0.1);
yfkwok 2:464c7e62d97d 161 wait(0.1);
yfkwok 2:464c7e62d97d 162 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 163 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 164 wait(0.8);
yfkwok 2:464c7e62d97d 165 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 166 pad.tone(NOTE_F4,0.6);
yfkwok 2:464c7e62d97d 167 wait(0.6);
yfkwok 2:464c7e62d97d 168 pad.tone(NOTE_E4,0.1);
yfkwok 2:464c7e62d97d 169 wait(0.1);
yfkwok 2:464c7e62d97d 170 pad.tone(NOTE_DS4,0.1);
yfkwok 2:464c7e62d97d 171 wait(0.1);
yfkwok 2:464c7e62d97d 172 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 173 pad.tone(NOTE_D4,0.8);
yfkwok 2:464c7e62d97d 174 wait(0.8);
yfkwok 2:464c7e62d97d 175 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 176 pad.tone(NOTE_C4,0.8/3);
yfkwok 2:464c7e62d97d 177 wait(0.8/3);
yfkwok 2:464c7e62d97d 178 pad.tone(NOTE_B3,0.8/3);
yfkwok 2:464c7e62d97d 179 wait(0.8/3);
yfkwok 2:464c7e62d97d 180 pad.tone(NOTE_C4,0.8/3);
yfkwok 2:464c7e62d97d 181 wait(0.8/3);
yfkwok 2:464c7e62d97d 182 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 183 pad.tone(NOTE_G4,0.6);
yfkwok 2:464c7e62d97d 184 wait(0.6);
yfkwok 2:464c7e62d97d 185 pad.tone(NOTE_B4,0.2);
yfkwok 2:464c7e62d97d 186 wait(0.2);
yfkwok 2:464c7e62d97d 187 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 188 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 189 wait(0.8);
yfkwok 2:464c7e62d97d 190 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 191 //bar 17
yfkwok 2:464c7e62d97d 192 pad.tone(NOTE_C4,0.6);
yfkwok 2:464c7e62d97d 193 wait(0.6);
yfkwok 2:464c7e62d97d 194 pad.tone(NOTE_C4,0.2);
yfkwok 2:464c7e62d97d 195 wait(0.2);
yfkwok 2:464c7e62d97d 196 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 197 pad.tone(NOTE_F5,0.8/3);
yfkwok 2:464c7e62d97d 198 wait(0.8/3);
yfkwok 2:464c7e62d97d 199 pad.tone(NOTE_E5,0.8/3);
yfkwok 2:464c7e62d97d 200 wait(0.8/3);
yfkwok 2:464c7e62d97d 201 pad.tone(NOTE_F5,0.8/3);
yfkwok 2:464c7e62d97d 202 wait(0.8/3);
yfkwok 2:464c7e62d97d 203 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 204 pad.tone(NOTE_G5,0.6);
yfkwok 2:464c7e62d97d 205 wait(0.6);
yfkwok 2:464c7e62d97d 206 pad.tone(NOTE_AS5,0.2);
yfkwok 2:464c7e62d97d 207 wait(0.2);
yfkwok 2:464c7e62d97d 208 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 209 pad.tone(NOTE_G5,0.8);
yfkwok 2:464c7e62d97d 210 wait(0.8);
yfkwok 2:464c7e62d97d 211 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 212 pad.tone(NOTE_G5,0.6);
yfkwok 2:464c7e62d97d 213 wait(0.6);
yfkwok 2:464c7e62d97d 214 pad.tone(NOTE_A4,0.2);
yfkwok 2:464c7e62d97d 215 wait(0.2);
yfkwok 2:464c7e62d97d 216 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 217 pad.tone(NOTE_A5,0.8);
yfkwok 2:464c7e62d97d 218 wait(0.8);
yfkwok 2:464c7e62d97d 219 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 220 pad.tone(NOTE_AS5,0.6);
yfkwok 2:464c7e62d97d 221 wait(0.6);
yfkwok 2:464c7e62d97d 222 pad.tone(NOTE_F5,0.2);
yfkwok 2:464c7e62d97d 223 wait(0.2);
yfkwok 2:464c7e62d97d 224 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 225 pad.tone(NOTE_F5,0.8);
yfkwok 2:464c7e62d97d 226 wait(0.8);
yfkwok 2:464c7e62d97d 227 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 228 pad.tone(NOTE_F5,0.8);
yfkwok 2:464c7e62d97d 229 wait(0.8);
yfkwok 2:464c7e62d97d 230 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 231 pad.tone(NOTE_AS5,0.4);
yfkwok 2:464c7e62d97d 232 wait(0.4);
yfkwok 2:464c7e62d97d 233 pad.tone(NOTE_B5,0.4);
yfkwok 2:464c7e62d97d 234 wait(0.4);
yfkwok 2:464c7e62d97d 235 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 236 pad.tone(NOTE_C6,0.6);
yfkwok 2:464c7e62d97d 237 wait(0.6);
yfkwok 2:464c7e62d97d 238 pad.tone(NOTE_G5,0.2);
yfkwok 2:464c7e62d97d 239 wait(0.2);
yfkwok 2:464c7e62d97d 240 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 241 pad.tone(NOTE_G5,0.8);
yfkwok 2:464c7e62d97d 242 wait(0.8);
yfkwok 2:464c7e62d97d 243 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 244 //bar 23
yfkwok 2:464c7e62d97d 245 pad.tone(NOTE_G5,0.8);
yfkwok 2:464c7e62d97d 246 wait(0.8);
yfkwok 2:464c7e62d97d 247 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 248 pad.tone(NOTE_C6,0.4);
yfkwok 2:464c7e62d97d 249 wait(0.4);
yfkwok 2:464c7e62d97d 250 pad.tone(NOTE_CS6,0.4);
yfkwok 2:464c7e62d97d 251 wait(0.4);
yfkwok 2:464c7e62d97d 252 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 253 pad.tone(NOTE_D6,0.3);
yfkwok 2:464c7e62d97d 254 wait(0.3);
yfkwok 2:464c7e62d97d 255 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 256 wait(0.1);
yfkwok 2:464c7e62d97d 257 wait(0.3);
yfkwok 2:464c7e62d97d 258 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 259 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 260 wait(0.1);
yfkwok 2:464c7e62d97d 261 wait(0.3);
yfkwok 2:464c7e62d97d 262 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 263 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 264 wait(0.1);
yfkwok 2:464c7e62d97d 265 wait(0.3);
yfkwok 2:464c7e62d97d 266 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 267 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 268 wait(0.1);
yfkwok 2:464c7e62d97d 269 wait(0.3);
yfkwok 2:464c7e62d97d 270 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 271 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 272 wait(0.1);
yfkwok 2:464c7e62d97d 273 wait(0.3);
yfkwok 2:464c7e62d97d 274 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 275 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 276 wait(0.1);
yfkwok 2:464c7e62d97d 277 pad.tone(NOTE_C6,0.8/3);
yfkwok 2:464c7e62d97d 278 wait(0.8/3);
yfkwok 2:464c7e62d97d 279 pad.tone(NOTE_C6,0.8/3);
yfkwok 2:464c7e62d97d 280 wait(0.8/3);
yfkwok 2:464c7e62d97d 281 pad.tone(NOTE_CS6,0.8/3);
yfkwok 2:464c7e62d97d 282 wait(0.8/3);
yfkwok 2:464c7e62d97d 283 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 284 pad.tone(NOTE_D6,0.3);
yfkwok 2:464c7e62d97d 285 wait(0.3);
yfkwok 2:464c7e62d97d 286 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 287 wait(0.1);
yfkwok 2:464c7e62d97d 288 wait(0.3);
yfkwok 2:464c7e62d97d 289 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 290 wait(0.1);
yfkwok 2:464c7e62d97d 291 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 292 wait(0.3);
yfkwok 2:464c7e62d97d 293 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 294 wait(0.1);
yfkwok 2:464c7e62d97d 295 wait(0.3);
yfkwok 2:464c7e62d97d 296 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 297 wait(0.1);
yfkwok 2:464c7e62d97d 298 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 299 wait(0.3);
yfkwok 2:464c7e62d97d 300 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 301 wait(0.1);
yfkwok 2:464c7e62d97d 302 wait(0.3);
yfkwok 2:464c7e62d97d 303 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 304 wait(0.1);
yfkwok 2:464c7e62d97d 305 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 306 pad.tone(NOTE_C6,0.8/3);
yfkwok 2:464c7e62d97d 307 wait(0.8/3);
yfkwok 2:464c7e62d97d 308 pad.tone(NOTE_C6,0.8/3);
yfkwok 2:464c7e62d97d 309 wait(0.8/3);
yfkwok 2:464c7e62d97d 310 pad.tone(NOTE_B5,0.8/3);
yfkwok 2:464c7e62d97d 311 wait(0.8/3);
yfkwok 2:464c7e62d97d 312 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 313 }
yfkwok 2:464c7e62d97d 314
yfkwok 2:464c7e62d97d 315 break;
yfkwok 2:464c7e62d97d 316 }
yfkwok 2:464c7e62d97d 317 }
yfkwok 2:464c7e62d97d 318
yfkwok 2:464c7e62d97d 319 void Score::level_up(Gamepad &pad)
yfkwok 2:464c7e62d97d 320 {
yfkwok 2:464c7e62d97d 321 pad.tone(NOTE_E5,0.12);
yfkwok 2:464c7e62d97d 322 wait(0.15);
yfkwok 2:464c7e62d97d 323 pad.tone(NOTE_E5,0.12);
yfkwok 2:464c7e62d97d 324 wait(0.15);
yfkwok 2:464c7e62d97d 325 pad.tone(NOTE_E5,0.12);
yfkwok 2:464c7e62d97d 326 wait(0.15);
yfkwok 2:464c7e62d97d 327 pad.tone(NOTE_B5,0.45);
yfkwok 2:464c7e62d97d 328 wait(0.45);
yfkwok 2:464c7e62d97d 329 }
yfkwok 2:464c7e62d97d 330
yfkwok 2:464c7e62d97d 331 void Score::congrats(Gamepad &pad)
yfkwok 2:464c7e62d97d 332 {
yfkwok 2:464c7e62d97d 333 pad.tone(NOTE_A5,0.35);
yfkwok 2:464c7e62d97d 334 wait(0.35);
yfkwok 2:464c7e62d97d 335 pad.tone(NOTE_F5,0.35);
yfkwok 2:464c7e62d97d 336 wait(0.35);
yfkwok 2:464c7e62d97d 337 pad.tone(NOTE_C5,0.7);
yfkwok 2:464c7e62d97d 338 wait(0.7);
yfkwok 2:464c7e62d97d 339 pad.tone(NOTE_AS5,0.35/3);
yfkwok 2:464c7e62d97d 340 wait(0.35/3);
yfkwok 2:464c7e62d97d 341 pad.tone(NOTE_AS5,0.35/3);
yfkwok 2:464c7e62d97d 342 wait(0.35/3);
yfkwok 2:464c7e62d97d 343 pad.tone(NOTE_AS5,0.35/3);
yfkwok 2:464c7e62d97d 344 wait(0.35/3);
yfkwok 2:464c7e62d97d 345 pad.tone(NOTE_G5,0.35/3);
yfkwok 2:464c7e62d97d 346 wait(0.35/3);
yfkwok 2:464c7e62d97d 347 pad.tone(NOTE_G5,0.35/3);
yfkwok 2:464c7e62d97d 348 wait(0.35/3);
yfkwok 2:464c7e62d97d 349 pad.tone(NOTE_AS5,0.35/3);
yfkwok 2:464c7e62d97d 350 wait(0.35/3);
yfkwok 2:464c7e62d97d 351 pad.tone(NOTE_A5,0.7);
yfkwok 2:464c7e62d97d 352 wait(0.7);
yfkwok 2:464c7e62d97d 353 }
yfkwok 2:464c7e62d97d 354
yfkwok 2:464c7e62d97d 355 void Score::coin(Gamepad &pad)
yfkwok 2:464c7e62d97d 356 {
yfkwok 2:464c7e62d97d 357 pad.tone(NOTE_B5,0.1);
yfkwok 2:464c7e62d97d 358 wait(0.1);
yfkwok 2:464c7e62d97d 359 pad.tone(NOTE_E6,0.4);
yfkwok 4:5bc9c4363d31 360 }
yfkwok 4:5bc9c4363d31 361
yfkwok 4:5bc9c4363d31 362 void Score::evolution_music(Gamepad &pad, N5110 &lcd, int cha, int year)
yfkwok 4:5bc9c4363d31 363 {
yfkwok 4:5bc9c4363d31 364 // bar 1
yfkwok 4:5bc9c4363d31 365 draw(lcd, cha, year);
yfkwok 4:5bc9c4363d31 366 pad.tone(NOTE_G5,0.5/4);
yfkwok 4:5bc9c4363d31 367 wait(0.5/4);
yfkwok 4:5bc9c4363d31 368 pad.tone(NOTE_D5,0.5/4);
yfkwok 4:5bc9c4363d31 369 wait(0.5/4);
yfkwok 4:5bc9c4363d31 370 pad.tone(NOTE_G5,0.5/4);
yfkwok 4:5bc9c4363d31 371 wait(0.5/4);
yfkwok 4:5bc9c4363d31 372 pad.tone(NOTE_D5,0.5/4);
yfkwok 4:5bc9c4363d31 373 wait(0.5/4);
yfkwok 4:5bc9c4363d31 374 wait(1.5);
yfkwok 4:5bc9c4363d31 375 // bar 2
yfkwok 4:5bc9c4363d31 376
yfkwok 4:5bc9c4363d31 377 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 378 wait(0.5);
yfkwok 4:5bc9c4363d31 379 lcd.clear();
yfkwok 4:5bc9c4363d31 380 lcd.refresh();
yfkwok 4:5bc9c4363d31 381 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 382 wait(0.25);
yfkwok 5:bc0691d02fd5 383 draw(lcd, cha, year);
yfkwok 5:bc0691d02fd5 384 wait(0.25);
yfkwok 4:5bc9c4363d31 385 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 386 wait(0.25);
yfkwok 5:bc0691d02fd5 387 lcd.clear();
yfkwok 5:bc0691d02fd5 388 lcd.refresh();
yfkwok 5:bc0691d02fd5 389 wait(0.25);
yfkwok 4:5bc9c4363d31 390 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 391 wait(0.5);
yfkwok 4:5bc9c4363d31 392 draw(lcd, cha, year);
yfkwok 4:5bc9c4363d31 393 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 394 wait(0.25);
yfkwok 5:bc0691d02fd5 395 lcd.clear();
yfkwok 5:bc0691d02fd5 396 lcd.refresh();
yfkwok 5:bc0691d02fd5 397 wait(0.25);
yfkwok 4:5bc9c4363d31 398 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 399 wait(0.25);
yfkwok 5:bc0691d02fd5 400 draw(lcd, cha, year);
yfkwok 5:bc0691d02fd5 401 wait(0.25);
yfkwok 4:5bc9c4363d31 402 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 403 wait(0.5);
yfkwok 4:5bc9c4363d31 404 lcd.clear();
yfkwok 4:5bc9c4363d31 405 lcd.refresh();
yfkwok 4:5bc9c4363d31 406 pad.tone(NOTE_A4,0.5);
yfkwok 4:5bc9c4363d31 407 wait(0.5);
yfkwok 4:5bc9c4363d31 408 // bar 4
yfkwok 4:5bc9c4363d31 409 draw(lcd, cha, year);
yfkwok 4:5bc9c4363d31 410 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 411 wait(0.5);
yfkwok 4:5bc9c4363d31 412 lcd.clear();
yfkwok 4:5bc9c4363d31 413 lcd.refresh();
yfkwok 4:5bc9c4363d31 414 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 415 wait(0.5);
yfkwok 4:5bc9c4363d31 416 draw(lcd, cha, year);
yfkwok 4:5bc9c4363d31 417 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 418 wait(0.5);
yfkwok 4:5bc9c4363d31 419 lcd.clear();
yfkwok 4:5bc9c4363d31 420 lcd.refresh();
yfkwok 4:5bc9c4363d31 421 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 422 wait(0.5);
yfkwok 4:5bc9c4363d31 423 draw(lcd, cha, year);
yfkwok 4:5bc9c4363d31 424 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 425 wait(0.25);
yfkwok 5:bc0691d02fd5 426 lcd.clear();
yfkwok 5:bc0691d02fd5 427 lcd.refresh();
yfkwok 5:bc0691d02fd5 428 wait(0.25);
yfkwok 5:bc0691d02fd5 429 draw(lcd, cha, year);
yfkwok 5:bc0691d02fd5 430 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 431 wait(0.25);
yfkwok 4:5bc9c4363d31 432 lcd.clear();
yfkwok 4:5bc9c4363d31 433 lcd.refresh();
yfkwok 5:bc0691d02fd5 434 wait(0.25);
yfkwok 5:bc0691d02fd5 435 draw(lcd, cha, year);
yfkwok 5:bc0691d02fd5 436 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 437 wait(0.25);
yfkwok 5:bc0691d02fd5 438 lcd.clear();
yfkwok 5:bc0691d02fd5 439 lcd.refresh();
yfkwok 5:bc0691d02fd5 440 wait(0.25);
yfkwok 5:bc0691d02fd5 441 draw(lcd, cha, year);
yfkwok 4:5bc9c4363d31 442 pad.tone(NOTE_B4,0.5);
yfkwok 5:bc0691d02fd5 443 wait(0.25);
yfkwok 5:bc0691d02fd5 444 lcd.clear();
yfkwok 5:bc0691d02fd5 445 lcd.refresh();
yfkwok 5:bc0691d02fd5 446 wait(0.25);
yfkwok 4:5bc9c4363d31 447 congrats(pad, lcd, cha, year);
yfkwok 4:5bc9c4363d31 448 }
yfkwok 4:5bc9c4363d31 449
yfkwok 4:5bc9c4363d31 450 void Score::congrats(Gamepad &pad, N5110 &lcd, int cha, int year)
yfkwok 4:5bc9c4363d31 451 {
yfkwok 4:5bc9c4363d31 452 draw_cong(lcd, cha, year);
yfkwok 4:5bc9c4363d31 453 // bar 1
yfkwok 4:5bc9c4363d31 454 pad.tone(NOTE_A5,0.4);
yfkwok 4:5bc9c4363d31 455 wait(0.4);
yfkwok 4:5bc9c4363d31 456 pad.tone(NOTE_F5,0.4);
yfkwok 4:5bc9c4363d31 457 wait(0.4);
yfkwok 4:5bc9c4363d31 458 pad.tone(NOTE_C5,0.8);
yfkwok 4:5bc9c4363d31 459 wait(0.8);
yfkwok 4:5bc9c4363d31 460 // bar 2
yfkwok 4:5bc9c4363d31 461 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 462 wait(0.4/3);
yfkwok 4:5bc9c4363d31 463 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 464 wait(0.4/3);
yfkwok 4:5bc9c4363d31 465 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 466 wait(0.4/3);
yfkwok 4:5bc9c4363d31 467 pad.tone(NOTE_G5,0.4/3);
yfkwok 4:5bc9c4363d31 468 wait(0.4/3);
yfkwok 4:5bc9c4363d31 469 pad.tone(NOTE_G5,0.4/3);
yfkwok 4:5bc9c4363d31 470 wait(0.4/3);
yfkwok 4:5bc9c4363d31 471 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 472 wait(0.4/3);
yfkwok 4:5bc9c4363d31 473 pad.tone(NOTE_A5,0.8);
yfkwok 4:5bc9c4363d31 474 wait(0.8);
yfkwok 4:5bc9c4363d31 475 }
yfkwok 4:5bc9c4363d31 476
yfkwok 4:5bc9c4363d31 477 void Score::draw(N5110 &lcd, int cha, int year)
yfkwok 4:5bc9c4363d31 478 {
yfkwok 4:5bc9c4363d31 479 lcd.clear();
yfkwok 4:5bc9c4363d31 480 if(year == 1 && cha == 1) {_s1.evo_1_sprite(lcd);}
yfkwok 4:5bc9c4363d31 481 else if (year == 2 && cha == 1) {_s1.evo_2_sprite(lcd);}
yfkwok 4:5bc9c4363d31 482 lcd.refresh();
yfkwok 4:5bc9c4363d31 483 }
yfkwok 4:5bc9c4363d31 484
yfkwok 4:5bc9c4363d31 485 void Score::draw_cong(N5110 &lcd, int cha, int year)
yfkwok 4:5bc9c4363d31 486 {
yfkwok 4:5bc9c4363d31 487 lcd.clear();
yfkwok 4:5bc9c4363d31 488 if(year == 0 && cha == 1) {_s1.evo_1_cong(lcd);}
yfkwok 4:5bc9c4363d31 489 else if(year == 1 && cha == 1) {_s1.evo_2_cong(lcd);}
yfkwok 4:5bc9c4363d31 490 else if (year == 2 && cha == 1) {_s1.evo_3_cong(lcd);}
yfkwok 4:5bc9c4363d31 491 lcd.refresh();
yfkwok 5:bc0691d02fd5 492 }
yfkwok 5:bc0691d02fd5 493
yfkwok 5:bc0691d02fd5 494 void Score::win(Gamepad &pad)
yfkwok 5:bc0691d02fd5 495 {
yfkwok 5:bc0691d02fd5 496 // bar 1
yfkwok 5:bc0691d02fd5 497 pad.tone(NOTE_E5,0.33/4);
yfkwok 5:bc0691d02fd5 498 wait(0.33/4);
yfkwok 5:bc0691d02fd5 499 pad.tone(NOTE_FS5,0.33/4);
yfkwok 5:bc0691d02fd5 500 wait(0.33/4);
yfkwok 5:bc0691d02fd5 501 pad.tone(NOTE_GS5,0.33/4);
yfkwok 5:bc0691d02fd5 502 wait(0.33/4);
yfkwok 5:bc0691d02fd5 503 pad.tone(NOTE_A5,0.33/4);
yfkwok 5:bc0691d02fd5 504 wait(0.33/4);
yfkwok 5:bc0691d02fd5 505 pad.tone(NOTE_B5,0.33*3);
yfkwok 5:bc0691d02fd5 506 wait(0.33*3);
yfkwok 5:bc0691d02fd5 507 // bar 2
yfkwok 5:bc0691d02fd5 508 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 509 wait(0.33/2);
yfkwok 5:bc0691d02fd5 510 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 511 wait(0.33/2);
yfkwok 5:bc0691d02fd5 512 pad.tone(NOTE_GS4,0.25/2);
yfkwok 5:bc0691d02fd5 513 wait(0.33/2);
yfkwok 5:bc0691d02fd5 514 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 515 wait(0.33/2);
yfkwok 5:bc0691d02fd5 516 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 517 wait(0.33/2);
yfkwok 5:bc0691d02fd5 518 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 519 wait(0.33/2);
yfkwok 5:bc0691d02fd5 520 pad.tone(NOTE_B4,0.25);
yfkwok 5:bc0691d02fd5 521 wait(0.33);
yfkwok 5:bc0691d02fd5 522 // bar 3
yfkwok 5:bc0691d02fd5 523 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 524 wait(0.33/2);
yfkwok 5:bc0691d02fd5 525 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 526 wait(0.33/2);
yfkwok 5:bc0691d02fd5 527 pad.tone(NOTE_CS5,0.25);
yfkwok 5:bc0691d02fd5 528 wait(0.33);
yfkwok 5:bc0691d02fd5 529 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 530 wait(0.33/2);
yfkwok 5:bc0691d02fd5 531 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 532 wait(0.33/2);
yfkwok 5:bc0691d02fd5 533 pad.tone(NOTE_B4,0.25);
yfkwok 5:bc0691d02fd5 534 wait(0.33);
yfkwok 5:bc0691d02fd5 535 // bar 4
yfkwok 5:bc0691d02fd5 536 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 537 wait(0.33/2);
yfkwok 5:bc0691d02fd5 538 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 539 wait(0.33/2);
yfkwok 5:bc0691d02fd5 540 pad.tone(NOTE_GS4,0.25/2);
yfkwok 5:bc0691d02fd5 541 wait(0.33/2);
yfkwok 5:bc0691d02fd5 542 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 543 wait(0.33/2);
yfkwok 5:bc0691d02fd5 544 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 545 wait(0.33/2);
yfkwok 5:bc0691d02fd5 546 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 547 wait(0.33/2);
yfkwok 5:bc0691d02fd5 548 pad.tone(NOTE_B4,0.25);
yfkwok 5:bc0691d02fd5 549 wait(0.33);
yfkwok 5:bc0691d02fd5 550 // bar 5
yfkwok 5:bc0691d02fd5 551 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 552 wait(0.33/2);
yfkwok 5:bc0691d02fd5 553 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 554 wait(0.33/2);
yfkwok 5:bc0691d02fd5 555 pad.tone(NOTE_CS5,0.25);
yfkwok 5:bc0691d02fd5 556 wait(0.33);
yfkwok 5:bc0691d02fd5 557 pad.tone(NOTE_B4,0.25);
yfkwok 5:bc0691d02fd5 558 wait(0.6);
yfkwok 5:bc0691d02fd5 559 }
yfkwok 5:bc0691d02fd5 560
yfkwok 5:bc0691d02fd5 561 void Score::exam_intro(Gamepad &pad)
yfkwok 5:bc0691d02fd5 562 {
yfkwok 5:bc0691d02fd5 563 // bar 1
yfkwok 5:bc0691d02fd5 564 pad.tone(NOTE_F5,0.33/4);
yfkwok 5:bc0691d02fd5 565 wait(0.33/4);
yfkwok 5:bc0691d02fd5 566 pad.tone(NOTE_E5,0.33/4);
yfkwok 5:bc0691d02fd5 567 wait(0.33/4);
yfkwok 5:bc0691d02fd5 568 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 569 wait(0.33/4);
yfkwok 5:bc0691d02fd5 570 pad.tone(NOTE_E5,0.33/4);
yfkwok 5:bc0691d02fd5 571 wait(0.33/4);
yfkwok 5:bc0691d02fd5 572 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 573 wait(0.33/4);
yfkwok 5:bc0691d02fd5 574 pad.tone(NOTE_D5,0.33/4);
yfkwok 5:bc0691d02fd5 575 wait(0.33/4);
yfkwok 5:bc0691d02fd5 576 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 577 wait(0.33/4);
yfkwok 5:bc0691d02fd5 578 pad.tone(NOTE_D5,0.33/4);
yfkwok 5:bc0691d02fd5 579 wait(0.33/4);
yfkwok 5:bc0691d02fd5 580 pad.tone(NOTE_CS5,0.33/4);
yfkwok 5:bc0691d02fd5 581 wait(0.33/4);
yfkwok 5:bc0691d02fd5 582 pad.tone(NOTE_D5,0.33/4);
yfkwok 5:bc0691d02fd5 583 wait(0.33/4);
yfkwok 5:bc0691d02fd5 584 pad.tone(NOTE_CS5,0.33/4);
yfkwok 5:bc0691d02fd5 585 wait(0.33/4);
yfkwok 5:bc0691d02fd5 586 pad.tone(NOTE_C5,0.33/4);
yfkwok 5:bc0691d02fd5 587 wait(0.33/4);
yfkwok 5:bc0691d02fd5 588 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 589 wait(0.33/4);
yfkwok 5:bc0691d02fd5 590 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 591 wait(0.33/4);
yfkwok 5:bc0691d02fd5 592 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 593 wait(0.33/4);
yfkwok 5:bc0691d02fd5 594 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 595 wait(0.33/4);
yfkwok 5:bc0691d02fd5 596 // bar 2
yfkwok 5:bc0691d02fd5 597 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 598 wait(0.33/4);
yfkwok 5:bc0691d02fd5 599 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 600 wait(0.33/4);
yfkwok 5:bc0691d02fd5 601 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 602 wait(0.33/4);
yfkwok 5:bc0691d02fd5 603 pad.tone(NOTE_F4,0.33/4);
yfkwok 5:bc0691d02fd5 604 wait(0.33/4);
yfkwok 5:bc0691d02fd5 605 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 606 wait(0.33/4);
yfkwok 5:bc0691d02fd5 607 pad.tone(NOTE_F4,0.33/4);
yfkwok 5:bc0691d02fd5 608 wait(0.33/4);
yfkwok 5:bc0691d02fd5 609 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 610 wait(0.33/4);
yfkwok 5:bc0691d02fd5 611 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 612 wait(0.33/4);
yfkwok 5:bc0691d02fd5 613 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 614 wait(0.33/4);
yfkwok 5:bc0691d02fd5 615 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 616 wait(0.33/4);
yfkwok 5:bc0691d02fd5 617 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 618 wait(0.33/4);
yfkwok 5:bc0691d02fd5 619 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 620 wait(0.33/4);
yfkwok 5:bc0691d02fd5 621 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 622 wait(0.33/4);
yfkwok 5:bc0691d02fd5 623 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 624 wait(0.33/4);
yfkwok 5:bc0691d02fd5 625 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 626 wait(0.33/4);
yfkwok 5:bc0691d02fd5 627 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 628 wait(0.33/4);
yfkwok 5:bc0691d02fd5 629 }
yfkwok 5:bc0691d02fd5 630
yfkwok 5:bc0691d02fd5 631 void Score::gym(Gamepad &pad, bool state)
yfkwok 5:bc0691d02fd5 632 {
yfkwok 5:bc0691d02fd5 633 // bar 1
yfkwok 5:bc0691d02fd5 634 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 635 wait(0.33/2);
yfkwok 5:bc0691d02fd5 636 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 637 wait(0.33/2);
yfkwok 5:bc0691d02fd5 638 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 639 wait(0.33/2);
yfkwok 5:bc0691d02fd5 640 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 641 wait(0.33/2);
yfkwok 5:bc0691d02fd5 642 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 643 wait(0.33/2);
yfkwok 5:bc0691d02fd5 644 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 645 wait(0.33/2);
yfkwok 5:bc0691d02fd5 646 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 647 wait(0.33/2);
yfkwok 5:bc0691d02fd5 648 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 649 wait(0.33/2);
yfkwok 5:bc0691d02fd5 650 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 651 wait(0.33/2);
yfkwok 5:bc0691d02fd5 652 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 653 wait(0.33/2);
yfkwok 5:bc0691d02fd5 654 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 655 wait(0.33/2);
yfkwok 5:bc0691d02fd5 656 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 657 wait(0.33/2);
yfkwok 5:bc0691d02fd5 658 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 659 wait(0.33/2);
yfkwok 5:bc0691d02fd5 660 pad.tone(NOTE_C5,0.33*1.5);
yfkwok 5:bc0691d02fd5 661 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 662 // bar 3
yfkwok 5:bc0691d02fd5 663 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 664 wait(0.33/2);
yfkwok 5:bc0691d02fd5 665 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 666 wait(0.33/2);
yfkwok 5:bc0691d02fd5 667 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 668 wait(0.33/2);
yfkwok 5:bc0691d02fd5 669 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 670 wait(0.33/2);
yfkwok 5:bc0691d02fd5 671 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 672 wait(0.33/2);
yfkwok 5:bc0691d02fd5 673 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 674 wait(0.33/2);
yfkwok 5:bc0691d02fd5 675 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 676 wait(0.33/2);
yfkwok 5:bc0691d02fd5 677 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 678 wait(0.33/2);
yfkwok 5:bc0691d02fd5 679 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 680 wait(0.33/2);
yfkwok 5:bc0691d02fd5 681 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 682 wait(0.33/2);
yfkwok 5:bc0691d02fd5 683 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 684 wait(0.33/2);
yfkwok 5:bc0691d02fd5 685 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 686 wait(0.33/2);
yfkwok 5:bc0691d02fd5 687 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 688 wait(0.33/2);
yfkwok 5:bc0691d02fd5 689 pad.tone(NOTE_AS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 690 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 691 // bar 5
yfkwok 5:bc0691d02fd5 692 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 693 wait(0.33/2);
yfkwok 5:bc0691d02fd5 694 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 695 wait(0.33/2);
yfkwok 5:bc0691d02fd5 696 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 697 wait(0.33/2);
yfkwok 5:bc0691d02fd5 698 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 699 wait(0.33/2);
yfkwok 5:bc0691d02fd5 700 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 701 wait(0.33/2);
yfkwok 5:bc0691d02fd5 702 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 703 wait(0.33/2);
yfkwok 5:bc0691d02fd5 704 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 705 wait(0.33/2);
yfkwok 5:bc0691d02fd5 706 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 707 wait(0.33/2);
yfkwok 5:bc0691d02fd5 708 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 709 wait(0.33/2);
yfkwok 5:bc0691d02fd5 710 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 711 wait(0.33/2);
yfkwok 5:bc0691d02fd5 712 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 713 wait(0.33/2);
yfkwok 5:bc0691d02fd5 714 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 715 wait(0.33/2);
yfkwok 5:bc0691d02fd5 716 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 717 wait(0.33/2);
yfkwok 5:bc0691d02fd5 718 pad.tone(NOTE_C5,0.33*1.5);
yfkwok 5:bc0691d02fd5 719 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 720 // bar 7
yfkwok 5:bc0691d02fd5 721 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 722 wait(0.33/2);
yfkwok 5:bc0691d02fd5 723 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 724 wait(0.33/2);
yfkwok 5:bc0691d02fd5 725 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 726 wait(0.33/2);
yfkwok 5:bc0691d02fd5 727 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 728 wait(0.33/2);
yfkwok 5:bc0691d02fd5 729 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 730 wait(0.33/2);
yfkwok 5:bc0691d02fd5 731 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 732 wait(0.33/2);
yfkwok 5:bc0691d02fd5 733 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 734 wait(0.33/2);
yfkwok 5:bc0691d02fd5 735 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 736 wait(0.33/2);
yfkwok 5:bc0691d02fd5 737 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 738 wait(0.33/2);
yfkwok 5:bc0691d02fd5 739 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 740 wait(0.33/2);
yfkwok 5:bc0691d02fd5 741 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 742 wait(0.33/2);
yfkwok 5:bc0691d02fd5 743 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 744 wait(0.33/2);
yfkwok 5:bc0691d02fd5 745 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 746 wait(0.33/2);
yfkwok 5:bc0691d02fd5 747 pad.tone(NOTE_CS5,0.33*1.5);
yfkwok 5:bc0691d02fd5 748 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 749 while(state){
yfkwok 5:bc0691d02fd5 750 // bar 8
yfkwok 5:bc0691d02fd5 751 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 752 wait(0.33);
yfkwok 5:bc0691d02fd5 753 pad.tone(NOTE_CS5,0.33);
yfkwok 5:bc0691d02fd5 754 wait(0.33);
yfkwok 5:bc0691d02fd5 755 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 756 wait(0.33);
yfkwok 5:bc0691d02fd5 757 pad.tone(NOTE_E5,0.33/2);
yfkwok 5:bc0691d02fd5 758 wait(0.33/2);
yfkwok 5:bc0691d02fd5 759 pad.tone(NOTE_FS5,0.33);
yfkwok 5:bc0691d02fd5 760 wait(0.33);
yfkwok 5:bc0691d02fd5 761 pad.tone(NOTE_E5,0.33);
yfkwok 5:bc0691d02fd5 762 wait(0.33);
yfkwok 5:bc0691d02fd5 763 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 764 wait(0.33/2);
yfkwok 5:bc0691d02fd5 765 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 766 wait(0.33/2);
yfkwok 5:bc0691d02fd5 767 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 768 wait(0.33/2);
yfkwok 5:bc0691d02fd5 769 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 770 wait(0.33/2);
yfkwok 5:bc0691d02fd5 771 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 772 wait(0.33/2);
yfkwok 5:bc0691d02fd5 773 // bar 10
yfkwok 5:bc0691d02fd5 774 pad.tone(NOTE_A4,0.33*2);
yfkwok 5:bc0691d02fd5 775 wait(0.33*2);
yfkwok 5:bc0691d02fd5 776 pad.tone(NOTE_CS5,0.33*2);
yfkwok 5:bc0691d02fd5 777 wait(0.33*2);
yfkwok 5:bc0691d02fd5 778 pad.tone(NOTE_E5,0.33*2);
yfkwok 5:bc0691d02fd5 779 wait(0.33*2);
yfkwok 5:bc0691d02fd5 780 pad.tone(NOTE_CS5,0.33*2);
yfkwok 5:bc0691d02fd5 781 wait(0.33*2);
yfkwok 5:bc0691d02fd5 782 // bar 8
yfkwok 5:bc0691d02fd5 783 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 784 wait(0.33);
yfkwok 5:bc0691d02fd5 785 pad.tone(NOTE_CS5,0.33);
yfkwok 5:bc0691d02fd5 786 wait(0.33);
yfkwok 5:bc0691d02fd5 787 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 788 wait(0.33);
yfkwok 5:bc0691d02fd5 789 pad.tone(NOTE_E5,0.33/2);
yfkwok 5:bc0691d02fd5 790 wait(0.33/2);
yfkwok 5:bc0691d02fd5 791 pad.tone(NOTE_FS5,0.33);
yfkwok 5:bc0691d02fd5 792 wait(0.33);
yfkwok 5:bc0691d02fd5 793 pad.tone(NOTE_E5,0.33);
yfkwok 5:bc0691d02fd5 794 wait(0.33);
yfkwok 5:bc0691d02fd5 795 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 796 wait(0.33/2);
yfkwok 5:bc0691d02fd5 797 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 798 wait(0.33/2);
yfkwok 5:bc0691d02fd5 799 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 800 wait(0.33/2);
yfkwok 5:bc0691d02fd5 801 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 802 wait(0.33/2);
yfkwok 5:bc0691d02fd5 803 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 804 wait(0.33/2);
yfkwok 5:bc0691d02fd5 805 // bar 12
yfkwok 5:bc0691d02fd5 806 pad.tone(NOTE_CS5,0.33*2);
yfkwok 5:bc0691d02fd5 807 wait(0.33*2);
yfkwok 5:bc0691d02fd5 808 pad.tone(NOTE_B4,0.33*2);
yfkwok 5:bc0691d02fd5 809 wait(0.33*2);
yfkwok 5:bc0691d02fd5 810 pad.tone(NOTE_A4,0.33*2);
yfkwok 5:bc0691d02fd5 811 wait(0.33*2);
yfkwok 5:bc0691d02fd5 812 pad.tone(NOTE_E5,0.33);
yfkwok 5:bc0691d02fd5 813 wait(0.33);
yfkwok 5:bc0691d02fd5 814 pad.tone(NOTE_E5,0.33/2);
yfkwok 5:bc0691d02fd5 815 wait(0.33/2);
yfkwok 5:bc0691d02fd5 816 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 817 wait(0.33/2);
yfkwok 5:bc0691d02fd5 818 // bar 14
yfkwok 5:bc0691d02fd5 819 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 820 wait(0.33/2);
yfkwok 5:bc0691d02fd5 821 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 822 wait(0.33/2);
yfkwok 5:bc0691d02fd5 823 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 824 wait(0.33/4);
yfkwok 5:bc0691d02fd5 825 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 826 wait(0.33/4);
yfkwok 5:bc0691d02fd5 827 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 828 wait(0.33/4);
yfkwok 5:bc0691d02fd5 829 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 830 wait(0.33/4);
yfkwok 5:bc0691d02fd5 831 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 832 wait(0.33/2);
yfkwok 5:bc0691d02fd5 833 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 834 wait(0.33/2);
yfkwok 5:bc0691d02fd5 835 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 836 wait(0.33/4);
yfkwok 5:bc0691d02fd5 837 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 838 wait(0.33/4);
yfkwok 5:bc0691d02fd5 839 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 840 wait(0.33/4);
yfkwok 5:bc0691d02fd5 841 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 842 wait(0.33/4);
yfkwok 5:bc0691d02fd5 843 // bar 15
yfkwok 5:bc0691d02fd5 844 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 845 wait(0.33/2);
yfkwok 5:bc0691d02fd5 846 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 847 wait(0.33/2);
yfkwok 5:bc0691d02fd5 848 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 849 wait(0.33/4);
yfkwok 5:bc0691d02fd5 850 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 851 wait(0.33/4);
yfkwok 5:bc0691d02fd5 852 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 853 wait(0.33/4);
yfkwok 5:bc0691d02fd5 854 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 855 wait(0.33/4);
yfkwok 5:bc0691d02fd5 856 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 857 wait(0.33/2);
yfkwok 5:bc0691d02fd5 858 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 859 wait(0.33/4);
yfkwok 5:bc0691d02fd5 860 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 861 wait(0.33/4);
yfkwok 5:bc0691d02fd5 862 pad.tone(NOTE_E4,0.25/2);
yfkwok 5:bc0691d02fd5 863 wait(0.33/2);
yfkwok 5:bc0691d02fd5 864 pad.tone(NOTE_F4,0.25/2);
yfkwok 5:bc0691d02fd5 865 wait(0.33/2);
yfkwok 5:bc0691d02fd5 866 // bar 16
yfkwok 5:bc0691d02fd5 867 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 868 wait(0.33/4);
yfkwok 5:bc0691d02fd5 869 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 870 wait(0.33/4);
yfkwok 5:bc0691d02fd5 871 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 872 wait(0.33/4);
yfkwok 5:bc0691d02fd5 873 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 874 wait(0.33/4);
yfkwok 5:bc0691d02fd5 875 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 876 wait(0.33/2);
yfkwok 5:bc0691d02fd5 877 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 878 wait(0.33/2);
yfkwok 5:bc0691d02fd5 879 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 880 wait(0.33/4);
yfkwok 5:bc0691d02fd5 881 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 882 wait(0.33/4);
yfkwok 5:bc0691d02fd5 883 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 884 wait(0.33/4);
yfkwok 5:bc0691d02fd5 885 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 886 wait(0.33/4);
yfkwok 5:bc0691d02fd5 887 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 888 wait(0.33/2);
yfkwok 5:bc0691d02fd5 889 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 890 wait(0.33/2);
yfkwok 5:bc0691d02fd5 891 // bar 17
yfkwok 5:bc0691d02fd5 892 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 893 wait(0.33/4);
yfkwok 5:bc0691d02fd5 894 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 895 wait(0.33/4);
yfkwok 5:bc0691d02fd5 896 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 897 wait(0.33/4);
yfkwok 5:bc0691d02fd5 898 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 899 wait(0.33/4);
yfkwok 5:bc0691d02fd5 900 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 901 wait(0.33/2);
yfkwok 5:bc0691d02fd5 902 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 903 wait(0.33/2);
yfkwok 5:bc0691d02fd5 904 pad.tone(NOTE_D4,0.33/2);
yfkwok 5:bc0691d02fd5 905 wait(0.33/2);
yfkwok 5:bc0691d02fd5 906 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 907 wait(0.33/2);
yfkwok 5:bc0691d02fd5 908 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 909 wait(0.33/2);
yfkwok 5:bc0691d02fd5 910 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 911 wait(0.33/2);
yfkwok 5:bc0691d02fd5 912 // bar 18
yfkwok 5:bc0691d02fd5 913 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 914 wait(0.33/2);
yfkwok 5:bc0691d02fd5 915 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 916 wait(0.33/2);
yfkwok 5:bc0691d02fd5 917 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 918 wait(0.33);
yfkwok 5:bc0691d02fd5 919 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 920 wait(0.33);
yfkwok 5:bc0691d02fd5 921 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 922 wait(0.33);
yfkwok 5:bc0691d02fd5 923 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 924 wait(0.33);
yfkwok 5:bc0691d02fd5 925 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 926 wait(0.33);
yfkwok 5:bc0691d02fd5 927 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 928 wait(0.33);
yfkwok 5:bc0691d02fd5 929 pad.tone(NOTE_G4,0.33);
yfkwok 5:bc0691d02fd5 930 wait(0.33);
yfkwok 5:bc0691d02fd5 931 // bar 19
yfkwok 5:bc0691d02fd5 932 pad.tone(NOTE_FS4,0.33*4);
yfkwok 5:bc0691d02fd5 933 wait(0.33);
yfkwok 5:bc0691d02fd5 934 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 935 wait(0.33/4);
yfkwok 5:bc0691d02fd5 936 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 937 wait(0.33/4);
yfkwok 5:bc0691d02fd5 938 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 939 wait(0.33/4);
yfkwok 5:bc0691d02fd5 940 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 941 wait(0.33/4);
yfkwok 5:bc0691d02fd5 942 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 943 wait(0.33/4);
yfkwok 5:bc0691d02fd5 944 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 945 wait(0.33/4);
yfkwok 5:bc0691d02fd5 946 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 947 wait(0.33/4);
yfkwok 5:bc0691d02fd5 948 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 949 wait(0.33/4);
yfkwok 5:bc0691d02fd5 950 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 951 wait(0.33/4);
yfkwok 5:bc0691d02fd5 952 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 953 wait(0.33/4);
yfkwok 5:bc0691d02fd5 954 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 955 wait(0.33/4);
yfkwok 5:bc0691d02fd5 956 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 957 wait(0.33/4);
yfkwok 5:bc0691d02fd5 958 // bar 20
yfkwok 5:bc0691d02fd5 959 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 960 wait(0.33/4);
yfkwok 5:bc0691d02fd5 961 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 962 wait(0.33/4);
yfkwok 5:bc0691d02fd5 963 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 964 wait(0.33/4);
yfkwok 5:bc0691d02fd5 965 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 966 wait(0.33/4);
yfkwok 5:bc0691d02fd5 967 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 968 wait(0.33/4);
yfkwok 5:bc0691d02fd5 969 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 970 wait(0.33/4);
yfkwok 5:bc0691d02fd5 971 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 972 wait(0.33/4);
yfkwok 5:bc0691d02fd5 973 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 974 wait(0.33/4);
yfkwok 5:bc0691d02fd5 975 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 976 wait(0.33/4);
yfkwok 5:bc0691d02fd5 977 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 978 wait(0.33/4);
yfkwok 5:bc0691d02fd5 979 pad.tone(NOTE_AS3,0.33/4);
yfkwok 5:bc0691d02fd5 980 wait(0.33/4);
yfkwok 5:bc0691d02fd5 981 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 982 wait(0.33/4);
yfkwok 5:bc0691d02fd5 983 pad.tone(NOTE_GS3,0.33/4);
yfkwok 5:bc0691d02fd5 984 wait(0.33/4);
yfkwok 5:bc0691d02fd5 985 pad.tone(NOTE_G3,0.33/4);
yfkwok 5:bc0691d02fd5 986 wait(0.33/4);
yfkwok 5:bc0691d02fd5 987 pad.tone(NOTE_FS3,0.33/4);
yfkwok 5:bc0691d02fd5 988 wait(0.33/4);
yfkwok 5:bc0691d02fd5 989 pad.tone(NOTE_G3,0.33/4);
yfkwok 5:bc0691d02fd5 990 wait(0.33/4);
yfkwok 5:bc0691d02fd5 991 // bar 22
yfkwok 5:bc0691d02fd5 992 pad.tone(NOTE_GS3,0.33/4);
yfkwok 5:bc0691d02fd5 993 wait(0.33/4);
yfkwok 5:bc0691d02fd5 994 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 995 wait(0.33/4);
yfkwok 5:bc0691d02fd5 996 pad.tone(NOTE_AS3,0.33/4);
yfkwok 5:bc0691d02fd5 997 wait(0.33/4);
yfkwok 5:bc0691d02fd5 998 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 999 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1000 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 1001 wait(0.33);
yfkwok 5:bc0691d02fd5 1002 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 1003 wait(0.33);
yfkwok 5:bc0691d02fd5 1004 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 1005 wait(0.33);
yfkwok 5:bc0691d02fd5 1006 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 1007 wait(0.33);
yfkwok 5:bc0691d02fd5 1008 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 1009 wait(0.33);
yfkwok 5:bc0691d02fd5 1010 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 1011 wait(0.33);
yfkwok 5:bc0691d02fd5 1012 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 1013 wait(0.33);
yfkwok 5:bc0691d02fd5 1014 pad.tone(NOTE_B4,0.33*4);
yfkwok 5:bc0691d02fd5 1015 wait(0.33*4);
yfkwok 5:bc0691d02fd5 1016 pad.tone(NOTE_FS5,0.33*4);
yfkwok 5:bc0691d02fd5 1017 wait(0.33*4);
yfkwok 5:bc0691d02fd5 1018 // bar 26
yfkwok 5:bc0691d02fd5 1019 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1020 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1021 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1022 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1023 pad.tone(NOTE_A4,0.33*3);
yfkwok 5:bc0691d02fd5 1024 wait(0.33*3);
yfkwok 5:bc0691d02fd5 1025 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1026 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1027 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1028 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1029 pad.tone(NOTE_CS5,0.33*3);
yfkwok 5:bc0691d02fd5 1030 wait(0.33*3);
yfkwok 5:bc0691d02fd5 1031 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1032 wait(0.33);
yfkwok 5:bc0691d02fd5 1033 pad.tone(NOTE_CS4,0.33);
yfkwok 5:bc0691d02fd5 1034 wait(0.33);
yfkwok 5:bc0691d02fd5 1035 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1036 wait(0.33);
yfkwok 5:bc0691d02fd5 1037 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 1038 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1039 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1040 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1041 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1042 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1043 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1044 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1045 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1046 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1047 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1048 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1049 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 1050 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1051 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1052 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1053 pad.tone(NOTE_DS4,0.33/2);
yfkwok 5:bc0691d02fd5 1054 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1055 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1056 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1057 // bar 30
yfkwok 5:bc0691d02fd5 1058 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1059 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1060 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1061 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1062 pad.tone(NOTE_CS5,0.33*3);
yfkwok 5:bc0691d02fd5 1063 wait(0.33*3);
yfkwok 5:bc0691d02fd5 1064 pad.tone(NOTE_A5,0.33*2);
yfkwok 5:bc0691d02fd5 1065 wait(0.33*2);
yfkwok 5:bc0691d02fd5 1066 pad.tone(NOTE_E5,0.33*2);
yfkwok 5:bc0691d02fd5 1067 wait(0.33*2);
yfkwok 5:bc0691d02fd5 1068 // bar 32
yfkwok 5:bc0691d02fd5 1069 pad.tone(NOTE_B5,0.33*4);
yfkwok 5:bc0691d02fd5 1070 wait(0.33);
yfkwok 5:bc0691d02fd5 1071 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1072 wait(0.33);
yfkwok 5:bc0691d02fd5 1073 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1074 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1075 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1076 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1077 pad.tone(NOTE_FS4,0.33);
yfkwok 5:bc0691d02fd5 1078 wait(0.33);
yfkwok 5:bc0691d02fd5 1079 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 1080 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1081 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1082 wait(0.33);
yfkwok 5:bc0691d02fd5 1083 pad.tone(NOTE_E4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1084 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1085 // bar 34
yfkwok 5:bc0691d02fd5 1086 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1087 wait(0.33);
yfkwok 5:bc0691d02fd5 1088 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1089 wait(0.33);
yfkwok 5:bc0691d02fd5 1090 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1091 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1092 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1093 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1094 pad.tone(NOTE_FS4,0.33);
yfkwok 5:bc0691d02fd5 1095 wait(0.33);
yfkwok 5:bc0691d02fd5 1096 pad.tone(NOTE_A4,0.33/2);
yfkwok 5:bc0691d02fd5 1097 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1098 pad.tone(NOTE_GS4,0.33);
yfkwok 5:bc0691d02fd5 1099 wait(0.33);
yfkwok 5:bc0691d02fd5 1100 pad.tone(NOTE_G4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1101 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1102 pad.tone(NOTE_B4,0.33/4);
yfkwok 5:bc0691d02fd5 1103 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1104 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 1105 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1106 pad.tone(NOTE_FS5,0.33/4);
yfkwok 5:bc0691d02fd5 1107 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1108 pad.tone(NOTE_AS5,0.33/4);
yfkwok 5:bc0691d02fd5 1109 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1110 // bar 36
yfkwok 5:bc0691d02fd5 1111 pad.tone(NOTE_B5,0.33*4);
yfkwok 5:bc0691d02fd5 1112 wait(0.33);
yfkwok 5:bc0691d02fd5 1113 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1114 wait(0.33);
yfkwok 5:bc0691d02fd5 1115 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1116 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1117 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1118 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1119 pad.tone(NOTE_FS5,0.33);
yfkwok 5:bc0691d02fd5 1120 wait(0.33);
yfkwok 5:bc0691d02fd5 1121 pad.tone(NOTE_DS4,0.33/2);
yfkwok 5:bc0691d02fd5 1122 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1123 pad.tone(NOTE_CS4,0.33);
yfkwok 5:bc0691d02fd5 1124 wait(0.33);
yfkwok 5:bc0691d02fd5 1125 pad.tone(NOTE_C4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1126 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1127 // bar 38
yfkwok 5:bc0691d02fd5 1128 pad.tone(NOTE_A5,0.33*4);
yfkwok 5:bc0691d02fd5 1129 wait(0.33);
yfkwok 5:bc0691d02fd5 1130 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1131 wait(0.33);
yfkwok 5:bc0691d02fd5 1132 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1133 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1134 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1135 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1136 pad.tone(NOTE_CS6,0.33);
yfkwok 5:bc0691d02fd5 1137 wait(0.33);
yfkwok 5:bc0691d02fd5 1138 pad.tone(NOTE_A4,0.33/2);
yfkwok 5:bc0691d02fd5 1139 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1140 pad.tone(NOTE_GS4,0.33);
yfkwok 5:bc0691d02fd5 1141 wait(0.33);
yfkwok 5:bc0691d02fd5 1142 pad.tone(NOTE_A5,0.33*1.5);
yfkwok 5:bc0691d02fd5 1143 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1144 }
yfkwok 2:464c7e62d97d 1145 }