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:
Thu Apr 11 15:27:58 2019 +0000
Revision:
7:d9850dcf59e7
Parent:
6:9104692d6c8c
11/4/2019 - Formatting

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 6:9104692d6c8c 364 int x = 84;
yfkwok 6:9104692d6c8c 365 int y = 12;
yfkwok 4:5bc9c4363d31 366 // bar 1
yfkwok 6:9104692d6c8c 367 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 368 pad.tone(NOTE_G5,0.5/4);
yfkwok 4:5bc9c4363d31 369 wait(0.5/4);
yfkwok 4:5bc9c4363d31 370 pad.tone(NOTE_D5,0.5/4);
yfkwok 4:5bc9c4363d31 371 wait(0.5/4);
yfkwok 4:5bc9c4363d31 372 pad.tone(NOTE_G5,0.5/4);
yfkwok 4:5bc9c4363d31 373 wait(0.5/4);
yfkwok 4:5bc9c4363d31 374 pad.tone(NOTE_D5,0.5/4);
yfkwok 4:5bc9c4363d31 375 wait(0.5/4);
yfkwok 4:5bc9c4363d31 376 wait(1.5);
yfkwok 4:5bc9c4363d31 377 // bar 2
yfkwok 4:5bc9c4363d31 378
yfkwok 4:5bc9c4363d31 379 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 380 wait(0.5);
yfkwok 4:5bc9c4363d31 381 lcd.clear();
yfkwok 4:5bc9c4363d31 382 lcd.refresh();
yfkwok 4:5bc9c4363d31 383 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 384 wait(0.25);
yfkwok 6:9104692d6c8c 385 draw(lcd, cha, year, x, y);
yfkwok 5:bc0691d02fd5 386 wait(0.25);
yfkwok 4:5bc9c4363d31 387 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 388 wait(0.25);
yfkwok 5:bc0691d02fd5 389 lcd.clear();
yfkwok 5:bc0691d02fd5 390 lcd.refresh();
yfkwok 5:bc0691d02fd5 391 wait(0.25);
yfkwok 4:5bc9c4363d31 392 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 393 wait(0.5);
yfkwok 6:9104692d6c8c 394 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 395 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 396 wait(0.25);
yfkwok 5:bc0691d02fd5 397 lcd.clear();
yfkwok 5:bc0691d02fd5 398 lcd.refresh();
yfkwok 5:bc0691d02fd5 399 wait(0.25);
yfkwok 4:5bc9c4363d31 400 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 401 wait(0.25);
yfkwok 6:9104692d6c8c 402 draw(lcd, cha, year, x, y);
yfkwok 5:bc0691d02fd5 403 wait(0.25);
yfkwok 4:5bc9c4363d31 404 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 405 wait(0.5);
yfkwok 4:5bc9c4363d31 406 lcd.clear();
yfkwok 4:5bc9c4363d31 407 lcd.refresh();
yfkwok 4:5bc9c4363d31 408 pad.tone(NOTE_A4,0.5);
yfkwok 4:5bc9c4363d31 409 wait(0.5);
yfkwok 4:5bc9c4363d31 410 // bar 4
yfkwok 6:9104692d6c8c 411 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 412 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 413 wait(0.5);
yfkwok 4:5bc9c4363d31 414 lcd.clear();
yfkwok 4:5bc9c4363d31 415 lcd.refresh();
yfkwok 4:5bc9c4363d31 416 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 417 wait(0.5);
yfkwok 6:9104692d6c8c 418 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 419 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 420 wait(0.5);
yfkwok 4:5bc9c4363d31 421 lcd.clear();
yfkwok 4:5bc9c4363d31 422 lcd.refresh();
yfkwok 4:5bc9c4363d31 423 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 424 wait(0.5);
yfkwok 6:9104692d6c8c 425 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 426 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 427 wait(0.25);
yfkwok 5:bc0691d02fd5 428 lcd.clear();
yfkwok 5:bc0691d02fd5 429 lcd.refresh();
yfkwok 5:bc0691d02fd5 430 wait(0.25);
yfkwok 6:9104692d6c8c 431 draw(lcd, cha, year, x, y);
yfkwok 5:bc0691d02fd5 432 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 433 wait(0.25);
yfkwok 4:5bc9c4363d31 434 lcd.clear();
yfkwok 4:5bc9c4363d31 435 lcd.refresh();
yfkwok 5:bc0691d02fd5 436 wait(0.25);
yfkwok 6:9104692d6c8c 437 draw(lcd, cha, year, x, y);
yfkwok 5:bc0691d02fd5 438 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 439 wait(0.25);
yfkwok 5:bc0691d02fd5 440 lcd.clear();
yfkwok 5:bc0691d02fd5 441 lcd.refresh();
yfkwok 5:bc0691d02fd5 442 wait(0.25);
yfkwok 6:9104692d6c8c 443 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 444 pad.tone(NOTE_B4,0.5);
yfkwok 5:bc0691d02fd5 445 wait(0.25);
yfkwok 5:bc0691d02fd5 446 lcd.clear();
yfkwok 5:bc0691d02fd5 447 lcd.refresh();
yfkwok 5:bc0691d02fd5 448 wait(0.25);
yfkwok 6:9104692d6c8c 449 year = year + 1;
yfkwok 7:d9850dcf59e7 450 if(year == 3){
yfkwok 7:d9850dcf59e7 451 while(x > -20){
yfkwok 6:9104692d6c8c 452 draw(lcd, cha, year, x, y);
yfkwok 6:9104692d6c8c 453 x = x - 31;
yfkwok 6:9104692d6c8c 454 wait(0.125);
yfkwok 6:9104692d6c8c 455 }
yfkwok 6:9104692d6c8c 456 }
yfkwok 6:9104692d6c8c 457 year = year - 1;
yfkwok 4:5bc9c4363d31 458 congrats(pad, lcd, cha, year);
yfkwok 4:5bc9c4363d31 459 }
yfkwok 4:5bc9c4363d31 460
yfkwok 4:5bc9c4363d31 461 void Score::congrats(Gamepad &pad, N5110 &lcd, int cha, int year)
yfkwok 4:5bc9c4363d31 462 {
yfkwok 4:5bc9c4363d31 463 draw_cong(lcd, cha, year);
yfkwok 4:5bc9c4363d31 464 // bar 1
yfkwok 4:5bc9c4363d31 465 pad.tone(NOTE_A5,0.4);
yfkwok 4:5bc9c4363d31 466 wait(0.4);
yfkwok 4:5bc9c4363d31 467 pad.tone(NOTE_F5,0.4);
yfkwok 4:5bc9c4363d31 468 wait(0.4);
yfkwok 4:5bc9c4363d31 469 pad.tone(NOTE_C5,0.8);
yfkwok 4:5bc9c4363d31 470 wait(0.8);
yfkwok 4:5bc9c4363d31 471 // bar 2
yfkwok 4:5bc9c4363d31 472 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 473 wait(0.4/3);
yfkwok 4:5bc9c4363d31 474 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 475 wait(0.4/3);
yfkwok 4:5bc9c4363d31 476 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 477 wait(0.4/3);
yfkwok 4:5bc9c4363d31 478 pad.tone(NOTE_G5,0.4/3);
yfkwok 4:5bc9c4363d31 479 wait(0.4/3);
yfkwok 4:5bc9c4363d31 480 pad.tone(NOTE_G5,0.4/3);
yfkwok 4:5bc9c4363d31 481 wait(0.4/3);
yfkwok 4:5bc9c4363d31 482 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 483 wait(0.4/3);
yfkwok 4:5bc9c4363d31 484 pad.tone(NOTE_A5,0.8);
yfkwok 4:5bc9c4363d31 485 wait(0.8);
yfkwok 4:5bc9c4363d31 486 }
yfkwok 4:5bc9c4363d31 487
yfkwok 6:9104692d6c8c 488 void Score::draw(N5110 &lcd, int cha, int year, int x, int y)
yfkwok 4:5bc9c4363d31 489 {
yfkwok 4:5bc9c4363d31 490 lcd.clear();
yfkwok 4:5bc9c4363d31 491 if(year == 1 && cha == 1) {_s1.evo_1_sprite(lcd);}
yfkwok 6:9104692d6c8c 492 else if(year == 1 && cha == 2) {_c1.evo_1_sprite(lcd);}
yfkwok 7:d9850dcf59e7 493 else if(year == 2 && cha == 1) {_s1.evo_2_sprite(lcd);}
yfkwok 7:d9850dcf59e7 494 else if(year == 2 && cha == 2) {_c1.evo_2_sprite(lcd);}
yfkwok 7:d9850dcf59e7 495 else if(year == 3 && cha == 1) {_s1.evo_3_sprite(lcd, x, y);}
yfkwok 7:d9850dcf59e7 496 else if(year == 3 && cha == 2) {_c1.evo_3_sprite(lcd, x, y);}
yfkwok 4:5bc9c4363d31 497 lcd.refresh();
yfkwok 4:5bc9c4363d31 498 }
yfkwok 4:5bc9c4363d31 499
yfkwok 4:5bc9c4363d31 500 void Score::draw_cong(N5110 &lcd, int cha, int year)
yfkwok 4:5bc9c4363d31 501 {
yfkwok 4:5bc9c4363d31 502 lcd.clear();
yfkwok 4:5bc9c4363d31 503 if(year == 0 && cha == 1) {_s1.evo_1_cong(lcd);}
yfkwok 6:9104692d6c8c 504 else if(year == 0 && cha == 2) {_c1.evo_2_cong(lcd);}
yfkwok 4:5bc9c4363d31 505 else if(year == 1 && cha == 1) {_s1.evo_2_cong(lcd);}
yfkwok 6:9104692d6c8c 506 else if(year == 1 && cha == 2) {_c1.evo_2_cong(lcd);}
yfkwok 7:d9850dcf59e7 507 else if(year == 2 && cha == 1) {_s1.evo_3_cong(lcd);}
yfkwok 7:d9850dcf59e7 508 else if(year == 2 && cha == 2) {_c1.evo_3_cong(lcd);}
yfkwok 4:5bc9c4363d31 509 lcd.refresh();
yfkwok 5:bc0691d02fd5 510 }
yfkwok 5:bc0691d02fd5 511
yfkwok 5:bc0691d02fd5 512 void Score::win(Gamepad &pad)
yfkwok 5:bc0691d02fd5 513 {
yfkwok 5:bc0691d02fd5 514 // bar 1
yfkwok 5:bc0691d02fd5 515 pad.tone(NOTE_E5,0.33/4);
yfkwok 5:bc0691d02fd5 516 wait(0.33/4);
yfkwok 5:bc0691d02fd5 517 pad.tone(NOTE_FS5,0.33/4);
yfkwok 5:bc0691d02fd5 518 wait(0.33/4);
yfkwok 5:bc0691d02fd5 519 pad.tone(NOTE_GS5,0.33/4);
yfkwok 5:bc0691d02fd5 520 wait(0.33/4);
yfkwok 5:bc0691d02fd5 521 pad.tone(NOTE_A5,0.33/4);
yfkwok 5:bc0691d02fd5 522 wait(0.33/4);
yfkwok 5:bc0691d02fd5 523 pad.tone(NOTE_B5,0.33*3);
yfkwok 5:bc0691d02fd5 524 wait(0.33*3);
yfkwok 5:bc0691d02fd5 525 // bar 2
yfkwok 5:bc0691d02fd5 526 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 527 wait(0.33/2);
yfkwok 5:bc0691d02fd5 528 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 529 wait(0.33/2);
yfkwok 5:bc0691d02fd5 530 pad.tone(NOTE_GS4,0.25/2);
yfkwok 5:bc0691d02fd5 531 wait(0.33/2);
yfkwok 5:bc0691d02fd5 532 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 533 wait(0.33/2);
yfkwok 5:bc0691d02fd5 534 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 535 wait(0.33/2);
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_B4,0.25);
yfkwok 5:bc0691d02fd5 539 wait(0.33);
yfkwok 5:bc0691d02fd5 540 // bar 3
yfkwok 5:bc0691d02fd5 541 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 542 wait(0.33/2);
yfkwok 5:bc0691d02fd5 543 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 544 wait(0.33/2);
yfkwok 5:bc0691d02fd5 545 pad.tone(NOTE_CS5,0.25);
yfkwok 5:bc0691d02fd5 546 wait(0.33);
yfkwok 5:bc0691d02fd5 547 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 548 wait(0.33/2);
yfkwok 5:bc0691d02fd5 549 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 550 wait(0.33/2);
yfkwok 5:bc0691d02fd5 551 pad.tone(NOTE_B4,0.25);
yfkwok 5:bc0691d02fd5 552 wait(0.33);
yfkwok 5:bc0691d02fd5 553 // bar 4
yfkwok 5:bc0691d02fd5 554 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 555 wait(0.33/2);
yfkwok 5:bc0691d02fd5 556 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 557 wait(0.33/2);
yfkwok 5:bc0691d02fd5 558 pad.tone(NOTE_GS4,0.25/2);
yfkwok 5:bc0691d02fd5 559 wait(0.33/2);
yfkwok 5:bc0691d02fd5 560 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 561 wait(0.33/2);
yfkwok 5:bc0691d02fd5 562 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 563 wait(0.33/2);
yfkwok 5:bc0691d02fd5 564 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 565 wait(0.33/2);
yfkwok 5:bc0691d02fd5 566 pad.tone(NOTE_B4,0.25);
yfkwok 5:bc0691d02fd5 567 wait(0.33);
yfkwok 5:bc0691d02fd5 568 // bar 5
yfkwok 5:bc0691d02fd5 569 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 570 wait(0.33/2);
yfkwok 5:bc0691d02fd5 571 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 572 wait(0.33/2);
yfkwok 5:bc0691d02fd5 573 pad.tone(NOTE_CS5,0.25);
yfkwok 5:bc0691d02fd5 574 wait(0.33);
yfkwok 5:bc0691d02fd5 575 pad.tone(NOTE_B4,0.25);
yfkwok 5:bc0691d02fd5 576 wait(0.6);
yfkwok 5:bc0691d02fd5 577 }
yfkwok 5:bc0691d02fd5 578
yfkwok 5:bc0691d02fd5 579 void Score::exam_intro(Gamepad &pad)
yfkwok 5:bc0691d02fd5 580 {
yfkwok 5:bc0691d02fd5 581 // bar 1
yfkwok 5:bc0691d02fd5 582 pad.tone(NOTE_F5,0.33/4);
yfkwok 5:bc0691d02fd5 583 wait(0.33/4);
yfkwok 5:bc0691d02fd5 584 pad.tone(NOTE_E5,0.33/4);
yfkwok 5:bc0691d02fd5 585 wait(0.33/4);
yfkwok 5:bc0691d02fd5 586 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 587 wait(0.33/4);
yfkwok 5:bc0691d02fd5 588 pad.tone(NOTE_E5,0.33/4);
yfkwok 5:bc0691d02fd5 589 wait(0.33/4);
yfkwok 5:bc0691d02fd5 590 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 591 wait(0.33/4);
yfkwok 5:bc0691d02fd5 592 pad.tone(NOTE_D5,0.33/4);
yfkwok 5:bc0691d02fd5 593 wait(0.33/4);
yfkwok 5:bc0691d02fd5 594 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 595 wait(0.33/4);
yfkwok 5:bc0691d02fd5 596 pad.tone(NOTE_D5,0.33/4);
yfkwok 5:bc0691d02fd5 597 wait(0.33/4);
yfkwok 5:bc0691d02fd5 598 pad.tone(NOTE_CS5,0.33/4);
yfkwok 5:bc0691d02fd5 599 wait(0.33/4);
yfkwok 5:bc0691d02fd5 600 pad.tone(NOTE_D5,0.33/4);
yfkwok 5:bc0691d02fd5 601 wait(0.33/4);
yfkwok 5:bc0691d02fd5 602 pad.tone(NOTE_CS5,0.33/4);
yfkwok 5:bc0691d02fd5 603 wait(0.33/4);
yfkwok 5:bc0691d02fd5 604 pad.tone(NOTE_C5,0.33/4);
yfkwok 5:bc0691d02fd5 605 wait(0.33/4);
yfkwok 5:bc0691d02fd5 606 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 607 wait(0.33/4);
yfkwok 5:bc0691d02fd5 608 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 609 wait(0.33/4);
yfkwok 5:bc0691d02fd5 610 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 611 wait(0.33/4);
yfkwok 5:bc0691d02fd5 612 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 613 wait(0.33/4);
yfkwok 5:bc0691d02fd5 614 // bar 2
yfkwok 5:bc0691d02fd5 615 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 616 wait(0.33/4);
yfkwok 5:bc0691d02fd5 617 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 618 wait(0.33/4);
yfkwok 5:bc0691d02fd5 619 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 620 wait(0.33/4);
yfkwok 5:bc0691d02fd5 621 pad.tone(NOTE_F4,0.33/4);
yfkwok 5:bc0691d02fd5 622 wait(0.33/4);
yfkwok 5:bc0691d02fd5 623 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 624 wait(0.33/4);
yfkwok 5:bc0691d02fd5 625 pad.tone(NOTE_F4,0.33/4);
yfkwok 5:bc0691d02fd5 626 wait(0.33/4);
yfkwok 5:bc0691d02fd5 627 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 628 wait(0.33/4);
yfkwok 5:bc0691d02fd5 629 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 630 wait(0.33/4);
yfkwok 5:bc0691d02fd5 631 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 632 wait(0.33/4);
yfkwok 5:bc0691d02fd5 633 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 634 wait(0.33/4);
yfkwok 5:bc0691d02fd5 635 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 636 wait(0.33/4);
yfkwok 5:bc0691d02fd5 637 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 638 wait(0.33/4);
yfkwok 5:bc0691d02fd5 639 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 640 wait(0.33/4);
yfkwok 5:bc0691d02fd5 641 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 642 wait(0.33/4);
yfkwok 5:bc0691d02fd5 643 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 644 wait(0.33/4);
yfkwok 5:bc0691d02fd5 645 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 646 wait(0.33/4);
yfkwok 5:bc0691d02fd5 647 }
yfkwok 5:bc0691d02fd5 648
yfkwok 5:bc0691d02fd5 649 void Score::gym(Gamepad &pad, bool state)
yfkwok 5:bc0691d02fd5 650 {
yfkwok 5:bc0691d02fd5 651 // bar 1
yfkwok 5:bc0691d02fd5 652 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 653 wait(0.33/2);
yfkwok 5:bc0691d02fd5 654 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 655 wait(0.33/2);
yfkwok 5:bc0691d02fd5 656 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 657 wait(0.33/2);
yfkwok 5:bc0691d02fd5 658 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 659 wait(0.33/2);
yfkwok 5:bc0691d02fd5 660 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 661 wait(0.33/2);
yfkwok 5:bc0691d02fd5 662 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 663 wait(0.33/2);
yfkwok 5:bc0691d02fd5 664 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 665 wait(0.33/2);
yfkwok 5:bc0691d02fd5 666 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 667 wait(0.33/2);
yfkwok 5:bc0691d02fd5 668 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 669 wait(0.33/2);
yfkwok 5:bc0691d02fd5 670 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 671 wait(0.33/2);
yfkwok 5:bc0691d02fd5 672 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 673 wait(0.33/2);
yfkwok 5:bc0691d02fd5 674 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 675 wait(0.33/2);
yfkwok 5:bc0691d02fd5 676 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 677 wait(0.33/2);
yfkwok 5:bc0691d02fd5 678 pad.tone(NOTE_C5,0.33*1.5);
yfkwok 5:bc0691d02fd5 679 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 680 // bar 3
yfkwok 5:bc0691d02fd5 681 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 682 wait(0.33/2);
yfkwok 5:bc0691d02fd5 683 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 684 wait(0.33/2);
yfkwok 5:bc0691d02fd5 685 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 686 wait(0.33/2);
yfkwok 5:bc0691d02fd5 687 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 688 wait(0.33/2);
yfkwok 5:bc0691d02fd5 689 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 690 wait(0.33/2);
yfkwok 5:bc0691d02fd5 691 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 692 wait(0.33/2);
yfkwok 5:bc0691d02fd5 693 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 694 wait(0.33/2);
yfkwok 5:bc0691d02fd5 695 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 696 wait(0.33/2);
yfkwok 5:bc0691d02fd5 697 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 698 wait(0.33/2);
yfkwok 5:bc0691d02fd5 699 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 700 wait(0.33/2);
yfkwok 5:bc0691d02fd5 701 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 702 wait(0.33/2);
yfkwok 5:bc0691d02fd5 703 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 704 wait(0.33/2);
yfkwok 5:bc0691d02fd5 705 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 706 wait(0.33/2);
yfkwok 5:bc0691d02fd5 707 pad.tone(NOTE_AS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 708 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 709 // bar 5
yfkwok 5:bc0691d02fd5 710 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 711 wait(0.33/2);
yfkwok 5:bc0691d02fd5 712 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 713 wait(0.33/2);
yfkwok 5:bc0691d02fd5 714 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 715 wait(0.33/2);
yfkwok 5:bc0691d02fd5 716 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 717 wait(0.33/2);
yfkwok 5:bc0691d02fd5 718 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 719 wait(0.33/2);
yfkwok 5:bc0691d02fd5 720 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 721 wait(0.33/2);
yfkwok 5:bc0691d02fd5 722 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 723 wait(0.33/2);
yfkwok 5:bc0691d02fd5 724 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 725 wait(0.33/2);
yfkwok 5:bc0691d02fd5 726 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 727 wait(0.33/2);
yfkwok 5:bc0691d02fd5 728 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 729 wait(0.33/2);
yfkwok 5:bc0691d02fd5 730 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 731 wait(0.33/2);
yfkwok 5:bc0691d02fd5 732 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 733 wait(0.33/2);
yfkwok 5:bc0691d02fd5 734 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 735 wait(0.33/2);
yfkwok 5:bc0691d02fd5 736 pad.tone(NOTE_C5,0.33*1.5);
yfkwok 5:bc0691d02fd5 737 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 738 // bar 7
yfkwok 5:bc0691d02fd5 739 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 740 wait(0.33/2);
yfkwok 5:bc0691d02fd5 741 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 742 wait(0.33/2);
yfkwok 5:bc0691d02fd5 743 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 744 wait(0.33/2);
yfkwok 5:bc0691d02fd5 745 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 746 wait(0.33/2);
yfkwok 5:bc0691d02fd5 747 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 748 wait(0.33/2);
yfkwok 5:bc0691d02fd5 749 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 750 wait(0.33/2);
yfkwok 5:bc0691d02fd5 751 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 752 wait(0.33/2);
yfkwok 5:bc0691d02fd5 753 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 754 wait(0.33/2);
yfkwok 5:bc0691d02fd5 755 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 756 wait(0.33/2);
yfkwok 5:bc0691d02fd5 757 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 758 wait(0.33/2);
yfkwok 5:bc0691d02fd5 759 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 760 wait(0.33/2);
yfkwok 5:bc0691d02fd5 761 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 762 wait(0.33/2);
yfkwok 5:bc0691d02fd5 763 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 764 wait(0.33/2);
yfkwok 5:bc0691d02fd5 765 pad.tone(NOTE_CS5,0.33*1.5);
yfkwok 5:bc0691d02fd5 766 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 767 while(state){
yfkwok 5:bc0691d02fd5 768 // bar 8
yfkwok 5:bc0691d02fd5 769 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 770 wait(0.33);
yfkwok 5:bc0691d02fd5 771 pad.tone(NOTE_CS5,0.33);
yfkwok 5:bc0691d02fd5 772 wait(0.33);
yfkwok 5:bc0691d02fd5 773 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 774 wait(0.33);
yfkwok 5:bc0691d02fd5 775 pad.tone(NOTE_E5,0.33/2);
yfkwok 5:bc0691d02fd5 776 wait(0.33/2);
yfkwok 5:bc0691d02fd5 777 pad.tone(NOTE_FS5,0.33);
yfkwok 5:bc0691d02fd5 778 wait(0.33);
yfkwok 5:bc0691d02fd5 779 pad.tone(NOTE_E5,0.33);
yfkwok 5:bc0691d02fd5 780 wait(0.33);
yfkwok 5:bc0691d02fd5 781 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 782 wait(0.33/2);
yfkwok 5:bc0691d02fd5 783 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 784 wait(0.33/2);
yfkwok 5:bc0691d02fd5 785 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 786 wait(0.33/2);
yfkwok 5:bc0691d02fd5 787 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 788 wait(0.33/2);
yfkwok 5:bc0691d02fd5 789 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 790 wait(0.33/2);
yfkwok 5:bc0691d02fd5 791 // bar 10
yfkwok 5:bc0691d02fd5 792 pad.tone(NOTE_A4,0.33*2);
yfkwok 5:bc0691d02fd5 793 wait(0.33*2);
yfkwok 5:bc0691d02fd5 794 pad.tone(NOTE_CS5,0.33*2);
yfkwok 5:bc0691d02fd5 795 wait(0.33*2);
yfkwok 5:bc0691d02fd5 796 pad.tone(NOTE_E5,0.33*2);
yfkwok 5:bc0691d02fd5 797 wait(0.33*2);
yfkwok 5:bc0691d02fd5 798 pad.tone(NOTE_CS5,0.33*2);
yfkwok 5:bc0691d02fd5 799 wait(0.33*2);
yfkwok 5:bc0691d02fd5 800 // bar 8
yfkwok 5:bc0691d02fd5 801 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 802 wait(0.33);
yfkwok 5:bc0691d02fd5 803 pad.tone(NOTE_CS5,0.33);
yfkwok 5:bc0691d02fd5 804 wait(0.33);
yfkwok 5:bc0691d02fd5 805 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 806 wait(0.33);
yfkwok 5:bc0691d02fd5 807 pad.tone(NOTE_E5,0.33/2);
yfkwok 5:bc0691d02fd5 808 wait(0.33/2);
yfkwok 5:bc0691d02fd5 809 pad.tone(NOTE_FS5,0.33);
yfkwok 5:bc0691d02fd5 810 wait(0.33);
yfkwok 5:bc0691d02fd5 811 pad.tone(NOTE_E5,0.33);
yfkwok 5:bc0691d02fd5 812 wait(0.33);
yfkwok 5:bc0691d02fd5 813 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 814 wait(0.33/2);
yfkwok 5:bc0691d02fd5 815 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 816 wait(0.33/2);
yfkwok 5:bc0691d02fd5 817 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 818 wait(0.33/2);
yfkwok 5:bc0691d02fd5 819 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 820 wait(0.33/2);
yfkwok 5:bc0691d02fd5 821 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 822 wait(0.33/2);
yfkwok 5:bc0691d02fd5 823 // bar 12
yfkwok 5:bc0691d02fd5 824 pad.tone(NOTE_CS5,0.33*2);
yfkwok 5:bc0691d02fd5 825 wait(0.33*2);
yfkwok 5:bc0691d02fd5 826 pad.tone(NOTE_B4,0.33*2);
yfkwok 5:bc0691d02fd5 827 wait(0.33*2);
yfkwok 5:bc0691d02fd5 828 pad.tone(NOTE_A4,0.33*2);
yfkwok 5:bc0691d02fd5 829 wait(0.33*2);
yfkwok 5:bc0691d02fd5 830 pad.tone(NOTE_E5,0.33);
yfkwok 5:bc0691d02fd5 831 wait(0.33);
yfkwok 5:bc0691d02fd5 832 pad.tone(NOTE_E5,0.33/2);
yfkwok 5:bc0691d02fd5 833 wait(0.33/2);
yfkwok 5:bc0691d02fd5 834 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 835 wait(0.33/2);
yfkwok 5:bc0691d02fd5 836 // bar 14
yfkwok 5:bc0691d02fd5 837 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 838 wait(0.33/2);
yfkwok 5:bc0691d02fd5 839 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 840 wait(0.33/2);
yfkwok 5:bc0691d02fd5 841 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 842 wait(0.33/4);
yfkwok 5:bc0691d02fd5 843 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 844 wait(0.33/4);
yfkwok 5:bc0691d02fd5 845 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 846 wait(0.33/4);
yfkwok 5:bc0691d02fd5 847 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 848 wait(0.33/4);
yfkwok 5:bc0691d02fd5 849 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 850 wait(0.33/2);
yfkwok 5:bc0691d02fd5 851 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 852 wait(0.33/2);
yfkwok 5:bc0691d02fd5 853 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 854 wait(0.33/4);
yfkwok 5:bc0691d02fd5 855 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 856 wait(0.33/4);
yfkwok 5:bc0691d02fd5 857 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 858 wait(0.33/4);
yfkwok 5:bc0691d02fd5 859 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 860 wait(0.33/4);
yfkwok 5:bc0691d02fd5 861 // bar 15
yfkwok 5:bc0691d02fd5 862 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 863 wait(0.33/2);
yfkwok 5:bc0691d02fd5 864 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 865 wait(0.33/2);
yfkwok 5:bc0691d02fd5 866 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 867 wait(0.33/4);
yfkwok 5:bc0691d02fd5 868 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 869 wait(0.33/4);
yfkwok 5:bc0691d02fd5 870 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 871 wait(0.33/4);
yfkwok 5:bc0691d02fd5 872 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 873 wait(0.33/4);
yfkwok 5:bc0691d02fd5 874 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 875 wait(0.33/2);
yfkwok 5:bc0691d02fd5 876 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 877 wait(0.33/4);
yfkwok 5:bc0691d02fd5 878 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 879 wait(0.33/4);
yfkwok 5:bc0691d02fd5 880 pad.tone(NOTE_E4,0.25/2);
yfkwok 5:bc0691d02fd5 881 wait(0.33/2);
yfkwok 5:bc0691d02fd5 882 pad.tone(NOTE_F4,0.25/2);
yfkwok 5:bc0691d02fd5 883 wait(0.33/2);
yfkwok 5:bc0691d02fd5 884 // bar 16
yfkwok 5:bc0691d02fd5 885 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 886 wait(0.33/4);
yfkwok 5:bc0691d02fd5 887 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 888 wait(0.33/4);
yfkwok 5:bc0691d02fd5 889 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 890 wait(0.33/4);
yfkwok 5:bc0691d02fd5 891 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 892 wait(0.33/4);
yfkwok 5:bc0691d02fd5 893 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 894 wait(0.33/2);
yfkwok 5:bc0691d02fd5 895 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 896 wait(0.33/2);
yfkwok 5:bc0691d02fd5 897 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 898 wait(0.33/4);
yfkwok 5:bc0691d02fd5 899 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 900 wait(0.33/4);
yfkwok 5:bc0691d02fd5 901 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 902 wait(0.33/4);
yfkwok 5:bc0691d02fd5 903 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 904 wait(0.33/4);
yfkwok 5:bc0691d02fd5 905 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 906 wait(0.33/2);
yfkwok 5:bc0691d02fd5 907 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 908 wait(0.33/2);
yfkwok 5:bc0691d02fd5 909 // bar 17
yfkwok 5:bc0691d02fd5 910 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 911 wait(0.33/4);
yfkwok 5:bc0691d02fd5 912 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 913 wait(0.33/4);
yfkwok 5:bc0691d02fd5 914 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 915 wait(0.33/4);
yfkwok 5:bc0691d02fd5 916 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 917 wait(0.33/4);
yfkwok 5:bc0691d02fd5 918 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 919 wait(0.33/2);
yfkwok 5:bc0691d02fd5 920 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 921 wait(0.33/2);
yfkwok 5:bc0691d02fd5 922 pad.tone(NOTE_D4,0.33/2);
yfkwok 5:bc0691d02fd5 923 wait(0.33/2);
yfkwok 5:bc0691d02fd5 924 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 925 wait(0.33/2);
yfkwok 5:bc0691d02fd5 926 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 927 wait(0.33/2);
yfkwok 5:bc0691d02fd5 928 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 929 wait(0.33/2);
yfkwok 5:bc0691d02fd5 930 // bar 18
yfkwok 5:bc0691d02fd5 931 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 932 wait(0.33/2);
yfkwok 5:bc0691d02fd5 933 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 934 wait(0.33/2);
yfkwok 5:bc0691d02fd5 935 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 936 wait(0.33);
yfkwok 5:bc0691d02fd5 937 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 938 wait(0.33);
yfkwok 5:bc0691d02fd5 939 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 940 wait(0.33);
yfkwok 5:bc0691d02fd5 941 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 942 wait(0.33);
yfkwok 5:bc0691d02fd5 943 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 944 wait(0.33);
yfkwok 5:bc0691d02fd5 945 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 946 wait(0.33);
yfkwok 5:bc0691d02fd5 947 pad.tone(NOTE_G4,0.33);
yfkwok 5:bc0691d02fd5 948 wait(0.33);
yfkwok 5:bc0691d02fd5 949 // bar 19
yfkwok 5:bc0691d02fd5 950 pad.tone(NOTE_FS4,0.33*4);
yfkwok 5:bc0691d02fd5 951 wait(0.33);
yfkwok 5:bc0691d02fd5 952 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 953 wait(0.33/4);
yfkwok 5:bc0691d02fd5 954 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 955 wait(0.33/4);
yfkwok 5:bc0691d02fd5 956 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 957 wait(0.33/4);
yfkwok 5:bc0691d02fd5 958 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 959 wait(0.33/4);
yfkwok 5:bc0691d02fd5 960 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 961 wait(0.33/4);
yfkwok 5:bc0691d02fd5 962 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 963 wait(0.33/4);
yfkwok 5:bc0691d02fd5 964 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 965 wait(0.33/4);
yfkwok 5:bc0691d02fd5 966 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 967 wait(0.33/4);
yfkwok 5:bc0691d02fd5 968 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 969 wait(0.33/4);
yfkwok 5:bc0691d02fd5 970 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 971 wait(0.33/4);
yfkwok 5:bc0691d02fd5 972 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 973 wait(0.33/4);
yfkwok 5:bc0691d02fd5 974 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 975 wait(0.33/4);
yfkwok 5:bc0691d02fd5 976 // bar 20
yfkwok 5:bc0691d02fd5 977 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 978 wait(0.33/4);
yfkwok 5:bc0691d02fd5 979 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 980 wait(0.33/4);
yfkwok 5:bc0691d02fd5 981 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 982 wait(0.33/4);
yfkwok 5:bc0691d02fd5 983 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 984 wait(0.33/4);
yfkwok 5:bc0691d02fd5 985 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 986 wait(0.33/4);
yfkwok 5:bc0691d02fd5 987 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 988 wait(0.33/4);
yfkwok 5:bc0691d02fd5 989 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 990 wait(0.33/4);
yfkwok 5:bc0691d02fd5 991 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 992 wait(0.33/4);
yfkwok 5:bc0691d02fd5 993 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 994 wait(0.33/4);
yfkwok 5:bc0691d02fd5 995 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 996 wait(0.33/4);
yfkwok 5:bc0691d02fd5 997 pad.tone(NOTE_AS3,0.33/4);
yfkwok 5:bc0691d02fd5 998 wait(0.33/4);
yfkwok 5:bc0691d02fd5 999 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 1000 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1001 pad.tone(NOTE_GS3,0.33/4);
yfkwok 5:bc0691d02fd5 1002 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1003 pad.tone(NOTE_G3,0.33/4);
yfkwok 5:bc0691d02fd5 1004 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1005 pad.tone(NOTE_FS3,0.33/4);
yfkwok 5:bc0691d02fd5 1006 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1007 pad.tone(NOTE_G3,0.33/4);
yfkwok 5:bc0691d02fd5 1008 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1009 // bar 22
yfkwok 5:bc0691d02fd5 1010 pad.tone(NOTE_GS3,0.33/4);
yfkwok 5:bc0691d02fd5 1011 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1012 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 1013 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1014 pad.tone(NOTE_AS3,0.33/4);
yfkwok 5:bc0691d02fd5 1015 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1016 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 1017 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1018 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 1019 wait(0.33);
yfkwok 5:bc0691d02fd5 1020 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 1021 wait(0.33);
yfkwok 5:bc0691d02fd5 1022 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 1023 wait(0.33);
yfkwok 5:bc0691d02fd5 1024 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 1025 wait(0.33);
yfkwok 5:bc0691d02fd5 1026 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 1027 wait(0.33);
yfkwok 5:bc0691d02fd5 1028 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 1029 wait(0.33);
yfkwok 5:bc0691d02fd5 1030 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 1031 wait(0.33);
yfkwok 5:bc0691d02fd5 1032 pad.tone(NOTE_B4,0.33*4);
yfkwok 5:bc0691d02fd5 1033 wait(0.33*4);
yfkwok 5:bc0691d02fd5 1034 pad.tone(NOTE_FS5,0.33*4);
yfkwok 5:bc0691d02fd5 1035 wait(0.33*4);
yfkwok 5:bc0691d02fd5 1036 // bar 26
yfkwok 5:bc0691d02fd5 1037 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1038 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1039 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1040 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1041 pad.tone(NOTE_A4,0.33*3);
yfkwok 5:bc0691d02fd5 1042 wait(0.33*3);
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_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1046 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1047 pad.tone(NOTE_CS5,0.33*3);
yfkwok 5:bc0691d02fd5 1048 wait(0.33*3);
yfkwok 5:bc0691d02fd5 1049 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1050 wait(0.33);
yfkwok 5:bc0691d02fd5 1051 pad.tone(NOTE_CS4,0.33);
yfkwok 5:bc0691d02fd5 1052 wait(0.33);
yfkwok 5:bc0691d02fd5 1053 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1054 wait(0.33);
yfkwok 5:bc0691d02fd5 1055 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 1056 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1057 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1058 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1059 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1060 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1061 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1062 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1063 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1064 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1065 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1066 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1067 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 1068 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1069 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1070 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1071 pad.tone(NOTE_DS4,0.33/2);
yfkwok 5:bc0691d02fd5 1072 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1073 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1074 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1075 // bar 30
yfkwok 5:bc0691d02fd5 1076 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1077 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1078 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1079 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1080 pad.tone(NOTE_CS5,0.33*3);
yfkwok 5:bc0691d02fd5 1081 wait(0.33*3);
yfkwok 5:bc0691d02fd5 1082 pad.tone(NOTE_A5,0.33*2);
yfkwok 5:bc0691d02fd5 1083 wait(0.33*2);
yfkwok 5:bc0691d02fd5 1084 pad.tone(NOTE_E5,0.33*2);
yfkwok 5:bc0691d02fd5 1085 wait(0.33*2);
yfkwok 5:bc0691d02fd5 1086 // bar 32
yfkwok 5:bc0691d02fd5 1087 pad.tone(NOTE_B5,0.33*4);
yfkwok 5:bc0691d02fd5 1088 wait(0.33);
yfkwok 5:bc0691d02fd5 1089 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1090 wait(0.33);
yfkwok 5:bc0691d02fd5 1091 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1092 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1093 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1094 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1095 pad.tone(NOTE_FS4,0.33);
yfkwok 5:bc0691d02fd5 1096 wait(0.33);
yfkwok 5:bc0691d02fd5 1097 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 1098 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1099 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1100 wait(0.33);
yfkwok 5:bc0691d02fd5 1101 pad.tone(NOTE_E4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1102 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1103 // bar 34
yfkwok 5:bc0691d02fd5 1104 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1105 wait(0.33);
yfkwok 5:bc0691d02fd5 1106 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1107 wait(0.33);
yfkwok 5:bc0691d02fd5 1108 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1109 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1110 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1111 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1112 pad.tone(NOTE_FS4,0.33);
yfkwok 5:bc0691d02fd5 1113 wait(0.33);
yfkwok 5:bc0691d02fd5 1114 pad.tone(NOTE_A4,0.33/2);
yfkwok 5:bc0691d02fd5 1115 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1116 pad.tone(NOTE_GS4,0.33);
yfkwok 5:bc0691d02fd5 1117 wait(0.33);
yfkwok 5:bc0691d02fd5 1118 pad.tone(NOTE_G4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1119 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1120 pad.tone(NOTE_B4,0.33/4);
yfkwok 5:bc0691d02fd5 1121 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1122 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 1123 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1124 pad.tone(NOTE_FS5,0.33/4);
yfkwok 5:bc0691d02fd5 1125 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1126 pad.tone(NOTE_AS5,0.33/4);
yfkwok 5:bc0691d02fd5 1127 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1128 // bar 36
yfkwok 5:bc0691d02fd5 1129 pad.tone(NOTE_B5,0.33*4);
yfkwok 5:bc0691d02fd5 1130 wait(0.33);
yfkwok 5:bc0691d02fd5 1131 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1132 wait(0.33);
yfkwok 5:bc0691d02fd5 1133 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1134 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1135 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1136 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1137 pad.tone(NOTE_FS5,0.33);
yfkwok 5:bc0691d02fd5 1138 wait(0.33);
yfkwok 5:bc0691d02fd5 1139 pad.tone(NOTE_DS4,0.33/2);
yfkwok 5:bc0691d02fd5 1140 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1141 pad.tone(NOTE_CS4,0.33);
yfkwok 5:bc0691d02fd5 1142 wait(0.33);
yfkwok 5:bc0691d02fd5 1143 pad.tone(NOTE_C4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1144 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1145 // bar 38
yfkwok 5:bc0691d02fd5 1146 pad.tone(NOTE_A5,0.33*4);
yfkwok 5:bc0691d02fd5 1147 wait(0.33);
yfkwok 5:bc0691d02fd5 1148 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1149 wait(0.33);
yfkwok 5:bc0691d02fd5 1150 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1151 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1152 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1153 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1154 pad.tone(NOTE_CS6,0.33);
yfkwok 5:bc0691d02fd5 1155 wait(0.33);
yfkwok 5:bc0691d02fd5 1156 pad.tone(NOTE_A4,0.33/2);
yfkwok 5:bc0691d02fd5 1157 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1158 pad.tone(NOTE_GS4,0.33);
yfkwok 5:bc0691d02fd5 1159 wait(0.33);
yfkwok 5:bc0691d02fd5 1160 pad.tone(NOTE_A5,0.33*1.5);
yfkwok 5:bc0691d02fd5 1161 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1162 }
yfkwok 2:464c7e62d97d 1163 }