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:
Wed May 08 03:03:46 2019 +0000
Revision:
31:0d2c19a285f6
Parent:
17:5d8ff39a0e49
Child:
32:58def659f463
08/05/2019 - Graduation music and animation added, game loops back to title screen after graduation. Game finished, need to added final documentation.

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 17:5d8ff39a0e49 24 // Note: to break out of the looping of the title music
yfkwok 2:464c7e62d97d 25 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 26 pad.tone(NOTE_G4,0.4);
yfkwok 2:464c7e62d97d 27 wait(0.4);
yfkwok 2:464c7e62d97d 28 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 29 pad.tone(NOTE_G4,0.4);
yfkwok 2:464c7e62d97d 30 wait(0.4);
yfkwok 2:464c7e62d97d 31 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 32 wait(0.2);
yfkwok 2:464c7e62d97d 33 pad.tone(NOTE_G4,0.1);
yfkwok 2:464c7e62d97d 34 wait(0.1);
yfkwok 2:464c7e62d97d 35 pad.tone(NOTE_G4,0.1);
yfkwok 2:464c7e62d97d 36 wait(0.1);
yfkwok 2:464c7e62d97d 37 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 38 pad.tone(NOTE_G4,0.4);
yfkwok 2:464c7e62d97d 39 wait(0.4);
yfkwok 2:464c7e62d97d 40 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 41 pad.tone(NOTE_G4,0.4);
yfkwok 2:464c7e62d97d 42 wait(0.4);
yfkwok 2:464c7e62d97d 43 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 44 pad.tone(NOTE_G4,0.4);
yfkwok 2:464c7e62d97d 45 wait(0.4);
yfkwok 2:464c7e62d97d 46 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 47 pad.tone(NOTE_F4,0.4/3);
yfkwok 2:464c7e62d97d 48 wait(0.4/3);
yfkwok 2:464c7e62d97d 49 pad.tone(NOTE_F4,0.4/3);
yfkwok 2:464c7e62d97d 50 wait(0.4/3);
yfkwok 2:464c7e62d97d 51 pad.tone(NOTE_F4,0.4/3);
yfkwok 2:464c7e62d97d 52 wait(0.4/3);
yfkwok 2:464c7e62d97d 53 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 54 pad.tone(NOTE_F4,0.4/3);
yfkwok 2:464c7e62d97d 55 wait(0.4/3);
yfkwok 2:464c7e62d97d 56 pad.tone(NOTE_F4,0.4/3);
yfkwok 2:464c7e62d97d 57 wait(0.4/3);
yfkwok 2:464c7e62d97d 58 pad.tone(NOTE_FS4,0.4/3);
yfkwok 2:464c7e62d97d 59 wait(0.4/3);
yfkwok 2:464c7e62d97d 60 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 61
yfkwok 2:464c7e62d97d 62 while(1){
yfkwok 2:464c7e62d97d 63 //bar 4
yfkwok 2:464c7e62d97d 64 pad.tone(NOTE_G4,0.6);
yfkwok 2:464c7e62d97d 65 wait(0.6);
yfkwok 2:464c7e62d97d 66 pad.tone(NOTE_B4,0.2);
yfkwok 2:464c7e62d97d 67 wait(0.2);
yfkwok 2:464c7e62d97d 68 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 69 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 70 wait(0.8);
yfkwok 2:464c7e62d97d 71 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 72 pad.tone(NOTE_C4,0.6);
yfkwok 2:464c7e62d97d 73 wait(0.6);
yfkwok 2:464c7e62d97d 74 pad.tone(NOTE_F4,0.2);
yfkwok 2:464c7e62d97d 75 wait(0.2);
yfkwok 2:464c7e62d97d 76 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 77 pad.tone(NOTE_F5,0.6);
yfkwok 2:464c7e62d97d 78 wait(0.6);
yfkwok 2:464c7e62d97d 79 pad.tone(NOTE_E5,0.1);
yfkwok 2:464c7e62d97d 80 wait(0.1);
yfkwok 2:464c7e62d97d 81 pad.tone(NOTE_DS5,0.1);
yfkwok 2:464c7e62d97d 82 wait(0.1);
yfkwok 2:464c7e62d97d 83 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 84 //bar 6
yfkwok 2:464c7e62d97d 85 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 86 wait(0.8);
yfkwok 2:464c7e62d97d 87 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 88 pad.tone(NOTE_F4,0.6);
yfkwok 2:464c7e62d97d 89 wait(0.6);
yfkwok 2:464c7e62d97d 90 pad.tone(NOTE_E4,0.1);
yfkwok 2:464c7e62d97d 91 wait(0.1);
yfkwok 2:464c7e62d97d 92 pad.tone(NOTE_DS4,0.1);
yfkwok 2:464c7e62d97d 93 wait(0.1);
yfkwok 2:464c7e62d97d 94 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 95 pad.tone(NOTE_D4,0.8);
yfkwok 2:464c7e62d97d 96 wait(0.8);
yfkwok 2:464c7e62d97d 97 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 98 pad.tone(NOTE_C4,0.8/3);
yfkwok 2:464c7e62d97d 99 wait(0.8/3);
yfkwok 2:464c7e62d97d 100 pad.tone(NOTE_B3,0.8/3);
yfkwok 2:464c7e62d97d 101 wait(0.8/3);
yfkwok 2:464c7e62d97d 102 pad.tone(NOTE_C4,0.8/3);
yfkwok 2:464c7e62d97d 103 wait(0.8/3);
yfkwok 2:464c7e62d97d 104 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 105 pad.tone(NOTE_G4,0.6);
yfkwok 2:464c7e62d97d 106 wait(0.6);
yfkwok 2:464c7e62d97d 107 pad.tone(NOTE_B4,0.2);
yfkwok 2:464c7e62d97d 108 wait(0.2);
yfkwok 2:464c7e62d97d 109 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 110 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 111 wait(0.8);
yfkwok 2:464c7e62d97d 112 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 113 pad.tone(NOTE_C4,0.8);
yfkwok 2:464c7e62d97d 114 wait(0.8);
yfkwok 2:464c7e62d97d 115 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 116 pad.tone(NOTE_C5,0.8/3);
yfkwok 2:464c7e62d97d 117 wait(0.8/3);
yfkwok 2:464c7e62d97d 118 pad.tone(NOTE_B4,0.8/3);
yfkwok 2:464c7e62d97d 119 wait(0.8/3);
yfkwok 2:464c7e62d97d 120 pad.tone(NOTE_C5,0.8/3);
yfkwok 2:464c7e62d97d 121 wait(0.8/3);
yfkwok 2:464c7e62d97d 122 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 123 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 124 wait(0.8);
yfkwok 2:464c7e62d97d 125 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 126 pad.tone(NOTE_F4,0.8/3);
yfkwok 2:464c7e62d97d 127 wait(0.8/3);
yfkwok 2:464c7e62d97d 128 pad.tone(NOTE_E4,0.8/3);
yfkwok 2:464c7e62d97d 129 wait(0.8/3);
yfkwok 2:464c7e62d97d 130 pad.tone(NOTE_C4,0.8/3);
yfkwok 2:464c7e62d97d 131 wait(0.8/3);
yfkwok 2:464c7e62d97d 132 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 133 pad.tone(NOTE_D4,1.0);
yfkwok 2:464c7e62d97d 134 wait(1.0);
yfkwok 2:464c7e62d97d 135 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 136 pad.tone(NOTE_B3,0.2);
yfkwok 2:464c7e62d97d 137 wait(0.2);
yfkwok 2:464c7e62d97d 138 pad.tone(NOTE_C4,0.2);
yfkwok 2:464c7e62d97d 139 wait(0.2);
yfkwok 2:464c7e62d97d 140 pad.tone(NOTE_D4,0.2);
yfkwok 2:464c7e62d97d 141 wait(0.2);
yfkwok 2:464c7e62d97d 142 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 143 //bar 12
yfkwok 2:464c7e62d97d 144 pad.tone(NOTE_G4,0.6);
yfkwok 2:464c7e62d97d 145 wait(0.6);
yfkwok 2:464c7e62d97d 146 pad.tone(NOTE_B4,0.2);
yfkwok 2:464c7e62d97d 147 wait(0.2);
yfkwok 2:464c7e62d97d 148 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 149 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 150 wait(0.8);
yfkwok 2:464c7e62d97d 151 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 152 pad.tone(NOTE_C4,0.6);
yfkwok 2:464c7e62d97d 153 wait(0.6);
yfkwok 2:464c7e62d97d 154 pad.tone(NOTE_F4,0.2);
yfkwok 2:464c7e62d97d 155 wait(0.2);
yfkwok 2:464c7e62d97d 156 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 157 pad.tone(NOTE_F5,0.6);
yfkwok 2:464c7e62d97d 158 wait(0.6);
yfkwok 2:464c7e62d97d 159 pad.tone(NOTE_E5,0.1);
yfkwok 2:464c7e62d97d 160 wait(0.1);
yfkwok 2:464c7e62d97d 161 pad.tone(NOTE_DS5,0.1);
yfkwok 2:464c7e62d97d 162 wait(0.1);
yfkwok 2:464c7e62d97d 163 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 164 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 165 wait(0.8);
yfkwok 2:464c7e62d97d 166 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 167 pad.tone(NOTE_F4,0.6);
yfkwok 2:464c7e62d97d 168 wait(0.6);
yfkwok 2:464c7e62d97d 169 pad.tone(NOTE_E4,0.1);
yfkwok 2:464c7e62d97d 170 wait(0.1);
yfkwok 2:464c7e62d97d 171 pad.tone(NOTE_DS4,0.1);
yfkwok 2:464c7e62d97d 172 wait(0.1);
yfkwok 2:464c7e62d97d 173 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 174 pad.tone(NOTE_D4,0.8);
yfkwok 2:464c7e62d97d 175 wait(0.8);
yfkwok 2:464c7e62d97d 176 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 177 pad.tone(NOTE_C4,0.8/3);
yfkwok 2:464c7e62d97d 178 wait(0.8/3);
yfkwok 2:464c7e62d97d 179 pad.tone(NOTE_B3,0.8/3);
yfkwok 2:464c7e62d97d 180 wait(0.8/3);
yfkwok 2:464c7e62d97d 181 pad.tone(NOTE_C4,0.8/3);
yfkwok 2:464c7e62d97d 182 wait(0.8/3);
yfkwok 2:464c7e62d97d 183 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 184 pad.tone(NOTE_G4,0.6);
yfkwok 2:464c7e62d97d 185 wait(0.6);
yfkwok 2:464c7e62d97d 186 pad.tone(NOTE_B4,0.2);
yfkwok 2:464c7e62d97d 187 wait(0.2);
yfkwok 2:464c7e62d97d 188 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 189 pad.tone(NOTE_D5,0.8);
yfkwok 2:464c7e62d97d 190 wait(0.8);
yfkwok 2:464c7e62d97d 191 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 192 //bar 17
yfkwok 2:464c7e62d97d 193 pad.tone(NOTE_C4,0.6);
yfkwok 2:464c7e62d97d 194 wait(0.6);
yfkwok 2:464c7e62d97d 195 pad.tone(NOTE_C4,0.2);
yfkwok 2:464c7e62d97d 196 wait(0.2);
yfkwok 2:464c7e62d97d 197 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 198 pad.tone(NOTE_F5,0.8/3);
yfkwok 2:464c7e62d97d 199 wait(0.8/3);
yfkwok 2:464c7e62d97d 200 pad.tone(NOTE_E5,0.8/3);
yfkwok 2:464c7e62d97d 201 wait(0.8/3);
yfkwok 2:464c7e62d97d 202 pad.tone(NOTE_F5,0.8/3);
yfkwok 2:464c7e62d97d 203 wait(0.8/3);
yfkwok 2:464c7e62d97d 204 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 205 pad.tone(NOTE_G5,0.6);
yfkwok 2:464c7e62d97d 206 wait(0.6);
yfkwok 2:464c7e62d97d 207 pad.tone(NOTE_AS5,0.2);
yfkwok 2:464c7e62d97d 208 wait(0.2);
yfkwok 2:464c7e62d97d 209 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 210 pad.tone(NOTE_G5,0.8);
yfkwok 2:464c7e62d97d 211 wait(0.8);
yfkwok 2:464c7e62d97d 212 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 213 pad.tone(NOTE_G5,0.6);
yfkwok 2:464c7e62d97d 214 wait(0.6);
yfkwok 2:464c7e62d97d 215 pad.tone(NOTE_A4,0.2);
yfkwok 2:464c7e62d97d 216 wait(0.2);
yfkwok 2:464c7e62d97d 217 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 218 pad.tone(NOTE_A5,0.8);
yfkwok 2:464c7e62d97d 219 wait(0.8);
yfkwok 2:464c7e62d97d 220 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 221 pad.tone(NOTE_AS5,0.6);
yfkwok 2:464c7e62d97d 222 wait(0.6);
yfkwok 2:464c7e62d97d 223 pad.tone(NOTE_F5,0.2);
yfkwok 2:464c7e62d97d 224 wait(0.2);
yfkwok 2:464c7e62d97d 225 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 226 pad.tone(NOTE_F5,0.8);
yfkwok 2:464c7e62d97d 227 wait(0.8);
yfkwok 2:464c7e62d97d 228 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 229 pad.tone(NOTE_F5,0.8);
yfkwok 2:464c7e62d97d 230 wait(0.8);
yfkwok 2:464c7e62d97d 231 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 232 pad.tone(NOTE_AS5,0.4);
yfkwok 2:464c7e62d97d 233 wait(0.4);
yfkwok 2:464c7e62d97d 234 pad.tone(NOTE_B5,0.4);
yfkwok 2:464c7e62d97d 235 wait(0.4);
yfkwok 2:464c7e62d97d 236 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 237 pad.tone(NOTE_C6,0.6);
yfkwok 2:464c7e62d97d 238 wait(0.6);
yfkwok 2:464c7e62d97d 239 pad.tone(NOTE_G5,0.2);
yfkwok 2:464c7e62d97d 240 wait(0.2);
yfkwok 2:464c7e62d97d 241 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 242 pad.tone(NOTE_G5,0.8);
yfkwok 2:464c7e62d97d 243 wait(0.8);
yfkwok 2:464c7e62d97d 244 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 245 //bar 23
yfkwok 2:464c7e62d97d 246 pad.tone(NOTE_G5,0.8);
yfkwok 2:464c7e62d97d 247 wait(0.8);
yfkwok 2:464c7e62d97d 248 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 249 pad.tone(NOTE_C6,0.4);
yfkwok 2:464c7e62d97d 250 wait(0.4);
yfkwok 2:464c7e62d97d 251 pad.tone(NOTE_CS6,0.4);
yfkwok 2:464c7e62d97d 252 wait(0.4);
yfkwok 2:464c7e62d97d 253 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 254 pad.tone(NOTE_D6,0.3);
yfkwok 2:464c7e62d97d 255 wait(0.3);
yfkwok 2:464c7e62d97d 256 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 257 wait(0.1);
yfkwok 2:464c7e62d97d 258 wait(0.3);
yfkwok 2:464c7e62d97d 259 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 260 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 261 wait(0.1);
yfkwok 2:464c7e62d97d 262 wait(0.3);
yfkwok 2:464c7e62d97d 263 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 264 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 265 wait(0.1);
yfkwok 2:464c7e62d97d 266 wait(0.3);
yfkwok 2:464c7e62d97d 267 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 268 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 269 wait(0.1);
yfkwok 2:464c7e62d97d 270 wait(0.3);
yfkwok 2:464c7e62d97d 271 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 272 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 273 wait(0.1);
yfkwok 2:464c7e62d97d 274 wait(0.3);
yfkwok 2:464c7e62d97d 275 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 276 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 277 wait(0.1);
yfkwok 2:464c7e62d97d 278 pad.tone(NOTE_C6,0.8/3);
yfkwok 2:464c7e62d97d 279 wait(0.8/3);
yfkwok 2:464c7e62d97d 280 pad.tone(NOTE_C6,0.8/3);
yfkwok 2:464c7e62d97d 281 wait(0.8/3);
yfkwok 2:464c7e62d97d 282 pad.tone(NOTE_CS6,0.8/3);
yfkwok 2:464c7e62d97d 283 wait(0.8/3);
yfkwok 2:464c7e62d97d 284 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 285 pad.tone(NOTE_D6,0.3);
yfkwok 2:464c7e62d97d 286 wait(0.3);
yfkwok 2:464c7e62d97d 287 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 288 wait(0.1);
yfkwok 2:464c7e62d97d 289 wait(0.3);
yfkwok 2:464c7e62d97d 290 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 291 wait(0.1);
yfkwok 2:464c7e62d97d 292 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 293 wait(0.3);
yfkwok 2:464c7e62d97d 294 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 295 wait(0.1);
yfkwok 2:464c7e62d97d 296 wait(0.3);
yfkwok 2:464c7e62d97d 297 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 298 wait(0.1);
yfkwok 2:464c7e62d97d 299 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 300 wait(0.3);
yfkwok 2:464c7e62d97d 301 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 302 wait(0.1);
yfkwok 2:464c7e62d97d 303 wait(0.3);
yfkwok 2:464c7e62d97d 304 pad.tone(NOTE_D5,0.1);
yfkwok 2:464c7e62d97d 305 wait(0.1);
yfkwok 2:464c7e62d97d 306 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 307 pad.tone(NOTE_C6,0.8/3);
yfkwok 2:464c7e62d97d 308 wait(0.8/3);
yfkwok 2:464c7e62d97d 309 pad.tone(NOTE_C6,0.8/3);
yfkwok 2:464c7e62d97d 310 wait(0.8/3);
yfkwok 2:464c7e62d97d 311 pad.tone(NOTE_B5,0.8/3);
yfkwok 2:464c7e62d97d 312 wait(0.8/3);
yfkwok 2:464c7e62d97d 313 if(pad.check_event(Gamepad::START_PRESSED) == true){break;}
yfkwok 2:464c7e62d97d 314 }
yfkwok 2:464c7e62d97d 315
yfkwok 2:464c7e62d97d 316 break;
yfkwok 2:464c7e62d97d 317 }
yfkwok 2:464c7e62d97d 318 }
yfkwok 2:464c7e62d97d 319
yfkwok 2:464c7e62d97d 320 void Score::level_up(Gamepad &pad)
yfkwok 2:464c7e62d97d 321 {
yfkwok 2:464c7e62d97d 322 pad.tone(NOTE_E5,0.12);
yfkwok 2:464c7e62d97d 323 wait(0.15);
yfkwok 2:464c7e62d97d 324 pad.tone(NOTE_E5,0.12);
yfkwok 2:464c7e62d97d 325 wait(0.15);
yfkwok 2:464c7e62d97d 326 pad.tone(NOTE_E5,0.12);
yfkwok 2:464c7e62d97d 327 wait(0.15);
yfkwok 2:464c7e62d97d 328 pad.tone(NOTE_B5,0.45);
yfkwok 2:464c7e62d97d 329 wait(0.45);
yfkwok 2:464c7e62d97d 330 }
yfkwok 2:464c7e62d97d 331
yfkwok 2:464c7e62d97d 332 void Score::congrats(Gamepad &pad)
yfkwok 2:464c7e62d97d 333 {
yfkwok 2:464c7e62d97d 334 pad.tone(NOTE_A5,0.35);
yfkwok 2:464c7e62d97d 335 wait(0.35);
yfkwok 2:464c7e62d97d 336 pad.tone(NOTE_F5,0.35);
yfkwok 2:464c7e62d97d 337 wait(0.35);
yfkwok 2:464c7e62d97d 338 pad.tone(NOTE_C5,0.7);
yfkwok 2:464c7e62d97d 339 wait(0.7);
yfkwok 2:464c7e62d97d 340 pad.tone(NOTE_AS5,0.35/3);
yfkwok 2:464c7e62d97d 341 wait(0.35/3);
yfkwok 2:464c7e62d97d 342 pad.tone(NOTE_AS5,0.35/3);
yfkwok 2:464c7e62d97d 343 wait(0.35/3);
yfkwok 2:464c7e62d97d 344 pad.tone(NOTE_AS5,0.35/3);
yfkwok 2:464c7e62d97d 345 wait(0.35/3);
yfkwok 2:464c7e62d97d 346 pad.tone(NOTE_G5,0.35/3);
yfkwok 2:464c7e62d97d 347 wait(0.35/3);
yfkwok 2:464c7e62d97d 348 pad.tone(NOTE_G5,0.35/3);
yfkwok 2:464c7e62d97d 349 wait(0.35/3);
yfkwok 2:464c7e62d97d 350 pad.tone(NOTE_AS5,0.35/3);
yfkwok 2:464c7e62d97d 351 wait(0.35/3);
yfkwok 2:464c7e62d97d 352 pad.tone(NOTE_A5,0.7);
yfkwok 2:464c7e62d97d 353 wait(0.7);
yfkwok 2:464c7e62d97d 354 }
yfkwok 2:464c7e62d97d 355
yfkwok 2:464c7e62d97d 356 void Score::coin(Gamepad &pad)
yfkwok 2:464c7e62d97d 357 {
yfkwok 2:464c7e62d97d 358 pad.tone(NOTE_B5,0.1);
yfkwok 2:464c7e62d97d 359 wait(0.1);
yfkwok 2:464c7e62d97d 360 pad.tone(NOTE_E6,0.4);
yfkwok 4:5bc9c4363d31 361 }
yfkwok 4:5bc9c4363d31 362
yfkwok 4:5bc9c4363d31 363 void Score::evolution_music(Gamepad &pad, N5110 &lcd, int cha, int year)
yfkwok 4:5bc9c4363d31 364 {
yfkwok 17:5d8ff39a0e49 365 //Initiate position for name titles
yfkwok 12:71683453f66a 366 int x = 84;
yfkwok 12:71683453f66a 367 int y = 12;
yfkwok 4:5bc9c4363d31 368 // bar 1
yfkwok 12:71683453f66a 369 draw(lcd, cha, year, x, y);
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 pad.tone(NOTE_G5,0.5/4);
yfkwok 4:5bc9c4363d31 375 wait(0.5/4);
yfkwok 4:5bc9c4363d31 376 pad.tone(NOTE_D5,0.5/4);
yfkwok 4:5bc9c4363d31 377 wait(0.5/4);
yfkwok 4:5bc9c4363d31 378 wait(1.5);
yfkwok 4:5bc9c4363d31 379 // bar 2
yfkwok 4:5bc9c4363d31 380
yfkwok 4:5bc9c4363d31 381 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 382 wait(0.5);
yfkwok 4:5bc9c4363d31 383 lcd.clear();
yfkwok 4:5bc9c4363d31 384 lcd.refresh();
yfkwok 4:5bc9c4363d31 385 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 386 wait(0.25);
yfkwok 12:71683453f66a 387 draw(lcd, cha, year, x, y);;
yfkwok 5:bc0691d02fd5 388 wait(0.25);
yfkwok 4:5bc9c4363d31 389 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 390 wait(0.25);
yfkwok 5:bc0691d02fd5 391 lcd.clear();
yfkwok 5:bc0691d02fd5 392 lcd.refresh();
yfkwok 5:bc0691d02fd5 393 wait(0.25);
yfkwok 4:5bc9c4363d31 394 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 395 wait(0.5);
yfkwok 12:71683453f66a 396 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 397 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 398 wait(0.25);
yfkwok 5:bc0691d02fd5 399 lcd.clear();
yfkwok 5:bc0691d02fd5 400 lcd.refresh();
yfkwok 5:bc0691d02fd5 401 wait(0.25);
yfkwok 4:5bc9c4363d31 402 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 403 wait(0.25);
yfkwok 12:71683453f66a 404 draw(lcd, cha, year, x, y);
yfkwok 5:bc0691d02fd5 405 wait(0.25);
yfkwok 4:5bc9c4363d31 406 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 407 wait(0.5);
yfkwok 4:5bc9c4363d31 408 lcd.clear();
yfkwok 4:5bc9c4363d31 409 lcd.refresh();
yfkwok 4:5bc9c4363d31 410 pad.tone(NOTE_A4,0.5);
yfkwok 4:5bc9c4363d31 411 wait(0.5);
yfkwok 4:5bc9c4363d31 412 // bar 4
yfkwok 12:71683453f66a 413 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 414 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 415 wait(0.5);
yfkwok 4:5bc9c4363d31 416 lcd.clear();
yfkwok 4:5bc9c4363d31 417 lcd.refresh();
yfkwok 4:5bc9c4363d31 418 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 419 wait(0.5);
yfkwok 12:71683453f66a 420 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 421 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 422 wait(0.5);
yfkwok 4:5bc9c4363d31 423 lcd.clear();
yfkwok 4:5bc9c4363d31 424 lcd.refresh();
yfkwok 4:5bc9c4363d31 425 pad.tone(NOTE_G4,0.5/2);
yfkwok 4:5bc9c4363d31 426 wait(0.5);
yfkwok 12:71683453f66a 427 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 428 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 429 wait(0.25);
yfkwok 5:bc0691d02fd5 430 lcd.clear();
yfkwok 5:bc0691d02fd5 431 lcd.refresh();
yfkwok 5:bc0691d02fd5 432 wait(0.25);
yfkwok 12:71683453f66a 433 draw(lcd, cha, year, x, y);
yfkwok 5:bc0691d02fd5 434 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 435 wait(0.25);
yfkwok 4:5bc9c4363d31 436 lcd.clear();
yfkwok 4:5bc9c4363d31 437 lcd.refresh();
yfkwok 5:bc0691d02fd5 438 wait(0.25);
yfkwok 12:71683453f66a 439 draw(lcd, cha, year, x, y);
yfkwok 5:bc0691d02fd5 440 pad.tone(NOTE_G4,0.5/2);
yfkwok 5:bc0691d02fd5 441 wait(0.25);
yfkwok 5:bc0691d02fd5 442 lcd.clear();
yfkwok 5:bc0691d02fd5 443 lcd.refresh();
yfkwok 5:bc0691d02fd5 444 wait(0.25);
yfkwok 12:71683453f66a 445 draw(lcd, cha, year, x, y);
yfkwok 4:5bc9c4363d31 446 pad.tone(NOTE_B4,0.5);
yfkwok 5:bc0691d02fd5 447 wait(0.25);
yfkwok 5:bc0691d02fd5 448 lcd.clear();
yfkwok 5:bc0691d02fd5 449 lcd.refresh();
yfkwok 5:bc0691d02fd5 450 wait(0.25);
yfkwok 17:5d8ff39a0e49 451 // Define motion of name title for final evolution, activate when year = year + 1 = 3. Update lcd screen at 10 frames per sec.
yfkwok 12:71683453f66a 452 year = year + 1;
yfkwok 12:71683453f66a 453 if(year == 3){
yfkwok 12:71683453f66a 454 while(x > -170){
yfkwok 12:71683453f66a 455 draw(lcd, cha, year, x, y);;
yfkwok 12:71683453f66a 456 x = x - 10;
yfkwok 12:71683453f66a 457 wait(0.10);
yfkwok 12:71683453f66a 458 }
yfkwok 12:71683453f66a 459 }
yfkwok 17:5d8ff39a0e49 460 // Decrease parameter (year) to draw the corresponding evolution sprite
yfkwok 12:71683453f66a 461 year = year - 1;
yfkwok 4:5bc9c4363d31 462 congrats(pad, lcd, cha, year);
yfkwok 4:5bc9c4363d31 463 }
yfkwok 4:5bc9c4363d31 464
yfkwok 4:5bc9c4363d31 465 void Score::congrats(Gamepad &pad, N5110 &lcd, int cha, int year)
yfkwok 4:5bc9c4363d31 466 {
yfkwok 17:5d8ff39a0e49 467 // Draw the corresponding evolution depending on the year (year) and character selected (cha)
yfkwok 4:5bc9c4363d31 468 draw_cong(lcd, cha, year);
yfkwok 4:5bc9c4363d31 469 // bar 1
yfkwok 4:5bc9c4363d31 470 pad.tone(NOTE_A5,0.4);
yfkwok 4:5bc9c4363d31 471 wait(0.4);
yfkwok 4:5bc9c4363d31 472 pad.tone(NOTE_F5,0.4);
yfkwok 4:5bc9c4363d31 473 wait(0.4);
yfkwok 4:5bc9c4363d31 474 pad.tone(NOTE_C5,0.8);
yfkwok 4:5bc9c4363d31 475 wait(0.8);
yfkwok 4:5bc9c4363d31 476 // bar 2
yfkwok 4:5bc9c4363d31 477 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 478 wait(0.4/3);
yfkwok 4:5bc9c4363d31 479 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 480 wait(0.4/3);
yfkwok 4:5bc9c4363d31 481 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 482 wait(0.4/3);
yfkwok 4:5bc9c4363d31 483 pad.tone(NOTE_G5,0.4/3);
yfkwok 4:5bc9c4363d31 484 wait(0.4/3);
yfkwok 4:5bc9c4363d31 485 pad.tone(NOTE_G5,0.4/3);
yfkwok 4:5bc9c4363d31 486 wait(0.4/3);
yfkwok 4:5bc9c4363d31 487 pad.tone(NOTE_AS5,0.4/3);
yfkwok 4:5bc9c4363d31 488 wait(0.4/3);
yfkwok 4:5bc9c4363d31 489 pad.tone(NOTE_A5,0.8);
yfkwok 4:5bc9c4363d31 490 wait(0.8);
yfkwok 4:5bc9c4363d31 491 }
yfkwok 4:5bc9c4363d31 492
yfkwok 12:71683453f66a 493 void Score::draw(N5110 &lcd, int cha, int year, int x, int y)
yfkwok 4:5bc9c4363d31 494 {
yfkwok 17:5d8ff39a0e49 495 // Draw sprite of selected character, call functions from Characters folder
yfkwok 4:5bc9c4363d31 496 lcd.clear();
yfkwok 31:0d2c19a285f6 497 if(year == 1 && cha == 1) {_s1.evo_1_sprite(lcd, 23, 9);}
yfkwok 31:0d2c19a285f6 498 else if(year == 1 && cha == 2) {_c1.evo_1_sprite(lcd, 23, 7);}
yfkwok 31:0d2c19a285f6 499 else if(year == 1 && cha == 0) {_b1.evo_1_sprite(lcd, 27, 14);}
yfkwok 31:0d2c19a285f6 500 else if(year == 2 && cha == 1) {_s1.evo_2_sprite(lcd, 20, 2);}
yfkwok 31:0d2c19a285f6 501 else if(year == 2 && cha == 2) {_c1.evo_2_sprite(lcd, 17, 2);}
yfkwok 31:0d2c19a285f6 502 else if(year == 2 && cha == 0) {_b1.evo_2_sprite(lcd, 14, 1);}
yfkwok 12:71683453f66a 503 else if(year == 3 && cha == 1) {_s1.evo_3_sprite(lcd, x, y);}
yfkwok 12:71683453f66a 504 else if(year == 3 && cha == 2) {_c1.evo_3_sprite(lcd, x, y);}
yfkwok 12:71683453f66a 505 else if(year == 3 && cha == 0) {_b1.evo_3_sprite(lcd, x, y);}
yfkwok 4:5bc9c4363d31 506 lcd.refresh();
yfkwok 4:5bc9c4363d31 507 }
yfkwok 4:5bc9c4363d31 508
yfkwok 4:5bc9c4363d31 509 void Score::draw_cong(N5110 &lcd, int cha, int year)
yfkwok 4:5bc9c4363d31 510 {
yfkwok 17:5d8ff39a0e49 511 // Draw sprite of selected character after evolution, call functions from Characters folder
yfkwok 4:5bc9c4363d31 512 lcd.clear();
yfkwok 4:5bc9c4363d31 513 if(year == 0 && cha == 1) {_s1.evo_1_cong(lcd);}
yfkwok 10:adff3c804985 514 else if(year == 0 && cha == 2) {_c1.evo_1_cong(lcd);}
yfkwok 12:71683453f66a 515 else if(year == 0 && cha == 0) {_b1.evo_1_cong(lcd);}
yfkwok 4:5bc9c4363d31 516 else if(year == 1 && cha == 1) {_s1.evo_2_cong(lcd);}
yfkwok 10:adff3c804985 517 else if(year == 1 && cha == 2) {_c1.evo_2_cong(lcd);}
yfkwok 12:71683453f66a 518 else if(year == 1 && cha == 0) {_b1.evo_2_cong(lcd);}
yfkwok 12:71683453f66a 519 else if(year == 2 && cha == 1) {_s1.evo_3_cong(lcd);}
yfkwok 12:71683453f66a 520 else if(year == 2 && cha == 2) {_c1.evo_3_cong(lcd);}
yfkwok 12:71683453f66a 521 else if(year == 2 && cha == 0) {_b1.evo_3_cong(lcd);}
yfkwok 4:5bc9c4363d31 522 lcd.refresh();
yfkwok 5:bc0691d02fd5 523 }
yfkwok 5:bc0691d02fd5 524
yfkwok 5:bc0691d02fd5 525 void Score::win(Gamepad &pad)
yfkwok 5:bc0691d02fd5 526 {
yfkwok 5:bc0691d02fd5 527 // bar 1
yfkwok 5:bc0691d02fd5 528 pad.tone(NOTE_E5,0.33/4);
yfkwok 5:bc0691d02fd5 529 wait(0.33/4);
yfkwok 5:bc0691d02fd5 530 pad.tone(NOTE_FS5,0.33/4);
yfkwok 5:bc0691d02fd5 531 wait(0.33/4);
yfkwok 5:bc0691d02fd5 532 pad.tone(NOTE_GS5,0.33/4);
yfkwok 5:bc0691d02fd5 533 wait(0.33/4);
yfkwok 5:bc0691d02fd5 534 pad.tone(NOTE_A5,0.33/4);
yfkwok 5:bc0691d02fd5 535 wait(0.33/4);
yfkwok 5:bc0691d02fd5 536 pad.tone(NOTE_B5,0.33*3);
yfkwok 5:bc0691d02fd5 537 wait(0.33*3);
yfkwok 5:bc0691d02fd5 538 // bar 2
yfkwok 5:bc0691d02fd5 539 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 540 wait(0.33/2);
yfkwok 5:bc0691d02fd5 541 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 542 wait(0.33/2);
yfkwok 5:bc0691d02fd5 543 pad.tone(NOTE_GS4,0.25/2);
yfkwok 5:bc0691d02fd5 544 wait(0.33/2);
yfkwok 5:bc0691d02fd5 545 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 546 wait(0.33/2);
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 3
yfkwok 5:bc0691d02fd5 554 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 555 wait(0.33/2);
yfkwok 5:bc0691d02fd5 556 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 557 wait(0.33/2);
yfkwok 5:bc0691d02fd5 558 pad.tone(NOTE_CS5,0.25);
yfkwok 5:bc0691d02fd5 559 wait(0.33);
yfkwok 5:bc0691d02fd5 560 pad.tone(NOTE_B4,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);
yfkwok 5:bc0691d02fd5 565 wait(0.33);
yfkwok 5:bc0691d02fd5 566 // bar 4
yfkwok 5:bc0691d02fd5 567 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 568 wait(0.33/2);
yfkwok 5:bc0691d02fd5 569 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 570 wait(0.33/2);
yfkwok 5:bc0691d02fd5 571 pad.tone(NOTE_GS4,0.25/2);
yfkwok 5:bc0691d02fd5 572 wait(0.33/2);
yfkwok 5:bc0691d02fd5 573 pad.tone(NOTE_A4,0.25/2);
yfkwok 5:bc0691d02fd5 574 wait(0.33/2);
yfkwok 5:bc0691d02fd5 575 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 576 wait(0.33/2);
yfkwok 5:bc0691d02fd5 577 pad.tone(NOTE_B4,0.25/2);
yfkwok 5:bc0691d02fd5 578 wait(0.33/2);
yfkwok 5:bc0691d02fd5 579 pad.tone(NOTE_B4,0.25);
yfkwok 5:bc0691d02fd5 580 wait(0.33);
yfkwok 5:bc0691d02fd5 581 // bar 5
yfkwok 5:bc0691d02fd5 582 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 583 wait(0.33/2);
yfkwok 5:bc0691d02fd5 584 pad.tone(NOTE_CS5,0.25/2);
yfkwok 5:bc0691d02fd5 585 wait(0.33/2);
yfkwok 5:bc0691d02fd5 586 pad.tone(NOTE_CS5,0.25);
yfkwok 5:bc0691d02fd5 587 wait(0.33);
yfkwok 5:bc0691d02fd5 588 pad.tone(NOTE_B4,0.25);
yfkwok 5:bc0691d02fd5 589 wait(0.6);
yfkwok 5:bc0691d02fd5 590 }
yfkwok 5:bc0691d02fd5 591
yfkwok 5:bc0691d02fd5 592 void Score::exam_intro(Gamepad &pad)
yfkwok 5:bc0691d02fd5 593 {
yfkwok 5:bc0691d02fd5 594 // bar 1
yfkwok 5:bc0691d02fd5 595 pad.tone(NOTE_F5,0.33/4);
yfkwok 5:bc0691d02fd5 596 wait(0.33/4);
yfkwok 5:bc0691d02fd5 597 pad.tone(NOTE_E5,0.33/4);
yfkwok 5:bc0691d02fd5 598 wait(0.33/4);
yfkwok 5:bc0691d02fd5 599 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 600 wait(0.33/4);
yfkwok 5:bc0691d02fd5 601 pad.tone(NOTE_E5,0.33/4);
yfkwok 5:bc0691d02fd5 602 wait(0.33/4);
yfkwok 5:bc0691d02fd5 603 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 604 wait(0.33/4);
yfkwok 5:bc0691d02fd5 605 pad.tone(NOTE_D5,0.33/4);
yfkwok 5:bc0691d02fd5 606 wait(0.33/4);
yfkwok 5:bc0691d02fd5 607 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 608 wait(0.33/4);
yfkwok 5:bc0691d02fd5 609 pad.tone(NOTE_D5,0.33/4);
yfkwok 5:bc0691d02fd5 610 wait(0.33/4);
yfkwok 5:bc0691d02fd5 611 pad.tone(NOTE_CS5,0.33/4);
yfkwok 5:bc0691d02fd5 612 wait(0.33/4);
yfkwok 5:bc0691d02fd5 613 pad.tone(NOTE_D5,0.33/4);
yfkwok 5:bc0691d02fd5 614 wait(0.33/4);
yfkwok 5:bc0691d02fd5 615 pad.tone(NOTE_CS5,0.33/4);
yfkwok 5:bc0691d02fd5 616 wait(0.33/4);
yfkwok 5:bc0691d02fd5 617 pad.tone(NOTE_C5,0.33/4);
yfkwok 5:bc0691d02fd5 618 wait(0.33/4);
yfkwok 5:bc0691d02fd5 619 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 620 wait(0.33/4);
yfkwok 5:bc0691d02fd5 621 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 622 wait(0.33/4);
yfkwok 5:bc0691d02fd5 623 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 624 wait(0.33/4);
yfkwok 5:bc0691d02fd5 625 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 626 wait(0.33/4);
yfkwok 5:bc0691d02fd5 627 // bar 2
yfkwok 5:bc0691d02fd5 628 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 629 wait(0.33/4);
yfkwok 5:bc0691d02fd5 630 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 631 wait(0.33/4);
yfkwok 5:bc0691d02fd5 632 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 633 wait(0.33/4);
yfkwok 5:bc0691d02fd5 634 pad.tone(NOTE_F4,0.33/4);
yfkwok 5:bc0691d02fd5 635 wait(0.33/4);
yfkwok 5:bc0691d02fd5 636 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 637 wait(0.33/4);
yfkwok 5:bc0691d02fd5 638 pad.tone(NOTE_F4,0.33/4);
yfkwok 5:bc0691d02fd5 639 wait(0.33/4);
yfkwok 5:bc0691d02fd5 640 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 641 wait(0.33/4);
yfkwok 5:bc0691d02fd5 642 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 643 wait(0.33/4);
yfkwok 5:bc0691d02fd5 644 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 645 wait(0.33/4);
yfkwok 5:bc0691d02fd5 646 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 647 wait(0.33/4);
yfkwok 5:bc0691d02fd5 648 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 649 wait(0.33/4);
yfkwok 5:bc0691d02fd5 650 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 651 wait(0.33/4);
yfkwok 5:bc0691d02fd5 652 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 653 wait(0.33/4);
yfkwok 5:bc0691d02fd5 654 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 655 wait(0.33/4);
yfkwok 5:bc0691d02fd5 656 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 657 wait(0.33/4);
yfkwok 5:bc0691d02fd5 658 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 659 wait(0.33/4);
yfkwok 5:bc0691d02fd5 660 }
yfkwok 5:bc0691d02fd5 661
yfkwok 5:bc0691d02fd5 662 void Score::gym(Gamepad &pad, bool state)
yfkwok 5:bc0691d02fd5 663 {
yfkwok 5:bc0691d02fd5 664 // bar 1
yfkwok 5:bc0691d02fd5 665 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 666 wait(0.33/2);
yfkwok 5:bc0691d02fd5 667 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 668 wait(0.33/2);
yfkwok 5:bc0691d02fd5 669 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 670 wait(0.33/2);
yfkwok 5:bc0691d02fd5 671 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 672 wait(0.33/2);
yfkwok 5:bc0691d02fd5 673 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 674 wait(0.33/2);
yfkwok 5:bc0691d02fd5 675 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 676 wait(0.33/2);
yfkwok 5:bc0691d02fd5 677 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 678 wait(0.33/2);
yfkwok 5:bc0691d02fd5 679 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 680 wait(0.33/2);
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_C5,0.33*1.5);
yfkwok 5:bc0691d02fd5 692 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 693 // bar 3
yfkwok 5:bc0691d02fd5 694 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 695 wait(0.33/2);
yfkwok 5:bc0691d02fd5 696 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 697 wait(0.33/2);
yfkwok 5:bc0691d02fd5 698 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 699 wait(0.33/2);
yfkwok 5:bc0691d02fd5 700 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 701 wait(0.33/2);
yfkwok 5:bc0691d02fd5 702 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 703 wait(0.33/2);
yfkwok 5:bc0691d02fd5 704 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 705 wait(0.33/2);
yfkwok 5:bc0691d02fd5 706 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 707 wait(0.33/2);
yfkwok 5:bc0691d02fd5 708 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 709 wait(0.33/2);
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_AS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 721 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 722 // bar 5
yfkwok 5:bc0691d02fd5 723 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 724 wait(0.33/2);
yfkwok 5:bc0691d02fd5 725 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 726 wait(0.33/2);
yfkwok 5:bc0691d02fd5 727 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 728 wait(0.33/2);
yfkwok 5:bc0691d02fd5 729 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 730 wait(0.33/2);
yfkwok 5:bc0691d02fd5 731 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 732 wait(0.33/2);
yfkwok 5:bc0691d02fd5 733 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 734 wait(0.33/2);
yfkwok 5:bc0691d02fd5 735 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 736 wait(0.33/2);
yfkwok 5:bc0691d02fd5 737 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 738 wait(0.33/2);
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_C5,0.33*1.5);
yfkwok 5:bc0691d02fd5 750 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 751 // bar 7
yfkwok 5:bc0691d02fd5 752 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 753 wait(0.33/2);
yfkwok 5:bc0691d02fd5 754 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 755 wait(0.33/2);
yfkwok 5:bc0691d02fd5 756 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 757 wait(0.33/2);
yfkwok 5:bc0691d02fd5 758 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 759 wait(0.33/2);
yfkwok 5:bc0691d02fd5 760 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 761 wait(0.33/2);
yfkwok 5:bc0691d02fd5 762 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 763 wait(0.33/2);
yfkwok 5:bc0691d02fd5 764 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 765 wait(0.33/2);
yfkwok 5:bc0691d02fd5 766 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 767 wait(0.33/2);
yfkwok 5:bc0691d02fd5 768 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 769 wait(0.33/2);
yfkwok 5:bc0691d02fd5 770 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 771 wait(0.33/2);
yfkwok 5:bc0691d02fd5 772 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 773 wait(0.33/2);
yfkwok 5:bc0691d02fd5 774 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 775 wait(0.33/2);
yfkwok 5:bc0691d02fd5 776 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 777 wait(0.33/2);
yfkwok 5:bc0691d02fd5 778 pad.tone(NOTE_CS5,0.33*1.5);
yfkwok 5:bc0691d02fd5 779 wait(0.33*1.5);
yfkwok 17:5d8ff39a0e49 780
yfkwok 17:5d8ff39a0e49 781 // Loop while state is true
yfkwok 5:bc0691d02fd5 782 while(state){
yfkwok 5:bc0691d02fd5 783 // bar 8
yfkwok 5:bc0691d02fd5 784 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 785 wait(0.33);
yfkwok 5:bc0691d02fd5 786 pad.tone(NOTE_CS5,0.33);
yfkwok 5:bc0691d02fd5 787 wait(0.33);
yfkwok 5:bc0691d02fd5 788 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 789 wait(0.33);
yfkwok 5:bc0691d02fd5 790 pad.tone(NOTE_E5,0.33/2);
yfkwok 5:bc0691d02fd5 791 wait(0.33/2);
yfkwok 5:bc0691d02fd5 792 pad.tone(NOTE_FS5,0.33);
yfkwok 5:bc0691d02fd5 793 wait(0.33);
yfkwok 5:bc0691d02fd5 794 pad.tone(NOTE_E5,0.33);
yfkwok 5:bc0691d02fd5 795 wait(0.33);
yfkwok 5:bc0691d02fd5 796 pad.tone(NOTE_DS5,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 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 801 wait(0.33/2);
yfkwok 5:bc0691d02fd5 802 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 803 wait(0.33/2);
yfkwok 5:bc0691d02fd5 804 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 805 wait(0.33/2);
yfkwok 5:bc0691d02fd5 806 // bar 10
yfkwok 5:bc0691d02fd5 807 pad.tone(NOTE_A4,0.33*2);
yfkwok 5:bc0691d02fd5 808 wait(0.33*2);
yfkwok 5:bc0691d02fd5 809 pad.tone(NOTE_CS5,0.33*2);
yfkwok 5:bc0691d02fd5 810 wait(0.33*2);
yfkwok 5:bc0691d02fd5 811 pad.tone(NOTE_E5,0.33*2);
yfkwok 5:bc0691d02fd5 812 wait(0.33*2);
yfkwok 5:bc0691d02fd5 813 pad.tone(NOTE_CS5,0.33*2);
yfkwok 5:bc0691d02fd5 814 wait(0.33*2);
yfkwok 5:bc0691d02fd5 815 // bar 8
yfkwok 5:bc0691d02fd5 816 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 817 wait(0.33);
yfkwok 5:bc0691d02fd5 818 pad.tone(NOTE_CS5,0.33);
yfkwok 5:bc0691d02fd5 819 wait(0.33);
yfkwok 5:bc0691d02fd5 820 pad.tone(NOTE_DS5,0.33);
yfkwok 5:bc0691d02fd5 821 wait(0.33);
yfkwok 5:bc0691d02fd5 822 pad.tone(NOTE_E5,0.33/2);
yfkwok 5:bc0691d02fd5 823 wait(0.33/2);
yfkwok 5:bc0691d02fd5 824 pad.tone(NOTE_FS5,0.33);
yfkwok 5:bc0691d02fd5 825 wait(0.33);
yfkwok 5:bc0691d02fd5 826 pad.tone(NOTE_E5,0.33);
yfkwok 5:bc0691d02fd5 827 wait(0.33);
yfkwok 5:bc0691d02fd5 828 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 829 wait(0.33/2);
yfkwok 5:bc0691d02fd5 830 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 831 wait(0.33/2);
yfkwok 5:bc0691d02fd5 832 pad.tone(NOTE_B4,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 pad.tone(NOTE_DS5,0.33/2);
yfkwok 5:bc0691d02fd5 837 wait(0.33/2);
yfkwok 5:bc0691d02fd5 838 // bar 12
yfkwok 5:bc0691d02fd5 839 pad.tone(NOTE_CS5,0.33*2);
yfkwok 5:bc0691d02fd5 840 wait(0.33*2);
yfkwok 5:bc0691d02fd5 841 pad.tone(NOTE_B4,0.33*2);
yfkwok 5:bc0691d02fd5 842 wait(0.33*2);
yfkwok 5:bc0691d02fd5 843 pad.tone(NOTE_A4,0.33*2);
yfkwok 5:bc0691d02fd5 844 wait(0.33*2);
yfkwok 5:bc0691d02fd5 845 pad.tone(NOTE_E5,0.33);
yfkwok 5:bc0691d02fd5 846 wait(0.33);
yfkwok 5:bc0691d02fd5 847 pad.tone(NOTE_E5,0.33/2);
yfkwok 5:bc0691d02fd5 848 wait(0.33/2);
yfkwok 5:bc0691d02fd5 849 pad.tone(NOTE_CS5,0.33/2);
yfkwok 5:bc0691d02fd5 850 wait(0.33/2);
yfkwok 5:bc0691d02fd5 851 // bar 14
yfkwok 5:bc0691d02fd5 852 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 853 wait(0.33/2);
yfkwok 5:bc0691d02fd5 854 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 855 wait(0.33/2);
yfkwok 5:bc0691d02fd5 856 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 857 wait(0.33/4);
yfkwok 5:bc0691d02fd5 858 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 859 wait(0.33/4);
yfkwok 5:bc0691d02fd5 860 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 861 wait(0.33/4);
yfkwok 5:bc0691d02fd5 862 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 863 wait(0.33/4);
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_B3,0.33/2);
yfkwok 5:bc0691d02fd5 867 wait(0.33/2);
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_D4,0.33/4);
yfkwok 5:bc0691d02fd5 871 wait(0.33/4);
yfkwok 5:bc0691d02fd5 872 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 873 wait(0.33/4);
yfkwok 5:bc0691d02fd5 874 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 875 wait(0.33/4);
yfkwok 5:bc0691d02fd5 876 // bar 15
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_B3,0.33/2);
yfkwok 5:bc0691d02fd5 880 wait(0.33/2);
yfkwok 5:bc0691d02fd5 881 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 882 wait(0.33/4);
yfkwok 5:bc0691d02fd5 883 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 884 wait(0.33/4);
yfkwok 5:bc0691d02fd5 885 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 886 wait(0.33/4);
yfkwok 5:bc0691d02fd5 887 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 888 wait(0.33/4);
yfkwok 5:bc0691d02fd5 889 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 890 wait(0.33/2);
yfkwok 5:bc0691d02fd5 891 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 892 wait(0.33/4);
yfkwok 5:bc0691d02fd5 893 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 894 wait(0.33/4);
yfkwok 5:bc0691d02fd5 895 pad.tone(NOTE_E4,0.25/2);
yfkwok 5:bc0691d02fd5 896 wait(0.33/2);
yfkwok 5:bc0691d02fd5 897 pad.tone(NOTE_F4,0.25/2);
yfkwok 5:bc0691d02fd5 898 wait(0.33/2);
yfkwok 5:bc0691d02fd5 899 // bar 16
yfkwok 5:bc0691d02fd5 900 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 901 wait(0.33/4);
yfkwok 5:bc0691d02fd5 902 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 903 wait(0.33/4);
yfkwok 5:bc0691d02fd5 904 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 905 wait(0.33/4);
yfkwok 5:bc0691d02fd5 906 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 907 wait(0.33/4);
yfkwok 5:bc0691d02fd5 908 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 909 wait(0.33/2);
yfkwok 5:bc0691d02fd5 910 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 911 wait(0.33/2);
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_D4,0.33/4);
yfkwok 5:bc0691d02fd5 915 wait(0.33/4);
yfkwok 5:bc0691d02fd5 916 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 917 wait(0.33/4);
yfkwok 5:bc0691d02fd5 918 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 919 wait(0.33/4);
yfkwok 5:bc0691d02fd5 920 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 921 wait(0.33/2);
yfkwok 5:bc0691d02fd5 922 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 923 wait(0.33/2);
yfkwok 5:bc0691d02fd5 924 // bar 17
yfkwok 5:bc0691d02fd5 925 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 926 wait(0.33/4);
yfkwok 5:bc0691d02fd5 927 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 928 wait(0.33/4);
yfkwok 5:bc0691d02fd5 929 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 930 wait(0.33/4);
yfkwok 5:bc0691d02fd5 931 pad.tone(NOTE_FS4,0.33/4);
yfkwok 5:bc0691d02fd5 932 wait(0.33/4);
yfkwok 5:bc0691d02fd5 933 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 934 wait(0.33/2);
yfkwok 5:bc0691d02fd5 935 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 936 wait(0.33/2);
yfkwok 5:bc0691d02fd5 937 pad.tone(NOTE_D4,0.33/2);
yfkwok 5:bc0691d02fd5 938 wait(0.33/2);
yfkwok 5:bc0691d02fd5 939 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 940 wait(0.33/2);
yfkwok 5:bc0691d02fd5 941 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 942 wait(0.33/2);
yfkwok 5:bc0691d02fd5 943 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 944 wait(0.33/2);
yfkwok 5:bc0691d02fd5 945 // bar 18
yfkwok 5:bc0691d02fd5 946 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 947 wait(0.33/2);
yfkwok 5:bc0691d02fd5 948 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 949 wait(0.33/2);
yfkwok 5:bc0691d02fd5 950 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 951 wait(0.33);
yfkwok 5:bc0691d02fd5 952 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 953 wait(0.33);
yfkwok 5:bc0691d02fd5 954 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 955 wait(0.33);
yfkwok 5:bc0691d02fd5 956 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 957 wait(0.33);
yfkwok 5:bc0691d02fd5 958 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 959 wait(0.33);
yfkwok 5:bc0691d02fd5 960 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 961 wait(0.33);
yfkwok 5:bc0691d02fd5 962 pad.tone(NOTE_G4,0.33);
yfkwok 5:bc0691d02fd5 963 wait(0.33);
yfkwok 5:bc0691d02fd5 964 // bar 19
yfkwok 5:bc0691d02fd5 965 pad.tone(NOTE_FS4,0.33*4);
yfkwok 5:bc0691d02fd5 966 wait(0.33);
yfkwok 5:bc0691d02fd5 967 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 968 wait(0.33/4);
yfkwok 5:bc0691d02fd5 969 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 970 wait(0.33/4);
yfkwok 5:bc0691d02fd5 971 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 972 wait(0.33/4);
yfkwok 5:bc0691d02fd5 973 pad.tone(NOTE_B3,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_A3,0.33/4);
yfkwok 5:bc0691d02fd5 980 wait(0.33/4);
yfkwok 5:bc0691d02fd5 981 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 982 wait(0.33/4);
yfkwok 5:bc0691d02fd5 983 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 984 wait(0.33/4);
yfkwok 5:bc0691d02fd5 985 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 986 wait(0.33/4);
yfkwok 5:bc0691d02fd5 987 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 988 wait(0.33/4);
yfkwok 5:bc0691d02fd5 989 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 990 wait(0.33/4);
yfkwok 5:bc0691d02fd5 991 // bar 20
yfkwok 5:bc0691d02fd5 992 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 993 wait(0.33/4);
yfkwok 5:bc0691d02fd5 994 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 995 wait(0.33/4);
yfkwok 5:bc0691d02fd5 996 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 997 wait(0.33/4);
yfkwok 5:bc0691d02fd5 998 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 999 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1000 pad.tone(NOTE_E4,0.33/4);
yfkwok 5:bc0691d02fd5 1001 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1002 pad.tone(NOTE_DS4,0.33/4);
yfkwok 5:bc0691d02fd5 1003 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1004 pad.tone(NOTE_D4,0.33/4);
yfkwok 5:bc0691d02fd5 1005 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1006 pad.tone(NOTE_CS4,0.33/4);
yfkwok 5:bc0691d02fd5 1007 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1008 pad.tone(NOTE_C4,0.33/4);
yfkwok 5:bc0691d02fd5 1009 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1010 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 1011 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1012 pad.tone(NOTE_AS3,0.33/4);
yfkwok 5:bc0691d02fd5 1013 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1014 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 1015 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1016 pad.tone(NOTE_GS3,0.33/4);
yfkwok 5:bc0691d02fd5 1017 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1018 pad.tone(NOTE_G3,0.33/4);
yfkwok 5:bc0691d02fd5 1019 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1020 pad.tone(NOTE_FS3,0.33/4);
yfkwok 5:bc0691d02fd5 1021 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1022 pad.tone(NOTE_G3,0.33/4);
yfkwok 5:bc0691d02fd5 1023 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1024 // bar 22
yfkwok 5:bc0691d02fd5 1025 pad.tone(NOTE_GS3,0.33/4);
yfkwok 5:bc0691d02fd5 1026 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1027 pad.tone(NOTE_A3,0.33/4);
yfkwok 5:bc0691d02fd5 1028 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1029 pad.tone(NOTE_AS3,0.33/4);
yfkwok 5:bc0691d02fd5 1030 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1031 pad.tone(NOTE_B3,0.33/4);
yfkwok 5:bc0691d02fd5 1032 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1033 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 1034 wait(0.33);
yfkwok 5:bc0691d02fd5 1035 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 1036 wait(0.33);
yfkwok 5:bc0691d02fd5 1037 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 1038 wait(0.33);
yfkwok 5:bc0691d02fd5 1039 pad.tone(NOTE_B4,0.33);
yfkwok 5:bc0691d02fd5 1040 wait(0.33);
yfkwok 5:bc0691d02fd5 1041 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 1042 wait(0.33);
yfkwok 5:bc0691d02fd5 1043 pad.tone(NOTE_A4,0.33);
yfkwok 5:bc0691d02fd5 1044 wait(0.33);
yfkwok 5:bc0691d02fd5 1045 pad.tone(NOTE_C5,0.33);
yfkwok 5:bc0691d02fd5 1046 wait(0.33);
yfkwok 5:bc0691d02fd5 1047 pad.tone(NOTE_B4,0.33*4);
yfkwok 5:bc0691d02fd5 1048 wait(0.33*4);
yfkwok 5:bc0691d02fd5 1049 pad.tone(NOTE_FS5,0.33*4);
yfkwok 5:bc0691d02fd5 1050 wait(0.33*4);
yfkwok 5:bc0691d02fd5 1051 // bar 26
yfkwok 5:bc0691d02fd5 1052 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1053 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1054 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1055 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1056 pad.tone(NOTE_A4,0.33*3);
yfkwok 5:bc0691d02fd5 1057 wait(0.33*3);
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_DS4,0.33);
yfkwok 5:bc0691d02fd5 1065 wait(0.33);
yfkwok 5:bc0691d02fd5 1066 pad.tone(NOTE_CS4,0.33);
yfkwok 5:bc0691d02fd5 1067 wait(0.33);
yfkwok 5:bc0691d02fd5 1068 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1069 wait(0.33);
yfkwok 5:bc0691d02fd5 1070 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 1071 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1072 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1073 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1074 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1075 wait(0.33/2);
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_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1079 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1080 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1081 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1082 pad.tone(NOTE_B4,0.33/2);
yfkwok 5:bc0691d02fd5 1083 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1084 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1085 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1086 pad.tone(NOTE_DS4,0.33/2);
yfkwok 5:bc0691d02fd5 1087 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1088 pad.tone(NOTE_FS4,0.33/2);
yfkwok 5:bc0691d02fd5 1089 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1090 // bar 30
yfkwok 5:bc0691d02fd5 1091 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1092 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1093 pad.tone(NOTE_B3,0.33/2);
yfkwok 5:bc0691d02fd5 1094 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1095 pad.tone(NOTE_CS5,0.33*3);
yfkwok 5:bc0691d02fd5 1096 wait(0.33*3);
yfkwok 5:bc0691d02fd5 1097 pad.tone(NOTE_A5,0.33*2);
yfkwok 5:bc0691d02fd5 1098 wait(0.33*2);
yfkwok 5:bc0691d02fd5 1099 pad.tone(NOTE_E5,0.33*2);
yfkwok 5:bc0691d02fd5 1100 wait(0.33*2);
yfkwok 5:bc0691d02fd5 1101 // bar 32
yfkwok 5:bc0691d02fd5 1102 pad.tone(NOTE_B5,0.33*4);
yfkwok 5:bc0691d02fd5 1103 wait(0.33);
yfkwok 5:bc0691d02fd5 1104 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1105 wait(0.33);
yfkwok 5:bc0691d02fd5 1106 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1107 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1108 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1109 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1110 pad.tone(NOTE_FS4,0.33);
yfkwok 5:bc0691d02fd5 1111 wait(0.33);
yfkwok 5:bc0691d02fd5 1112 pad.tone(NOTE_E4,0.33/2);
yfkwok 5:bc0691d02fd5 1113 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1114 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1115 wait(0.33);
yfkwok 5:bc0691d02fd5 1116 pad.tone(NOTE_E4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1117 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1118 // bar 34
yfkwok 5:bc0691d02fd5 1119 pad.tone(NOTE_DS4,0.33);
yfkwok 5:bc0691d02fd5 1120 wait(0.33);
yfkwok 5:bc0691d02fd5 1121 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1122 wait(0.33);
yfkwok 5:bc0691d02fd5 1123 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1124 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1125 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1126 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1127 pad.tone(NOTE_FS4,0.33);
yfkwok 5:bc0691d02fd5 1128 wait(0.33);
yfkwok 5:bc0691d02fd5 1129 pad.tone(NOTE_A4,0.33/2);
yfkwok 5:bc0691d02fd5 1130 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1131 pad.tone(NOTE_GS4,0.33);
yfkwok 5:bc0691d02fd5 1132 wait(0.33);
yfkwok 5:bc0691d02fd5 1133 pad.tone(NOTE_G4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1134 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1135 pad.tone(NOTE_B4,0.33/4);
yfkwok 5:bc0691d02fd5 1136 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1137 pad.tone(NOTE_DS5,0.33/4);
yfkwok 5:bc0691d02fd5 1138 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1139 pad.tone(NOTE_FS5,0.33/4);
yfkwok 5:bc0691d02fd5 1140 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1141 pad.tone(NOTE_AS5,0.33/4);
yfkwok 5:bc0691d02fd5 1142 wait(0.33/4);
yfkwok 5:bc0691d02fd5 1143 // bar 36
yfkwok 5:bc0691d02fd5 1144 pad.tone(NOTE_B5,0.33*4);
yfkwok 5:bc0691d02fd5 1145 wait(0.33);
yfkwok 5:bc0691d02fd5 1146 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1147 wait(0.33);
yfkwok 5:bc0691d02fd5 1148 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1149 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1150 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1151 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1152 pad.tone(NOTE_FS5,0.33);
yfkwok 5:bc0691d02fd5 1153 wait(0.33);
yfkwok 5:bc0691d02fd5 1154 pad.tone(NOTE_DS4,0.33/2);
yfkwok 5:bc0691d02fd5 1155 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1156 pad.tone(NOTE_CS4,0.33);
yfkwok 5:bc0691d02fd5 1157 wait(0.33);
yfkwok 5:bc0691d02fd5 1158 pad.tone(NOTE_C4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1159 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1160 // bar 38
yfkwok 5:bc0691d02fd5 1161 pad.tone(NOTE_A5,0.33*4);
yfkwok 5:bc0691d02fd5 1162 wait(0.33);
yfkwok 5:bc0691d02fd5 1163 pad.tone(NOTE_E4,0.33);
yfkwok 5:bc0691d02fd5 1164 wait(0.33);
yfkwok 5:bc0691d02fd5 1165 pad.tone(NOTE_CS4,0.33/2);
yfkwok 5:bc0691d02fd5 1166 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1167 pad.tone(NOTE_DS4,0.33*1.5);
yfkwok 5:bc0691d02fd5 1168 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1169 pad.tone(NOTE_CS6,0.33);
yfkwok 5:bc0691d02fd5 1170 wait(0.33);
yfkwok 5:bc0691d02fd5 1171 pad.tone(NOTE_A4,0.33/2);
yfkwok 5:bc0691d02fd5 1172 wait(0.33/2);
yfkwok 5:bc0691d02fd5 1173 pad.tone(NOTE_GS4,0.33);
yfkwok 5:bc0691d02fd5 1174 wait(0.33);
yfkwok 5:bc0691d02fd5 1175 pad.tone(NOTE_A5,0.33*1.5);
yfkwok 5:bc0691d02fd5 1176 wait(0.33*1.5);
yfkwok 5:bc0691d02fd5 1177 }
yfkwok 31:0d2c19a285f6 1178 }
yfkwok 31:0d2c19a285f6 1179
yfkwok 31:0d2c19a285f6 1180 void Score::draw_grad(N5110 &lcd, int cha, int year, int x)
yfkwok 31:0d2c19a285f6 1181 {
yfkwok 31:0d2c19a285f6 1182 // Draw sprite of selected character in graduation, call functions from Characters folder
yfkwok 31:0d2c19a285f6 1183 lcd.clear();
yfkwok 31:0d2c19a285f6 1184 if(year == 1 && cha == 1) {_s1.evo_1_sprite(lcd, x, 9);}
yfkwok 31:0d2c19a285f6 1185 else if(year == 1 && cha == 2) {_c1.evo_1_sprite(lcd, x, 7);}
yfkwok 31:0d2c19a285f6 1186 else if(year == 1 && cha == 0) {_b1.evo_1_sprite(lcd, x, 14);}
yfkwok 31:0d2c19a285f6 1187 else if(year == 2 && cha == 1) {_s1.evo_2_sprite(lcd, x, 2);}
yfkwok 31:0d2c19a285f6 1188 else if(year == 2 && cha == 2) {_c1.evo_2_sprite(lcd, x, 2);}
yfkwok 31:0d2c19a285f6 1189 else if(year == 2 && cha == 0) {_b1.evo_2_sprite(lcd, x, 1);}
yfkwok 31:0d2c19a285f6 1190 else if(year == 3 && cha == 1) {_s1.evo_3_cong(lcd);}
yfkwok 31:0d2c19a285f6 1191 else if(year == 3 && cha == 2) {_c1.evo_3_cong(lcd);}
yfkwok 31:0d2c19a285f6 1192 else if(year == 3 && cha == 0) {_b1.evo_3_cong(lcd);}
yfkwok 31:0d2c19a285f6 1193 lcd.refresh();
yfkwok 31:0d2c19a285f6 1194 }
yfkwok 31:0d2c19a285f6 1195
yfkwok 31:0d2c19a285f6 1196 void Score::graduation(Gamepad &pad, N5110 &lcd, int cha)
yfkwok 31:0d2c19a285f6 1197 {
yfkwok 31:0d2c19a285f6 1198 // bar 1
yfkwok 31:0d2c19a285f6 1199 draw_grad(lcd, cha, 1, 84);
yfkwok 31:0d2c19a285f6 1200 pad.tone(NOTE_G4,0.46/4);
yfkwok 31:0d2c19a285f6 1201 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1202 pad.tone(NOTE_A4,0.46/4);
yfkwok 31:0d2c19a285f6 1203 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1204 pad.tone(NOTE_B4,0.46*1.5);
yfkwok 31:0d2c19a285f6 1205 wait(0.46*1.5);
yfkwok 31:0d2c19a285f6 1206 pad.tone(NOTE_A4,0.46/4);
yfkwok 31:0d2c19a285f6 1207 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1208 pad.tone(NOTE_B4,0.46/4);
yfkwok 31:0d2c19a285f6 1209 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1210 // bar 2
yfkwok 31:0d2c19a285f6 1211 draw_grad(lcd, cha, 1, 84);
yfkwok 31:0d2c19a285f6 1212 pad.tone(NOTE_C5,0.46/2);
yfkwok 31:0d2c19a285f6 1213 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1214 pad.tone(NOTE_G3,0.46);
yfkwok 31:0d2c19a285f6 1215 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1216 draw_grad(lcd, cha, 1, 74);
yfkwok 31:0d2c19a285f6 1217 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1218 draw_grad(lcd, cha, 1, 64);
yfkwok 31:0d2c19a285f6 1219 pad.tone(NOTE_G3,0.46/4);
yfkwok 31:0d2c19a285f6 1220 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1221 pad.tone(NOTE_G3,0.46/4);
yfkwok 31:0d2c19a285f6 1222 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1223 draw_grad(lcd, cha, 1, 54);
yfkwok 31:0d2c19a285f6 1224 pad.tone(NOTE_G3,0.46/2);
yfkwok 31:0d2c19a285f6 1225 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1226 draw_grad(lcd, cha, 1, 44);
yfkwok 31:0d2c19a285f6 1227 pad.tone(NOTE_G3,0.46/2);
yfkwok 31:0d2c19a285f6 1228 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1229 draw_grad(lcd, cha, 1, 34);
yfkwok 31:0d2c19a285f6 1230 pad.tone(NOTE_G3,0.46);
yfkwok 31:0d2c19a285f6 1231 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1232 draw_grad(lcd, cha, 1, 24);
yfkwok 31:0d2c19a285f6 1233 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1234 // bar 3
yfkwok 31:0d2c19a285f6 1235 pad.tone(NOTE_G3,0.46/2);
yfkwok 31:0d2c19a285f6 1236 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1237 pad.tone(NOTE_G3,0.46);
yfkwok 31:0d2c19a285f6 1238 wait(0.46);
yfkwok 31:0d2c19a285f6 1239 pad.tone(NOTE_G3,0.46/4);
yfkwok 31:0d2c19a285f6 1240 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1241 pad.tone(NOTE_G3,0.46/4);
yfkwok 31:0d2c19a285f6 1242 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1243 pad.tone(NOTE_G3,0.46/2);
yfkwok 31:0d2c19a285f6 1244 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1245 pad.tone(NOTE_G3,0.46/2);
yfkwok 31:0d2c19a285f6 1246 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1247 pad.tone(NOTE_G3,0.46);
yfkwok 31:0d2c19a285f6 1248 wait(0.46);
yfkwok 31:0d2c19a285f6 1249 // bar 4
yfkwok 31:0d2c19a285f6 1250 pad.tone(NOTE_C5,0.46*1.5);
yfkwok 31:0d2c19a285f6 1251 wait(0.46*1.5);
yfkwok 31:0d2c19a285f6 1252 pad.tone(NOTE_G4,0.46/4);
yfkwok 31:0d2c19a285f6 1253 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1254 pad.tone(NOTE_C5,0.46/4);
yfkwok 31:0d2c19a285f6 1255 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1256 pad.tone(NOTE_E5,0.46*2);
yfkwok 31:0d2c19a285f6 1257 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1258 // bar 5
yfkwok 31:0d2c19a285f6 1259 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1260 pad.tone(NOTE_G4,0.46/2);
yfkwok 31:0d2c19a285f6 1261 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1262 pad.tone(NOTE_C5,0.46/2);
yfkwok 31:0d2c19a285f6 1263 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1264 pad.tone(NOTE_G5,0.46/2);
yfkwok 31:0d2c19a285f6 1265 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1266 pad.tone(NOTE_F5,0.46/2);
yfkwok 31:0d2c19a285f6 1267 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1268 pad.tone(NOTE_E5,0.46/2);
yfkwok 31:0d2c19a285f6 1269 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1270 pad.tone(NOTE_D5,0.46/2);
yfkwok 31:0d2c19a285f6 1271 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1272 pad.tone(NOTE_C5,0.46/2);
yfkwok 31:0d2c19a285f6 1273 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1274 // bar 6
yfkwok 31:0d2c19a285f6 1275 draw_grad(lcd, cha, 1, 14);
yfkwok 31:0d2c19a285f6 1276 pad.tone(NOTE_D5,0.46*2);
yfkwok 31:0d2c19a285f6 1277 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1278 draw_grad(lcd, cha, 1, 4);
yfkwok 31:0d2c19a285f6 1279 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1280 draw_grad(lcd, cha, 1, -6);
yfkwok 31:0d2c19a285f6 1281 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1282 draw_grad(lcd, cha, 1, -16);
yfkwok 31:0d2c19a285f6 1283 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1284 draw_grad(lcd, cha, 1, -26);
yfkwok 31:0d2c19a285f6 1285 pad.tone(NOTE_F5,0.46*2);
yfkwok 31:0d2c19a285f6 1286 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1287 draw_grad(lcd, cha, 1, -36);
yfkwok 31:0d2c19a285f6 1288 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1289 draw_grad(lcd, cha, 1, -46);
yfkwok 31:0d2c19a285f6 1290 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1291 draw_grad(lcd, cha, 1, -56);
yfkwok 31:0d2c19a285f6 1292 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1293 // bar 7
yfkwok 31:0d2c19a285f6 1294 draw_grad(lcd, cha, 2, 84);
yfkwok 31:0d2c19a285f6 1295 pad.tone(NOTE_A4,0.46*2);
yfkwok 31:0d2c19a285f6 1296 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1297 draw_grad(lcd, cha, 2, 74);
yfkwok 31:0d2c19a285f6 1298 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1299 draw_grad(lcd, cha, 2, 64);
yfkwok 31:0d2c19a285f6 1300 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1301 draw_grad(lcd, cha, 2, 54);
yfkwok 31:0d2c19a285f6 1302 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1303 draw_grad(lcd, cha, 2, 44);
yfkwok 31:0d2c19a285f6 1304 pad.tone(NOTE_B4,0.46*2);
yfkwok 31:0d2c19a285f6 1305 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1306 draw_grad(lcd, cha, 2, 34);
yfkwok 31:0d2c19a285f6 1307 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1308 draw_grad(lcd, cha, 2, 24);
yfkwok 31:0d2c19a285f6 1309 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1310 draw_grad(lcd, cha, 2, 17);
yfkwok 31:0d2c19a285f6 1311 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1312 // bar 8
yfkwok 31:0d2c19a285f6 1313 pad.tone(NOTE_C5,0.46*1.5);
yfkwok 31:0d2c19a285f6 1314 wait(0.46*1.5);
yfkwok 31:0d2c19a285f6 1315 pad.tone(NOTE_G4,0.46/4);
yfkwok 31:0d2c19a285f6 1316 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1317 pad.tone(NOTE_C5,0.46/4);
yfkwok 31:0d2c19a285f6 1318 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1319 pad.tone(NOTE_E5,0.46*2);
yfkwok 31:0d2c19a285f6 1320 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1321 // bar 9
yfkwok 31:0d2c19a285f6 1322 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1323 pad.tone(NOTE_G4,0.46/2);
yfkwok 31:0d2c19a285f6 1324 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1325 pad.tone(NOTE_C5,0.46/2);
yfkwok 31:0d2c19a285f6 1326 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1327 pad.tone(NOTE_G5,0.46/2);
yfkwok 31:0d2c19a285f6 1328 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1329 pad.tone(NOTE_F5,0.46/2);
yfkwok 31:0d2c19a285f6 1330 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1331 pad.tone(NOTE_E5,0.46/2);
yfkwok 31:0d2c19a285f6 1332 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1333 pad.tone(NOTE_D5,0.46/2);
yfkwok 31:0d2c19a285f6 1334 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1335 pad.tone(NOTE_C5,0.46/2);
yfkwok 31:0d2c19a285f6 1336 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1337 // bar 10
yfkwok 31:0d2c19a285f6 1338 pad.tone(NOTE_D5,0.46*2);
yfkwok 31:0d2c19a285f6 1339 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1340 pad.tone(NOTE_F5,0.46*2);
yfkwok 31:0d2c19a285f6 1341 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1342 // bar 11
yfkwok 31:0d2c19a285f6 1343 pad.tone(NOTE_B4,0.46*2);
yfkwok 31:0d2c19a285f6 1344 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1345 pad.tone(NOTE_D5,0.46*1.5);
yfkwok 31:0d2c19a285f6 1346 wait(0.46*1.5);
yfkwok 31:0d2c19a285f6 1347 pad.tone(NOTE_C5,0.46/4);
yfkwok 31:0d2c19a285f6 1348 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1349 pad.tone(NOTE_D5,0.46/4);
yfkwok 31:0d2c19a285f6 1350 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1351 // bar 12
yfkwok 31:0d2c19a285f6 1352 pad.tone(NOTE_E5,0.46/2);
yfkwok 31:0d2c19a285f6 1353 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1354 draw_grad(lcd, cha, 2, 7);
yfkwok 31:0d2c19a285f6 1355 pad.tone(NOTE_D5,0.46/2);
yfkwok 31:0d2c19a285f6 1356 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1357 draw_grad(lcd, cha, 2, -3);
yfkwok 31:0d2c19a285f6 1358 pad.tone(NOTE_E5,0.46/2);
yfkwok 31:0d2c19a285f6 1359 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1360 draw_grad(lcd, cha, 2, -13);
yfkwok 31:0d2c19a285f6 1361 pad.tone(NOTE_C5,0.46*2);
yfkwok 31:0d2c19a285f6 1362 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1363 draw_grad(lcd, cha, 2, -23);
yfkwok 31:0d2c19a285f6 1364 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1365 draw_grad(lcd, cha, 2, -33);
yfkwok 31:0d2c19a285f6 1366 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1367 draw_grad(lcd, cha, 2, -43);
yfkwok 31:0d2c19a285f6 1368 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1369 draw_grad(lcd, cha, 2, -53);
yfkwok 31:0d2c19a285f6 1370 pad.tone(NOTE_B4,0.46/4);
yfkwok 31:0d2c19a285f6 1371 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1372 pad.tone(NOTE_C5,0.46/4);
yfkwok 31:0d2c19a285f6 1373 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1374 draw_grad(lcd, cha, 2, -63);
yfkwok 31:0d2c19a285f6 1375 // bar 13
yfkwok 31:0d2c19a285f6 1376 pad.tone(NOTE_D5,0.46/2);
yfkwok 31:0d2c19a285f6 1377 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1378 pad.tone(NOTE_G4,0.46);
yfkwok 31:0d2c19a285f6 1379 wait(0.46);
yfkwok 31:0d2c19a285f6 1380 pad.tone(NOTE_G5,0.46*2);
yfkwok 31:0d2c19a285f6 1381 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1382 pad.tone(NOTE_F5,0.46/4);
yfkwok 31:0d2c19a285f6 1383 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1384 pad.tone(NOTE_E5,0.46/4);
yfkwok 31:0d2c19a285f6 1385 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1386 // bar 14
yfkwok 31:0d2c19a285f6 1387 pad.tone(NOTE_F5,0.46*2/3);
yfkwok 31:0d2c19a285f6 1388 wait(0.46*2/3);
yfkwok 31:0d2c19a285f6 1389 pad.tone(NOTE_E5,0.46*2/3);
yfkwok 31:0d2c19a285f6 1390 wait(0.46*2/3);
yfkwok 31:0d2c19a285f6 1391 pad.tone(NOTE_C5,0.46*2/3);
yfkwok 31:0d2c19a285f6 1392 wait(0.46*2/3);
yfkwok 31:0d2c19a285f6 1393 pad.tone(NOTE_C5,0.46*2);
yfkwok 31:0d2c19a285f6 1394 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1395 // bar 15
yfkwok 31:0d2c19a285f6 1396 pad.tone(NOTE_A4,0.46*2);
yfkwok 31:0d2c19a285f6 1397 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1398 pad.tone(NOTE_B4,0.46*2);
yfkwok 31:0d2c19a285f6 1399 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1400 // bar 16
yfkwok 31:0d2c19a285f6 1401 draw_grad(lcd, cha, 3, 0);
yfkwok 31:0d2c19a285f6 1402 pad.tone(NOTE_E5,0.46/2);
yfkwok 31:0d2c19a285f6 1403 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1404 pad.tone(NOTE_D5,0.46/2);
yfkwok 31:0d2c19a285f6 1405 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1406 pad.tone(NOTE_E5,0.46/2);
yfkwok 31:0d2c19a285f6 1407 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1408 pad.tone(NOTE_C5,0.46*2);
yfkwok 31:0d2c19a285f6 1409 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1410 pad.tone(NOTE_B4,0.46/4);
yfkwok 31:0d2c19a285f6 1411 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1412 pad.tone(NOTE_C5,0.46/4);
yfkwok 31:0d2c19a285f6 1413 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1414 // bar 17
yfkwok 31:0d2c19a285f6 1415 pad.tone(NOTE_D5,0.46/2);
yfkwok 31:0d2c19a285f6 1416 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1417 pad.tone(NOTE_G4,0.46);
yfkwok 31:0d2c19a285f6 1418 wait(0.46);
yfkwok 31:0d2c19a285f6 1419 pad.tone(NOTE_G5,0.46*2);
yfkwok 31:0d2c19a285f6 1420 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1421 pad.tone(NOTE_F5,0.46/4);
yfkwok 31:0d2c19a285f6 1422 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1423 pad.tone(NOTE_E5,0.46/4);
yfkwok 31:0d2c19a285f6 1424 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1425 // bar 18
yfkwok 31:0d2c19a285f6 1426 pad.tone(NOTE_F5,0.46*2/3);
yfkwok 31:0d2c19a285f6 1427 wait(0.46*2/3);
yfkwok 31:0d2c19a285f6 1428 pad.tone(NOTE_E5,0.46*2/3);
yfkwok 31:0d2c19a285f6 1429 wait(0.46*2/3);
yfkwok 31:0d2c19a285f6 1430 pad.tone(NOTE_C5,0.46*2/3);
yfkwok 31:0d2c19a285f6 1431 wait(0.46*2/3);
yfkwok 31:0d2c19a285f6 1432 pad.tone(NOTE_C5,0.46*2);
yfkwok 31:0d2c19a285f6 1433 wait(0.46*2);
yfkwok 31:0d2c19a285f6 1434 // bar 19
yfkwok 31:0d2c19a285f6 1435 pad.tone(NOTE_A4,0.46*1.5);
yfkwok 31:0d2c19a285f6 1436 wait(0.46*1.5);
yfkwok 31:0d2c19a285f6 1437 pad.tone(NOTE_G4,0.46/4);
yfkwok 31:0d2c19a285f6 1438 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1439 pad.tone(NOTE_A4,0.46/4);
yfkwok 31:0d2c19a285f6 1440 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1441 pad.tone(NOTE_B4,0.46);
yfkwok 31:0d2c19a285f6 1442 wait(0.46);
yfkwok 31:0d2c19a285f6 1443 pad.tone(NOTE_D5,0.46);
yfkwok 31:0d2c19a285f6 1444 wait(0.46);
yfkwok 31:0d2c19a285f6 1445 // bar 20
yfkwok 31:0d2c19a285f6 1446 pad.tone(NOTE_C5,0.46/2);
yfkwok 31:0d2c19a285f6 1447 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1448 pad.tone(NOTE_C5,0.46);
yfkwok 31:0d2c19a285f6 1449 wait(0.46);
yfkwok 31:0d2c19a285f6 1450 pad.tone(NOTE_C5,0.46/4);
yfkwok 31:0d2c19a285f6 1451 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1452 pad.tone(NOTE_C5,0.46/4);
yfkwok 31:0d2c19a285f6 1453 wait(0.46/4);
yfkwok 31:0d2c19a285f6 1454 pad.tone(NOTE_C5,0.46/2);
yfkwok 31:0d2c19a285f6 1455 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1456 pad.tone(NOTE_C5,0.46/2);
yfkwok 31:0d2c19a285f6 1457 wait(0.46/2);
yfkwok 31:0d2c19a285f6 1458 pad.tone(NOTE_C5,0.46);
yfkwok 31:0d2c19a285f6 1459 wait(0.46);
yfkwok 2:464c7e62d97d 1460 }