Niet van mijzelf

Dependencies:   USBHost USBHostXpad mbed-rtos mbed

Fork of x4180_Tank by C K

Committer:
347467
Date:
Wed Feb 25 08:38:37 2015 +0000
Revision:
10:7e3987c8fa37
Parent:
8:36b2ef26a0b1
Xboxcontroller;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hotwheelharry 0:79485480cd7e 1
hotwheelharry 0:79485480cd7e 2 #include "Speaker.h"
hotwheelharry 2:5e870c215495 3 #include <vector>
hotwheelharry 0:79485480cd7e 4
hotwheelharry 2:5e870c215495 5 //This needs work to get threading working
hotwheelharry 0:79485480cd7e 6
hotwheelharry 0:79485480cd7e 7 class Audio{
hotwheelharry 0:79485480cd7e 8 private:
hotwheelharry 0:79485480cd7e 9 Mutex mutex;
hotwheelharry 0:79485480cd7e 10 Speaker& speaker;
hotwheelharry 8:36b2ef26a0b1 11 bool playing;
hotwheelharry 8:36b2ef26a0b1 12 int code; //sound code
hotwheelharry 2:5e870c215495 13
hotwheelharry 8:36b2ef26a0b1 14 bool getplaying(){
hotwheelharry 8:36b2ef26a0b1 15 bool b;
hotwheelharry 8:36b2ef26a0b1 16 mutex.lock();
hotwheelharry 8:36b2ef26a0b1 17 b = playing;
hotwheelharry 8:36b2ef26a0b1 18 mutex.unlock();
hotwheelharry 8:36b2ef26a0b1 19 return b;
hotwheelharry 8:36b2ef26a0b1 20 }
hotwheelharry 8:36b2ef26a0b1 21 int getcode(){
hotwheelharry 8:36b2ef26a0b1 22 int c;
hotwheelharry 8:36b2ef26a0b1 23 mutex.lock();
hotwheelharry 8:36b2ef26a0b1 24 c = code;
hotwheelharry 8:36b2ef26a0b1 25 mutex.unlock();
hotwheelharry 8:36b2ef26a0b1 26 return c;
hotwheelharry 8:36b2ef26a0b1 27 }
hotwheelharry 0:79485480cd7e 28 public:
hotwheelharry 0:79485480cd7e 29 Audio(Speaker& ao) : speaker(ao)
hotwheelharry 0:79485480cd7e 30 {
hotwheelharry 0:79485480cd7e 31 }
hotwheelharry 8:36b2ef26a0b1 32 void play(int code){
hotwheelharry 0:79485480cd7e 33 mutex.lock();
hotwheelharry 8:36b2ef26a0b1 34 this->code = code;
hotwheelharry 8:36b2ef26a0b1 35 this->playing = true;
hotwheelharry 0:79485480cd7e 36 mutex.unlock();
hotwheelharry 0:79485480cd7e 37 }
hotwheelharry 8:36b2ef26a0b1 38 void stop(){
hotwheelharry 0:79485480cd7e 39 mutex.lock();
hotwheelharry 8:36b2ef26a0b1 40 this->playing = false;
hotwheelharry 0:79485480cd7e 41 mutex.unlock();
hotwheelharry 0:79485480cd7e 42 }
hotwheelharry 0:79485480cd7e 43
hotwheelharry 0:79485480cd7e 44 void run(){
hotwheelharry 0:79485480cd7e 45 while(true){ //service audio requests...
hotwheelharry 8:36b2ef26a0b1 46
hotwheelharry 8:36b2ef26a0b1 47 //if not playing, wait fast
hotwheelharry 8:36b2ef26a0b1 48 if(!getplaying()){
hotwheelharry 8:36b2ef26a0b1 49 Thread::wait(1);
hotwheelharry 8:36b2ef26a0b1 50 continue;
hotwheelharry 8:36b2ef26a0b1 51 }
hotwheelharry 8:36b2ef26a0b1 52
hotwheelharry 8:36b2ef26a0b1 53
hotwheelharry 8:36b2ef26a0b1 54 int code = getcode();
hotwheelharry 8:36b2ef26a0b1 55
hotwheelharry 8:36b2ef26a0b1 56 switch(code){
hotwheelharry 8:36b2ef26a0b1 57 case 0: // up
hotwheelharry 8:36b2ef26a0b1 58 speaker.PlayNote(500.0, 0.05, 1.0);
hotwheelharry 8:36b2ef26a0b1 59 speaker.PlayNote(600.0, 0.05, 1.0);
hotwheelharry 8:36b2ef26a0b1 60 speaker.PlayNote(700.0, 0.05, 1.0);
hotwheelharry 8:36b2ef26a0b1 61 break;
hotwheelharry 8:36b2ef26a0b1 62 case 1: // down
hotwheelharry 8:36b2ef26a0b1 63 speaker.PlayNote(500.0, 0.05, 1.0);
hotwheelharry 8:36b2ef26a0b1 64 speaker.PlayNote(550.0, 0.05, 1.0);
hotwheelharry 8:36b2ef26a0b1 65 break;
hotwheelharry 8:36b2ef26a0b1 66 case 2: //left
hotwheelharry 8:36b2ef26a0b1 67 speaker.PlayNote(400.0, 0.1, 1.0);
hotwheelharry 8:36b2ef26a0b1 68 speaker.PlayNote(500.0, 0.1, 1.0);
hotwheelharry 8:36b2ef26a0b1 69 break;
hotwheelharry 8:36b2ef26a0b1 70 case 3: // right
hotwheelharry 8:36b2ef26a0b1 71 speaker.PlayNote(600.0, 0.05, 1.0);
hotwheelharry 8:36b2ef26a0b1 72 speaker.PlayNote(500.0, 0.05, 1.0);
hotwheelharry 8:36b2ef26a0b1 73 break;
hotwheelharry 8:36b2ef26a0b1 74
hotwheelharry 8:36b2ef26a0b1 75 // trigger sound
hotwheelharry 8:36b2ef26a0b1 76 case 4:
hotwheelharry 8:36b2ef26a0b1 77
hotwheelharry 8:36b2ef26a0b1 78 speaker.PlayNote(500.0, 0.05, 1.0);
hotwheelharry 8:36b2ef26a0b1 79 speaker.PlayNote(600.0, 0.05, 1.0);
hotwheelharry 8:36b2ef26a0b1 80 speaker.PlayNote(700.0, 0.05, 1.0);
hotwheelharry 8:36b2ef26a0b1 81 break;
hotwheelharry 8:36b2ef26a0b1 82
hotwheelharry 8:36b2ef26a0b1 83 // mario!
hotwheelharry 8:36b2ef26a0b1 84 case 5:
hotwheelharry 8:36b2ef26a0b1 85 playMario();
hotwheelharry 8:36b2ef26a0b1 86 break;
hotwheelharry 8:36b2ef26a0b1 87 default: break;
hotwheelharry 8:36b2ef26a0b1 88 }
hotwheelharry 8:36b2ef26a0b1 89
hotwheelharry 8:36b2ef26a0b1 90
hotwheelharry 8:36b2ef26a0b1 91 //Thread::wait(10);
hotwheelharry 0:79485480cd7e 92 }
hotwheelharry 0:79485480cd7e 93 }
hotwheelharry 8:36b2ef26a0b1 94
hotwheelharry 8:36b2ef26a0b1 95
hotwheelharry 0:79485480cd7e 96 void playNote(float a, float b, float c){
hotwheelharry 8:36b2ef26a0b1 97 speaker.PlayNote(a,b,c);
hotwheelharry 0:79485480cd7e 98 }
hotwheelharry 0:79485480cd7e 99
hotwheelharry 8:36b2ef26a0b1 100 public:
hotwheelharry 8:36b2ef26a0b1 101
hotwheelharry 0:79485480cd7e 102 void playMario(){
hotwheelharry 0:79485480cd7e 103
hotwheelharry 0:79485480cd7e 104 playNote(660.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 105 Thread::wait(113);
hotwheelharry 0:79485480cd7e 106 playNote(660.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 107 Thread::wait(225);
hotwheelharry 0:79485480cd7e 108 playNote(660.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 109 Thread::wait(225);
hotwheelharry 0:79485480cd7e 110 playNote(510.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 111 Thread::wait(75);
hotwheelharry 0:79485480cd7e 112 playNote(660.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 113 Thread::wait(225);
hotwheelharry 0:79485480cd7e 114 playNote(770.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 115 Thread::wait(413);
hotwheelharry 0:79485480cd7e 116 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 117 Thread::wait(431);
hotwheelharry 0:79485480cd7e 118 playNote(510.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 119 Thread::wait(338);
hotwheelharry 0:79485480cd7e 120 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 121 Thread::wait(300);
hotwheelharry 0:79485480cd7e 122 playNote(320.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 123 Thread::wait(375);
hotwheelharry 0:79485480cd7e 124 playNote(440.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 125 Thread::wait(225);
hotwheelharry 0:79485480cd7e 126 playNote(480.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 127 Thread::wait(248);
hotwheelharry 0:79485480cd7e 128 playNote(450.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 129 Thread::wait(113);
hotwheelharry 0:79485480cd7e 130 playNote(430.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 131 Thread::wait(225);
hotwheelharry 0:79485480cd7e 132 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 133 Thread::wait(150);
hotwheelharry 0:79485480cd7e 134 playNote(660.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 135 Thread::wait(150);
hotwheelharry 0:79485480cd7e 136 playNote(760.0, 0.04, 1.0);
hotwheelharry 0:79485480cd7e 137 Thread::wait(113);
hotwheelharry 0:79485480cd7e 138 playNote(860.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 139 Thread::wait(225);
hotwheelharry 0:79485480cd7e 140 playNote(700.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 141 Thread::wait(113);
hotwheelharry 0:79485480cd7e 142 playNote(760.0, 0.04, 1.0);
hotwheelharry 0:79485480cd7e 143 Thread::wait(263);
hotwheelharry 0:79485480cd7e 144 playNote(660.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 145 Thread::wait(225);
hotwheelharry 0:79485480cd7e 146 playNote(520.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 147 Thread::wait(113);
hotwheelharry 0:79485480cd7e 148 playNote(580.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 149 Thread::wait(113);
hotwheelharry 0:79485480cd7e 150 playNote(480.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 151 Thread::wait(375);
hotwheelharry 0:79485480cd7e 152 playNote(510.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 153 Thread::wait(338);
hotwheelharry 0:79485480cd7e 154 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 155 Thread::wait(300);
hotwheelharry 0:79485480cd7e 156 playNote(320.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 157 Thread::wait(375);
hotwheelharry 0:79485480cd7e 158 playNote(440.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 159 Thread::wait(225);
hotwheelharry 0:79485480cd7e 160 playNote(480.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 161 Thread::wait(248);
hotwheelharry 0:79485480cd7e 162 playNote(450.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 163 Thread::wait(113);
hotwheelharry 0:79485480cd7e 164 playNote(430.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 165 Thread::wait(225);
hotwheelharry 0:79485480cd7e 166 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 167 Thread::wait(150);
hotwheelharry 0:79485480cd7e 168 playNote(660.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 169 Thread::wait(150);
hotwheelharry 0:79485480cd7e 170 playNote(760.0, 0.04, 1.0);
hotwheelharry 0:79485480cd7e 171 Thread::wait(113);
hotwheelharry 0:79485480cd7e 172 playNote(860.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 173 Thread::wait(225);
hotwheelharry 0:79485480cd7e 174 playNote(700.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 175 Thread::wait(113);
hotwheelharry 0:79485480cd7e 176 playNote(760.0, 0.04, 1.0);
hotwheelharry 0:79485480cd7e 177 Thread::wait(263);
hotwheelharry 0:79485480cd7e 178 playNote(660.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 179 Thread::wait(225);
hotwheelharry 0:79485480cd7e 180 playNote(520.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 181 Thread::wait(113);
hotwheelharry 0:79485480cd7e 182 playNote(580.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 183 Thread::wait(113);
hotwheelharry 0:79485480cd7e 184 playNote(480.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 185 Thread::wait(375);
hotwheelharry 0:79485480cd7e 186 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 187 Thread::wait(225);
hotwheelharry 0:79485480cd7e 188 playNote(760.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 189 Thread::wait(75);
hotwheelharry 0:79485480cd7e 190 playNote(720.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 191 Thread::wait(113);
hotwheelharry 0:79485480cd7e 192 playNote(680.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 193 Thread::wait(113);
hotwheelharry 0:79485480cd7e 194 playNote(620.0, 0.11, 1.0);
hotwheelharry 0:79485480cd7e 195 Thread::wait(225);
hotwheelharry 0:79485480cd7e 196 playNote(650.0, 0.11, 1.0);
hotwheelharry 0:79485480cd7e 197 Thread::wait(225);
hotwheelharry 0:79485480cd7e 198 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 199 Thread::wait(113);
hotwheelharry 0:79485480cd7e 200 playNote(430.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 201 Thread::wait(113);
hotwheelharry 0:79485480cd7e 202 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 203 Thread::wait(225);
hotwheelharry 0:79485480cd7e 204 playNote(430.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 205 Thread::wait(113);
hotwheelharry 0:79485480cd7e 206 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 207 Thread::wait(75);
hotwheelharry 0:79485480cd7e 208 playNote(570.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 209 Thread::wait(165);
hotwheelharry 0:79485480cd7e 210 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 211 Thread::wait(225);
hotwheelharry 0:79485480cd7e 212 playNote(760.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 213 Thread::wait(75);
hotwheelharry 0:79485480cd7e 214 playNote(720.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 215 Thread::wait(113);
hotwheelharry 0:79485480cd7e 216 playNote(680.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 217 Thread::wait(113);
hotwheelharry 0:79485480cd7e 218 playNote(620.0, 0.11, 1.0);
hotwheelharry 0:79485480cd7e 219 Thread::wait(225);
hotwheelharry 0:79485480cd7e 220 playNote(650.0, 0.15, 1.0);
hotwheelharry 0:79485480cd7e 221 Thread::wait(225);
hotwheelharry 0:79485480cd7e 222 playNote(1020.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 223 Thread::wait(225);
hotwheelharry 0:79485480cd7e 224 playNote(1020.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 225 Thread::wait(113);
hotwheelharry 0:79485480cd7e 226 playNote(1020.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 227 Thread::wait(225);
hotwheelharry 0:79485480cd7e 228 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 229 Thread::wait(225);
hotwheelharry 0:79485480cd7e 230 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 231 Thread::wait(225);
hotwheelharry 0:79485480cd7e 232 playNote(760.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 233 Thread::wait(75);
hotwheelharry 0:79485480cd7e 234 playNote(720.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 235 Thread::wait(113);
hotwheelharry 0:79485480cd7e 236 playNote(680.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 237 Thread::wait(113);
hotwheelharry 0:79485480cd7e 238 playNote(620.0, 0.11, 1.0);
hotwheelharry 0:79485480cd7e 239 Thread::wait(225);
hotwheelharry 0:79485480cd7e 240 playNote(650.0, 0.11, 1.0);
hotwheelharry 0:79485480cd7e 241 Thread::wait(225);
hotwheelharry 0:79485480cd7e 242 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 243 Thread::wait(113);
hotwheelharry 0:79485480cd7e 244 playNote(430.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 245 Thread::wait(113);
hotwheelharry 0:79485480cd7e 246 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 247 Thread::wait(225);
hotwheelharry 0:79485480cd7e 248 playNote(430.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 249 Thread::wait(113);
hotwheelharry 0:79485480cd7e 250 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 251 Thread::wait(75);
hotwheelharry 0:79485480cd7e 252 playNote(570.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 253 Thread::wait(315);
hotwheelharry 0:79485480cd7e 254 playNote(585.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 255 Thread::wait(338);
hotwheelharry 0:79485480cd7e 256 playNote(550.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 257 Thread::wait(315);
hotwheelharry 0:79485480cd7e 258 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 259 Thread::wait(270);
hotwheelharry 0:79485480cd7e 260 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 261 Thread::wait(225);
hotwheelharry 0:79485480cd7e 262 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 263 Thread::wait(225);
hotwheelharry 0:79485480cd7e 264 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 265 Thread::wait(113);
hotwheelharry 0:79485480cd7e 266 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 267 Thread::wait(225);
hotwheelharry 0:79485480cd7e 268 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 269 Thread::wait(225);
hotwheelharry 0:79485480cd7e 270 playNote(760.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 271 Thread::wait(75);
hotwheelharry 0:79485480cd7e 272 playNote(720.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 273 Thread::wait(113);
hotwheelharry 0:79485480cd7e 274 playNote(680.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 275 Thread::wait(113);
hotwheelharry 0:79485480cd7e 276 playNote(620.0, 0.11, 1.0);
hotwheelharry 0:79485480cd7e 277 Thread::wait(225);
hotwheelharry 0:79485480cd7e 278 playNote(650.0, 0.11, 1.0);
hotwheelharry 0:79485480cd7e 279 Thread::wait(225);
hotwheelharry 0:79485480cd7e 280 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 281 Thread::wait(113);
hotwheelharry 0:79485480cd7e 282 playNote(430.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 283 Thread::wait(113);
hotwheelharry 0:79485480cd7e 284 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 285 Thread::wait(225);
hotwheelharry 0:79485480cd7e 286 playNote(430.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 287 Thread::wait(113);
hotwheelharry 0:79485480cd7e 288 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 289 Thread::wait(75);
hotwheelharry 0:79485480cd7e 290 playNote(570.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 291 Thread::wait(165);
hotwheelharry 0:79485480cd7e 292 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 293 Thread::wait(225);
hotwheelharry 0:79485480cd7e 294 playNote(760.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 295 Thread::wait(75);
hotwheelharry 0:79485480cd7e 296 playNote(720.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 297 Thread::wait(113);
hotwheelharry 0:79485480cd7e 298 playNote(680.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 299 Thread::wait(113);
hotwheelharry 0:79485480cd7e 300 playNote(620.0, 0.11, 1.0);
hotwheelharry 0:79485480cd7e 301 Thread::wait(225);
hotwheelharry 0:79485480cd7e 302 playNote(650.0, 0.15, 1.0);
hotwheelharry 0:79485480cd7e 303 Thread::wait(225);
hotwheelharry 0:79485480cd7e 304 playNote(1020.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 305 Thread::wait(225);
hotwheelharry 0:79485480cd7e 306 playNote(1020.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 307 Thread::wait(113);
hotwheelharry 0:79485480cd7e 308 playNote(1020.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 309 Thread::wait(225);
hotwheelharry 0:79485480cd7e 310 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 311 Thread::wait(225);
hotwheelharry 0:79485480cd7e 312 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 313 Thread::wait(225);
hotwheelharry 0:79485480cd7e 314 playNote(760.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 315 Thread::wait(75);
hotwheelharry 0:79485480cd7e 316 playNote(720.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 317 Thread::wait(113);
hotwheelharry 0:79485480cd7e 318 playNote(680.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 319 Thread::wait(113);
hotwheelharry 0:79485480cd7e 320 playNote(620.0, 0.11, 1.0);
hotwheelharry 0:79485480cd7e 321 Thread::wait(225);
hotwheelharry 0:79485480cd7e 322 playNote(650.0, 0.11, 1.0);
hotwheelharry 0:79485480cd7e 323 Thread::wait(225);
hotwheelharry 0:79485480cd7e 324 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 325 Thread::wait(113);
hotwheelharry 0:79485480cd7e 326 playNote(430.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 327 Thread::wait(113);
hotwheelharry 0:79485480cd7e 328 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 329 Thread::wait(225);
hotwheelharry 0:79485480cd7e 330 playNote(430.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 331 Thread::wait(113);
hotwheelharry 0:79485480cd7e 332 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 333 Thread::wait(75);
hotwheelharry 0:79485480cd7e 334 playNote(570.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 335 Thread::wait(315);
hotwheelharry 0:79485480cd7e 336 playNote(585.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 337 Thread::wait(338);
hotwheelharry 0:79485480cd7e 338 playNote(550.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 339 Thread::wait(315);
hotwheelharry 0:79485480cd7e 340 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 341 Thread::wait(270);
hotwheelharry 0:79485480cd7e 342 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 343 Thread::wait(225);
hotwheelharry 0:79485480cd7e 344 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 345 Thread::wait(225);
hotwheelharry 0:79485480cd7e 346 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 347 Thread::wait(113);
hotwheelharry 0:79485480cd7e 348 playNote(500.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 349 Thread::wait(225);
hotwheelharry 0:79485480cd7e 350 playNote(500.0, 0.04, 1.0);
hotwheelharry 0:79485480cd7e 351 Thread::wait(113);
hotwheelharry 0:79485480cd7e 352 playNote(500.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 353 Thread::wait(225);
hotwheelharry 0:79485480cd7e 354 playNote(500.0, 0.04, 1.0);
hotwheelharry 0:79485480cd7e 355 Thread::wait(263);
hotwheelharry 0:79485480cd7e 356 playNote(500.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 357 Thread::wait(113);
hotwheelharry 0:79485480cd7e 358 playNote(580.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 359 Thread::wait(263);
hotwheelharry 0:79485480cd7e 360 playNote(660.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 361 Thread::wait(113);
hotwheelharry 0:79485480cd7e 362 playNote(500.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 363 Thread::wait(225);
hotwheelharry 0:79485480cd7e 364 playNote(430.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 365 Thread::wait(113);
hotwheelharry 0:79485480cd7e 366 playNote(380.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 367 Thread::wait(450);
hotwheelharry 0:79485480cd7e 368 playNote(500.0, 0.04, 1.0);
hotwheelharry 0:79485480cd7e 369 Thread::wait(113);
hotwheelharry 0:79485480cd7e 370 playNote(500.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 371 Thread::wait(225);
hotwheelharry 0:79485480cd7e 372 playNote(500.0, 0.04, 1.0);
hotwheelharry 0:79485480cd7e 373 Thread::wait(263);
hotwheelharry 0:79485480cd7e 374 playNote(500.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 375 Thread::wait(113);
hotwheelharry 0:79485480cd7e 376 playNote(580.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 377 Thread::wait(113);
hotwheelharry 0:79485480cd7e 378 playNote(660.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 379 Thread::wait(413);
hotwheelharry 0:79485480cd7e 380 playNote(870.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 381 Thread::wait(244);
hotwheelharry 0:79485480cd7e 382 playNote(760.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 383 Thread::wait(450);
hotwheelharry 0:79485480cd7e 384 playNote(500.0, 0.04, 1.0);
hotwheelharry 0:79485480cd7e 385 Thread::wait(113);
hotwheelharry 0:79485480cd7e 386 playNote(500.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 387 Thread::wait(225);
hotwheelharry 0:79485480cd7e 388 playNote(500.0, 0.04, 1.0);
hotwheelharry 0:79485480cd7e 389 Thread::wait(263);
hotwheelharry 0:79485480cd7e 390 playNote(500.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 391 Thread::wait(113);
hotwheelharry 0:79485480cd7e 392 playNote(580.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 393 Thread::wait(263);
hotwheelharry 0:79485480cd7e 394 playNote(660.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 395 Thread::wait(113);
hotwheelharry 0:79485480cd7e 396 playNote(500.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 397 Thread::wait(225);
hotwheelharry 0:79485480cd7e 398 playNote(430.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 399 Thread::wait(113);
hotwheelharry 0:79485480cd7e 400 playNote(380.0, 0.06, 1.0);
hotwheelharry 0:79485480cd7e 401 Thread::wait(450);
hotwheelharry 0:79485480cd7e 402 playNote(660.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 403 Thread::wait(113);
hotwheelharry 0:79485480cd7e 404 playNote(660.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 405 Thread::wait(225);
hotwheelharry 0:79485480cd7e 406 playNote(660.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 407 Thread::wait(225);
hotwheelharry 0:79485480cd7e 408 playNote(510.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 409 Thread::wait(75);
hotwheelharry 0:79485480cd7e 410 playNote(660.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 411 Thread::wait(225);
hotwheelharry 0:79485480cd7e 412 playNote(770.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 413 Thread::wait(413);
hotwheelharry 0:79485480cd7e 414 playNote(380.0, 0.08, 1.0);
hotwheelharry 0:79485480cd7e 415 Thread::wait(431);
hotwheelharry 0:79485480cd7e 416
hotwheelharry 0:79485480cd7e 417 }
hotwheelharry 0:79485480cd7e 418 };