Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: USBHost USBHostXpad mbed-rtos mbed
Audio.h@2:5e870c215495, 2014-11-15 (annotated)
- Committer:
- hotwheelharry
- Date:
- Sat Nov 15 21:42:16 2014 +0000
- Revision:
- 2:5e870c215495
- Parent:
- 0:79485480cd7e
- Child:
- 8:36b2ef26a0b1
thread tweaks
Who changed what in which revision?
| User | Revision | Line number | New 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 | 2:5e870c215495 | 11 | std::vector<Thread*> threadpool; |
| hotwheelharry | 2:5e870c215495 | 12 | |
| hotwheelharry | 2:5e870c215495 | 13 | |
| hotwheelharry | 0:79485480cd7e | 14 | public: |
| hotwheelharry | 0:79485480cd7e | 15 | Audio(Speaker& ao) : speaker(ao) |
| hotwheelharry | 0:79485480cd7e | 16 | { |
| hotwheelharry | 0:79485480cd7e | 17 | } |
| hotwheelharry | 0:79485480cd7e | 18 | void playSong(/**/){ |
| hotwheelharry | 0:79485480cd7e | 19 | mutex.lock(); |
| hotwheelharry | 0:79485480cd7e | 20 | |
| hotwheelharry | 0:79485480cd7e | 21 | mutex.unlock(); |
| hotwheelharry | 0:79485480cd7e | 22 | } |
| hotwheelharry | 0:79485480cd7e | 23 | void triggerShot(){ |
| hotwheelharry | 0:79485480cd7e | 24 | mutex.lock(); |
| hotwheelharry | 0:79485480cd7e | 25 | |
| hotwheelharry | 0:79485480cd7e | 26 | mutex.unlock(); |
| hotwheelharry | 0:79485480cd7e | 27 | } |
| hotwheelharry | 0:79485480cd7e | 28 | |
| hotwheelharry | 0:79485480cd7e | 29 | void run(){ |
| hotwheelharry | 0:79485480cd7e | 30 | while(true){ //service audio requests... |
| hotwheelharry | 2:5e870c215495 | 31 | |
| hotwheelharry | 2:5e870c215495 | 32 | //put stuff here |
| hotwheelharry | 2:5e870c215495 | 33 | Thread::wait(10); //ms |
| hotwheelharry | 0:79485480cd7e | 34 | } |
| hotwheelharry | 0:79485480cd7e | 35 | } |
| hotwheelharry | 0:79485480cd7e | 36 | void playNote(float a, float b, float c){ |
| hotwheelharry | 2:5e870c215495 | 37 | float args[3] = {a,b,c}; |
| hotwheelharry | 0:79485480cd7e | 38 | mutex.lock(); |
| hotwheelharry | 2:5e870c215495 | 39 | //Thread t(_threadPlayNote, (void*)args); |
| hotwheelharry | 2:5e870c215495 | 40 | mutex.unlock(); |
| hotwheelharry | 0:79485480cd7e | 41 | } |
| hotwheelharry | 0:79485480cd7e | 42 | |
| hotwheelharry | 0:79485480cd7e | 43 | void playMario(){ |
| hotwheelharry | 2:5e870c215495 | 44 | |
| hotwheelharry | 2:5e870c215495 | 45 | } |
| hotwheelharry | 2:5e870c215495 | 46 | |
| hotwheelharry | 2:5e870c215495 | 47 | private: |
| hotwheelharry | 2:5e870c215495 | 48 | void _threadPlayNote(void const * args){ |
| hotwheelharry | 2:5e870c215495 | 49 | float const* fargs = (float const*)args; |
| hotwheelharry | 2:5e870c215495 | 50 | mutex.lock(); |
| hotwheelharry | 2:5e870c215495 | 51 | speaker.PlayNote(fargs[0],fargs[1],fargs[2]); |
| hotwheelharry | 2:5e870c215495 | 52 | mutex.unlock(); |
| hotwheelharry | 2:5e870c215495 | 53 | } |
| hotwheelharry | 2:5e870c215495 | 54 | |
| hotwheelharry | 2:5e870c215495 | 55 | void _playMario(){ |
| hotwheelharry | 0:79485480cd7e | 56 | |
| hotwheelharry | 0:79485480cd7e | 57 | playNote(660.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 58 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 59 | playNote(660.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 60 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 61 | playNote(660.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 62 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 63 | playNote(510.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 64 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 65 | playNote(660.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 66 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 67 | playNote(770.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 68 | Thread::wait(413); |
| hotwheelharry | 0:79485480cd7e | 69 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 70 | Thread::wait(431); |
| hotwheelharry | 0:79485480cd7e | 71 | playNote(510.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 72 | Thread::wait(338); |
| hotwheelharry | 0:79485480cd7e | 73 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 74 | Thread::wait(300); |
| hotwheelharry | 0:79485480cd7e | 75 | playNote(320.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 76 | Thread::wait(375); |
| hotwheelharry | 0:79485480cd7e | 77 | playNote(440.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 78 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 79 | playNote(480.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 80 | Thread::wait(248); |
| hotwheelharry | 0:79485480cd7e | 81 | playNote(450.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 82 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 83 | playNote(430.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 84 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 85 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 86 | Thread::wait(150); |
| hotwheelharry | 0:79485480cd7e | 87 | playNote(660.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 88 | Thread::wait(150); |
| hotwheelharry | 0:79485480cd7e | 89 | playNote(760.0, 0.04, 1.0); |
| hotwheelharry | 0:79485480cd7e | 90 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 91 | playNote(860.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 92 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 93 | playNote(700.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 94 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 95 | playNote(760.0, 0.04, 1.0); |
| hotwheelharry | 0:79485480cd7e | 96 | Thread::wait(263); |
| hotwheelharry | 0:79485480cd7e | 97 | playNote(660.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 98 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 99 | playNote(520.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 100 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 101 | playNote(580.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 102 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 103 | playNote(480.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 104 | Thread::wait(375); |
| hotwheelharry | 0:79485480cd7e | 105 | playNote(510.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 106 | Thread::wait(338); |
| hotwheelharry | 0:79485480cd7e | 107 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 108 | Thread::wait(300); |
| hotwheelharry | 0:79485480cd7e | 109 | playNote(320.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 110 | Thread::wait(375); |
| hotwheelharry | 0:79485480cd7e | 111 | playNote(440.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 112 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 113 | playNote(480.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 114 | Thread::wait(248); |
| hotwheelharry | 0:79485480cd7e | 115 | playNote(450.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 116 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 117 | playNote(430.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 118 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 119 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 120 | Thread::wait(150); |
| hotwheelharry | 0:79485480cd7e | 121 | playNote(660.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 122 | Thread::wait(150); |
| hotwheelharry | 0:79485480cd7e | 123 | playNote(760.0, 0.04, 1.0); |
| hotwheelharry | 0:79485480cd7e | 124 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 125 | playNote(860.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 126 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 127 | playNote(700.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 128 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 129 | playNote(760.0, 0.04, 1.0); |
| hotwheelharry | 0:79485480cd7e | 130 | Thread::wait(263); |
| hotwheelharry | 0:79485480cd7e | 131 | playNote(660.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 132 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 133 | playNote(520.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 134 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 135 | playNote(580.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 136 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 137 | playNote(480.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 138 | Thread::wait(375); |
| hotwheelharry | 0:79485480cd7e | 139 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 140 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 141 | playNote(760.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 142 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 143 | playNote(720.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 144 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 145 | playNote(680.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 146 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 147 | playNote(620.0, 0.11, 1.0); |
| hotwheelharry | 0:79485480cd7e | 148 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 149 | playNote(650.0, 0.11, 1.0); |
| hotwheelharry | 0:79485480cd7e | 150 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 151 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 152 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 153 | playNote(430.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 154 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 155 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 156 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 157 | playNote(430.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 158 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 159 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 160 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 161 | playNote(570.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 162 | Thread::wait(165); |
| hotwheelharry | 0:79485480cd7e | 163 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 164 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 165 | playNote(760.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 166 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 167 | playNote(720.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 168 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 169 | playNote(680.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 170 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 171 | playNote(620.0, 0.11, 1.0); |
| hotwheelharry | 0:79485480cd7e | 172 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 173 | playNote(650.0, 0.15, 1.0); |
| hotwheelharry | 0:79485480cd7e | 174 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 175 | playNote(1020.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 176 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 177 | playNote(1020.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 178 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 179 | playNote(1020.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 180 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 181 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 182 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 183 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 184 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 185 | playNote(760.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 186 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 187 | playNote(720.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 188 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 189 | playNote(680.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 190 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 191 | playNote(620.0, 0.11, 1.0); |
| hotwheelharry | 0:79485480cd7e | 192 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 193 | playNote(650.0, 0.11, 1.0); |
| hotwheelharry | 0:79485480cd7e | 194 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 195 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 196 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 197 | playNote(430.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 198 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 199 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 200 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 201 | playNote(430.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 202 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 203 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 204 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 205 | playNote(570.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 206 | Thread::wait(315); |
| hotwheelharry | 0:79485480cd7e | 207 | playNote(585.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 208 | Thread::wait(338); |
| hotwheelharry | 0:79485480cd7e | 209 | playNote(550.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 210 | Thread::wait(315); |
| hotwheelharry | 0:79485480cd7e | 211 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 212 | Thread::wait(270); |
| hotwheelharry | 0:79485480cd7e | 213 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 214 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 215 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 216 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 217 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 218 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 219 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 220 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 221 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 222 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 223 | playNote(760.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 224 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 225 | playNote(720.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 226 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 227 | playNote(680.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 228 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 229 | playNote(620.0, 0.11, 1.0); |
| hotwheelharry | 0:79485480cd7e | 230 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 231 | playNote(650.0, 0.11, 1.0); |
| hotwheelharry | 0:79485480cd7e | 232 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 233 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 234 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 235 | playNote(430.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 236 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 237 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 238 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 239 | playNote(430.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 240 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 241 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 242 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 243 | playNote(570.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 244 | Thread::wait(165); |
| hotwheelharry | 0:79485480cd7e | 245 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 246 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 247 | playNote(760.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 248 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 249 | playNote(720.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 250 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 251 | playNote(680.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 252 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 253 | playNote(620.0, 0.11, 1.0); |
| hotwheelharry | 0:79485480cd7e | 254 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 255 | playNote(650.0, 0.15, 1.0); |
| hotwheelharry | 0:79485480cd7e | 256 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 257 | playNote(1020.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 258 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 259 | playNote(1020.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 260 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 261 | playNote(1020.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 262 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 263 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 264 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 265 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 266 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 267 | playNote(760.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 268 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 269 | playNote(720.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 270 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 271 | playNote(680.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 272 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 273 | playNote(620.0, 0.11, 1.0); |
| hotwheelharry | 0:79485480cd7e | 274 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 275 | playNote(650.0, 0.11, 1.0); |
| hotwheelharry | 0:79485480cd7e | 276 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 277 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 278 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 279 | playNote(430.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 280 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 281 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 282 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 283 | playNote(430.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 284 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 285 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 286 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 287 | playNote(570.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 288 | Thread::wait(315); |
| hotwheelharry | 0:79485480cd7e | 289 | playNote(585.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 290 | Thread::wait(338); |
| hotwheelharry | 0:79485480cd7e | 291 | playNote(550.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 292 | Thread::wait(315); |
| hotwheelharry | 0:79485480cd7e | 293 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 294 | Thread::wait(270); |
| hotwheelharry | 0:79485480cd7e | 295 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 296 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 297 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 298 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 299 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 300 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 301 | playNote(500.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 302 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 303 | playNote(500.0, 0.04, 1.0); |
| hotwheelharry | 0:79485480cd7e | 304 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 305 | playNote(500.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 306 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 307 | playNote(500.0, 0.04, 1.0); |
| hotwheelharry | 0:79485480cd7e | 308 | Thread::wait(263); |
| hotwheelharry | 0:79485480cd7e | 309 | playNote(500.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 310 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 311 | playNote(580.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 312 | Thread::wait(263); |
| hotwheelharry | 0:79485480cd7e | 313 | playNote(660.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 314 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 315 | playNote(500.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 316 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 317 | playNote(430.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 318 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 319 | playNote(380.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 320 | Thread::wait(450); |
| hotwheelharry | 0:79485480cd7e | 321 | playNote(500.0, 0.04, 1.0); |
| hotwheelharry | 0:79485480cd7e | 322 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 323 | playNote(500.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 324 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 325 | playNote(500.0, 0.04, 1.0); |
| hotwheelharry | 0:79485480cd7e | 326 | Thread::wait(263); |
| hotwheelharry | 0:79485480cd7e | 327 | playNote(500.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 328 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 329 | playNote(580.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 330 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 331 | playNote(660.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 332 | Thread::wait(413); |
| hotwheelharry | 0:79485480cd7e | 333 | playNote(870.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 334 | Thread::wait(244); |
| hotwheelharry | 0:79485480cd7e | 335 | playNote(760.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 336 | Thread::wait(450); |
| hotwheelharry | 0:79485480cd7e | 337 | playNote(500.0, 0.04, 1.0); |
| hotwheelharry | 0:79485480cd7e | 338 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 339 | playNote(500.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 340 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 341 | playNote(500.0, 0.04, 1.0); |
| hotwheelharry | 0:79485480cd7e | 342 | Thread::wait(263); |
| hotwheelharry | 0:79485480cd7e | 343 | playNote(500.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 344 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 345 | playNote(580.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 346 | Thread::wait(263); |
| hotwheelharry | 0:79485480cd7e | 347 | playNote(660.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 348 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 349 | playNote(500.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 350 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 351 | playNote(430.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 352 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 353 | playNote(380.0, 0.06, 1.0); |
| hotwheelharry | 0:79485480cd7e | 354 | Thread::wait(450); |
| hotwheelharry | 0:79485480cd7e | 355 | playNote(660.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 356 | Thread::wait(113); |
| hotwheelharry | 0:79485480cd7e | 357 | playNote(660.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 358 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 359 | playNote(660.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 360 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 361 | playNote(510.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 362 | Thread::wait(75); |
| hotwheelharry | 0:79485480cd7e | 363 | playNote(660.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 364 | Thread::wait(225); |
| hotwheelharry | 0:79485480cd7e | 365 | playNote(770.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 366 | Thread::wait(413); |
| hotwheelharry | 0:79485480cd7e | 367 | playNote(380.0, 0.08, 1.0); |
| hotwheelharry | 0:79485480cd7e | 368 | Thread::wait(431); |
| hotwheelharry | 0:79485480cd7e | 369 | |
| hotwheelharry | 0:79485480cd7e | 370 | } |
| hotwheelharry | 0:79485480cd7e | 371 | }; |
