-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPython-of-Fortune.py
509 lines (454 loc) · 144 KB
/
Python-of-Fortune.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
###### Team 4 Final Project ######
# William Gillihan #
# Christopher Dixon #
# Wendy Gray #
# Brian Begun #
# #
# ver 12.07.15 #
# 12_15_2015 #
##################################
#######################
# import modules area #
#######################
import random
import copy
import os
import time
############################################
# global variables
############################################
soundSource = makeEmptySound(1,1)
phraseList = []
clip = makeEmptySound(1, 1)
picFile = makeEmptyPicture(1, 1)
###########################################################################
#################### BEGIN GAME SOUNDS AND WHEEL SPIN #####################
###########################################################################
#############################################################
# Game sound list: #
# Spinning Sound + return play amount = spinWheel() #
# Wrong Answer (Buzz) = playBuzzer() or play3Buzzer() #
# Right Answer (Ding Ding Ding) = playDing() or play3Ding() #
# Congrats You Won! (Ta DA!) = playTada() #
# You Lost (WAH Wah wah) = playWahWahWah() #
#############################################################
#############################################################
# creates spin wheel sound and returns $ amount playing for #
#############################################################
def spinWheel():
for i in range(100,1500,700):
rand = random.randint(1,9) * 100 + random.randint(0,9) * 10
printNow(">>> $" + str(rand))
playNote(125, i + 10,127)
rand = random.randint(1,9) * 100 + random.randint(0,9) * 10
printNow(">>> $" + str(rand))
playNote(125, i + 80,127)
rand = random.randint(1,9) * 100 + random.randint(0,9) * 10
printNow(">>> $" + str(rand))
playNote(125, i + 160,127)
randomNum = random.randint(1,9) * 100 + random.randint(0,9) * 10
printNow("$$$$$$$$>~~~~~~~<$$$$$$$$")
printNow("$$$$$$$$$> $" + str(randomNum) + " <$$$$$$$$$")
printNow("$$$$$$$$>~~~~~~~<$$$$$$$$\n")
playNote(125,200,127)
amount = randomNum
return amount
###########################
# plays single ding sound #
###########################
def playDing():
list = [-1714, 1956, -2964, 1117, 4205, 3241, -1958, -4516, -3162, 180, 6531, 5093, 4357, -4059, -8134, -6409, -2154, 6617, 8219, 6241, 542, -6390, -8294, -6101, 2270, 7494, 10346, 4944, -4305, -10121, -10776, -2931, 5259, 10471, 9334, 2179, -6589, -10178, -8413, -2331, 8590, 12314, 7960, -740, -9041, -11915, -7602, 1311, 10096, 11055, 5139, -3297, -10319, -11065, -4178, 5647, 10904, 8559, 2152, -4867, -9118, -8182, -1556, 6472, 9335, 7094, 700, -6709, -9120, -5720, 1367, 7183, 7652, 3947, -1596, -7954, -7379, -2083, 3340, 7121, 6157, 1275, -3944, -5539, -4630, 707, 4742, 5874, 3970, -1426, -5086, -5702, -2316, 1956, 5189, 3834, 1167, -2741, -5043, -3426, -167, 3420, 5593, 3096, -1562, -4899, -5257, -2151, 2902, 4734, 4656, 521, -4274, -5639, -4476, 804, 5327, 6080, 3154, -1812, -6192, -5493, -1949, 3297, 6356, 4885, 206, -4374, -5878, -3935, 882, 4681, 5338, 2660, -2134, -5085, -4744, -1741, 2889, 5331, 4252, 933, -3318, -5025, -3399, 124, 3749, 4979, 2504, -908, -3846, -4610, -1859, 1809, 4030, 4108, 644, -3206, -4288, -3448, 231, 3466, 4239, 2328, -1123, -4017, -3744, -1144, 2058, 4756, 3504, 160, -3175, -4582, -3076, 642, 3717, 4309, 2113, -1867, -4201, -4290, -1590, 2429, 4581, 3803, 578, -3213, -4922, -3238, 243, 4084, 5013, 2419, -1118, -4103, -4407, -1744, 2024, 4404, 4162, 972, -2589, -4313, -3562, -173, 3033, 4051, 2740, -683, -3517, -3885, -1927, 1617, 3931, 3391, 823, -1988, -4054, -2995, 165, 2562, 3973, 2165, -1098, -3045, -3496, -1323, 2170, 3813, 3220, 693, -2801, -3981, -2620, 201, 3552, 4160, 1850, -1222, -4102, -4114, -1303, 2046, 4510, 3938, 395, -3033, -4502, -3583, 511, 4097, 4891, 3077, -1172, -4672, -4705, -2040, 2207, 5231, 4400, 1373, -2939, -5668, -4227, -386, 3780, 5683, 3224, -956, -4576, -5659, -2722, 2053, 5165, 5219, 1745, -3144, -5582, -4793, -666, 4310, 6033, 4034, -524, -4978, -5813, -2751, 1982, 5816, 5727, 1635, -3161, -6216, -5299, -238, 4520, 6503, 4399, -1250, -5666, -6533, -3325, 2646, 6613, 6213, 1982, -3805, -7253, -5617, -473, 5219, 7838, 4864, -1049, -6388, -7723, -3532, 2691, 7121, 7129, 2187, -4409, -7840, -6491, -849, 5643, 7837, 5233, -1126, -7240, -8243, -4103, 2639, 7805, 7516, 2232, -4392, -8524, -6836, -336, 6075, 8976, 5939, -1243, -7087, -8450, -4200, 3223, 8313, 8016, 2692, -4937, -9094, -7123, -947, 6439, 9184, 5760, -1314, -7797, -8995, -4310, 3117, 8440, 8515, 2636, -4968, -8939, -7523, -702, 6658, 9284, 6301, -1307, -7942, -9025, -4762, 2966, 8706, 8373, 2674, -4944, -9631, -7601, -915, 6122, 9466, 6072, -1356, -7769, -9409, -4833, 2944, 8386, 8525, 3088, -4845, -8834, -7323, -1117, 6498, 9380, 6388, -607, -7454, -8909, -4467, 2606, 8440, 8460, 2803, -4291, -8719, -7485, -988, 5957, 8884, 6358, -888, -7149, -8500, -4850, 2649, 8004, 8012, 3191, -4025, -8496, -6943, -1444, 5313, 8751, 5790, -395, -6449, -8530, -4424, 2219, 7222, 7746, 2865, -3921, -7832, -6924, -1476, 5245, 7835, 5769, -225, -6421, -7802, -4475, 1645, 7030, 7378, 2863, -3132, -7413, -6554, -1189, 4463, 7766, 5759, -187, -5310, -7286, -4415, 1752, 6502, 7047, 3311, -2983, -6873, -5992, -1817, 4179, 7260, 5324, 429, -5160, -7322, -4232, 1085, 5623, 6703, 2832, -2574, -6212, -6275, -1825, 3643, 6560, 5486, 545, -4724, -6557, -4403, 604, 5708, 6454, 3408, -1855, -6292, -6105, -2313, 2690, 6222, 5213, 696, -3887, -6582, -4731, 295, 4577, 6078, 3576, -1712, -5379, -5776, -2647, 2655, 5876, 5188, 1479, -3411, -6038, -4326, -327, 4277, 6090, 3439, -774, -4690, -5693, -2555, 1807, 4979, 5270, 1595, -2857, -5232, -4690, -639, 3729, 5221, 3845, -273, -4256, -4949, -2804, 1247, 4992, 4957, 1994, -2014, -5272, -4523, -869, 2843, 5328, 3953, -97, -3602, -5150, -3301, 1188, 4377, 4996, 2646, -1976, -4812, -4519, -1591, 2936, 5152, 3827, 565, -3538, -5341, -3199, 427, 4139, 5246, 2398, -1472, -4684, -5138, -1600, 2608, 4928, 4401, 594, -3594, -5020, -3672, 478, 4574, 5053, 2980, -1182, -4957, -4767, -1731, 2429, 5488, 4383, 498, -3279, -5626, -4005, 439, 4084, 5421, 3019, -1647, -4887, -5187, -2216, 2689, 5310, 4448, 1027, -3706, -5645, -3731, 136, 4553, 5740, 2769, -1445, -5167, -5563, -1847, 2674, 5491, 4996, 625, -3955, -5758, -4418, 289, 4736, 5612, 3259, -1654, -5531, -5261, -2095, 2775, 6164, 5007, 886, -3802, -6354, -4305, 512, 4758, 6294, 3286, -2074, -5663, -5876, -2353, 3112, 6033, 5098, 905, -4562, -6491, -4392, 327, 5347, 6474, 3367, -1596, -6048, -6291, -1913, 3285, 6864, 5985, 798, -4358, -6829, -4964, 626, 5631, 6739, 3737, -2202, -6618, -6409, -2542, 3434, 7156, 5706, 916, -4851, -7545, -4951, 724, 5993, 7651, 3914, -2288, -6573, -7020, -2313, 4172, 7540, 6400, 861, -5479, -7524, -5047, 905, 6610, 7490, 3651, -2588, -7497, -7134, -2267, 4046, 7964, 6238, 229, -5621, -8160, -5185, 1369, 6700, 7778, 3816, -3079, -7769, -7149, -2266, 4554, 8124, 6181, 520, -5937, -8264, -4966, 1402, 7157, 8272, 3689, -2957, -7664, -7516, -2014, 4695, 8209, 6577, 251, -6174, -8151, -5192, 1401, 7305, 8065, 3905, -3002, -8018, -7281, -2108, 4598, 8547, 6614, 430, -5932, -8551, -5493, 1254, 7025, 8356, 4051, -3096, -7863, -7534, -2482, 4578, 8364, 6570, 686, -6121, -8589, -5592, 806, 7004, 8418, 4068, -2779, -7877, -7872, -2534, 4222, 8415, 7191, 996, -5711, -8442, -5947, 679, 6923, 8317, 4548, -2530, -7981, -7935, -3084, 3879, 8391, 7080, 1188, -5595, -8710, -6163, 324, 6588, 8585, 4882, -2241, -7552, -8047, -3368, 3821, 8293, 7355, 1732, -5448, -8650, -6318, -67, 6472, 8577, 5016, -1792, -7497, -8228, -3464, 3510, 8289, 7656, 1893, -4850, -8373, -6449, -31, 6378, 8595, 5378, -1475, -7291, -7961, -3668, 3257, 8268, 7498, 2130, -4680, -8563, -6552, -591, 5726, 8412, 5046, -1575, -7032, -8197, -3841, 2963, 7581, 7438, 2222, -4572, -7998, -6370, -527, 6014, 8190, 5288, -899, -6631, -7646, -3777, 2577, 7440, 7253, 2312, -3896, -7589, -6395, -857, 5064, 7565, 5054, -987, -6281, -7383, -4042, 2089, 6808, 6762, 2433, -3577, -7140, -5880, -984, 4662, 7380, 5090, -283, -5372, -6882, -3750, 1857, 6258, 6628, 2514, -3167, -6596, -5815, -1325, 4196, 6745, 4733, -242, -5267, -6561, -3656, 1508, 5939, 6206, 2518, -2679, -6146, -5493, -1255, 3693, 6325, 4676, -160, -4778, -6399, -3865, 1327, 5470, 5884, 2646, -2489, -5877, -5281, -1340, 3719, 6242, 4572, 182, -4348, -5898, -3550, 1170, 5143, 5814, 2531, -2344, -5614, -5362, -1553, 3342, 5858, 4542, 225, -4327, -5913, -3813, 783, 5011, 5649, 2584, -2144, -5540, -5176, -1570, 3031, 5799, 4551, 234, -3977, -5709, -3681, 827, 4849, 5795, 2902, -1951, -5285, -5208, -1793, 2965, 5674, 4588, 543, -3923, -5758, -3777, 521, 4717, 5682, 2746, -1779, -5206, -5250, -1802, 2816, 5562, 4694, 525, -4009, -5761, -4036, 385, 4541, 5440, 2932, -1625, -5176, -5103, -1881, 2671, 5738, 4647, 754, -3648, -5626, -3723, 637, 4684, 5819, 3125, -1689, -5069, -5245, -1901, 2857, 5405, 4480, 666, -3909, -5685, -3877, 366, 4580, 5454, 2708, -1629, -5223, -5149, -1661, 2959, 5753, 4693, 478, -3806, -5667, -3772, 832, 4824, 5541, 2792, -1839, -5210, -5092, -1789, 2803, 5518, 4364, 395, -3807, -5706, -3747, 542, 4520, 5567, 2586, -1924, -4979, -5053, -1729, 2897, 5438, 4589, 797, -3596, -5390, -3748, 351, 4412, 5340, 2730, -1593, -5072, -4981, -1726, 2490, 5413, 4491, 543, -3534, -5395, -3766, 447, 4224, 5334, 3062, -1428, -4755, -4869, -2074, 2390, 5178, 4379, 865, -3417, -5321, -3733, 56, 4115, 5340, 2858, -1321, -4765, -5124, -2114, 2192, 4999, 4576, 1013, -3228, -5164, -3868, 52, 4072, 5254, 3227, -954, -4599, -4916, -2045, 2069, 5075, 4570, 1175, -2983, -5314, -4090, -175, 3723, 5198, 3255, -950, -4422, -5133, -2452, 1992, 4968, 4768, 1432, -2942, -5237, -4056, -378, 3770, 5375, 3268, -761, -4395, -5117, -2480, 1736, 4894, 4878, 1555, -2726, -5214, -4360, -475, 3707, 5438, 3716, -396, -4302, -5059, -2618, 1653, 5068, 4905, 1602, -2815, -5494, -4460, -793, 3387, 5459, 3688, -564, -4391, -5386, -2922, 1473, 4831, 5121, 1909, -2682, -5302, -4493, -756, 3728, 5701, 3941, -168, -4301, -5429, -2990, 1352, 5068, 5198, 1840, -2656, -5494, -4897, -1039, 3426, 5622, 3971, -343, -4408, -5586, -3183, 1492, 5265, 5381, 2184, -2483, -5515, -4789, -991, 3558, 5849, 4162, -150, -4266, -5795, -3363, 1346, 5012, 5366, 2140, -2603, -5530, -4993, -1297, 3448, 5757, 4264, 71, -4271, -5657, -3323, 1134, 4970, 5544, 2456, -2170, -5344, -5107, -1444, 3091, 5565, 4350, 121, -4081, -5661, -3536, 965, 4689, 5409, 2541, -1993, -5241, -5026, -1598, 2894, 5652, 4495, 470, -3741, -5477, -3523, 678, 4602, 5618, 2854, -1664, -4972, -4980, -1583, 2882, 5405, 4509, 654, -3712, -5484, -3792, 259, 4220, 5225, 2771, -1501, -4919, -5015, -1878, 2431, 5306, 4539, 803, -3401, -5408, -3903, 236, 4210, 5275, 2907, -1434, -4762, -4963, -2097, 2241, 5074, 4477, 960, -3119, -5181, -3831, 11, 3953, 5257, 3012, -1162, -4544, -4927, -2018, 2241, 5099, 4578, 1100, -3064, -5168, -3915, -153, 3774, 5039, 3071, -925, -4409, -4946, -2187, 1898, 4832, 4422, 1013, -2907, -5100, -3846, -36, 3693, 5119, 3088, -933, -4306, -4842, -2195, 1965, 4765, 4499, 1297, -2782, -4912, -3854, -242, 3577, 5041, 3002, -955, -4301, -4850, -2235, 1860, 4734, 4452, 1139, -2776, -4872, -3742, -175, 3590, 5057, 3091, -789, -4142, -4673, -2184, 1734, 4591, 4291, 1034, -2987, -5046, -3859, -157, 3656, 5033, 2974, -927, -4221, -4696, -2096, 1945, 4748, 4449, 1308, -2702, -4693, -3648, -119, 3633, 5032, 2980, -948, -4265, -4772, -2135, 1829, 4676, 4307, 1124, -2790, -4899, -3855, -272, 3405, 4883, 3178, -667, -3980, -4655, -2248, 1657, 4554, 4358, 1262, -2662, -4855, -3846, -443, 3312, 4829, 3064, -723, -4025, -4735, -2391, 1474, 4470, 4450, 1492, -2315, -4561, -3764, -457, 3310, 4873, 3208, -496, -3820, -4646, -2470, 1414, 4380, 4312, 1343, -2438, -4738, -4013, -678, 3026, 4765, 3164, -424, -3654, -4611, -2467, 1338, 4377, 4428, 1631, -2268, -4575, -3923, -677, 3205, 4899, 3362, -328, -3712, -4669, -2567, 1217, 4206, 4460, 1719, -2100, -4554, -4031, -916, 2845, 4680, 3334, -248, -3744, -4724, -2677, 1212, 4306, 4583, 1809, -2106, -4573, -4108, -937, 2805, 4758, 3505, -65, -3534, -4765, -2839, 981, 4137, 4657, 2005, -1872, -4473, -4100, -975, 2832, 4869, 3636, 97, -3481, -4793, -2973, 739, 4079, 4586, 2135, -1678, -4407, -4160, -1195, 2657, 4766, 3668, 230, -3354, -4723, -3017, 682, 3944, 4606, 2205, -1649, -4419, -4230, -1358, 2504, 4719, 3766, 469, -3140, -4632, -3093, 489, 3712, 4475, 2178, -1559, -4304, -4330, -1459, 2278, 4519, 3700, 409, -3125, -4578, -3051, 443, 3719, 4478, 2329, -1296, -3981, -4056, -1428, 2181, 4383, 3677, 493, -2914, -4421, -3074, 346, 3478, 4344, 2285, -1367, -4066, -4149, -1653, 1971, 4293, 3708, 789, -2593, -4140, -3014, 100, 3274, 4245, 2388, -989, -3751, -4057, -1787, 1732, 4061, 3679, 902, -2545, -4178, -3085, 8, 3094, 4169, 2550, -717, -3439, -3858, -1754, 1448, 3756, 3459, 799, -2451, -4206, -3209, -196, 2912, 4118, 2583, -629, -3342, -3884, -1877, 1378, 3649, 3545, 1120, -2054, -3759, -2964, -262, 2785, 3949, 2475, -548, -3216, -3713, -1788, 1429, 3772, 3554, 1085, -2053, -3860, -3191, -391, 2635, 3826, 2489, -446, -3070, -3707, -1910, 1155, 3507, 3408, 1104, -1964, -3834, -3138, -426, 2563, 3856, 2529, -492, -3055, -3719, -1863, 1256, 3546, 3546, 1273, -1774, -3609, -3073, -474, 2463, 3723, 2527, -368, -3061, -3749, -1936, 1211, 3553, 3602, 1258, -1795, -3622, -3145, -457, 2513, 3842, 2702, -235, -2902, -3625, -2101, 936, 3337, 3462, 1238, -1825, -3662, -3111, -538, 2433, 3793, 2605, -291, -2984, -3759, -2118, 885, 3314, 3491, 1379, -1623, -3436, -2988, -521, 2448, 3784, 2700, -194, -2939, -3700, -2035, 981, 3342, 3493, 1327, -1659, -3584, -3203, -752, 2133, 3531, 2497, -252, -2834, -3569, -1970, 909, 3162, 3308, 1228, -1694, -3535, -3095, -611, 2320, 3657, 2540, -226, -2915, -3669, -2037, 811, 3118, 3324, 1260, -1585, -3492, -3063, -604, 2262, 3787, 2783, 24, -2642, -3536, -2041, 841, 3256, 3523, 1528, -1519, -3460, -3085, -702, 2215, 3689, 2722, 14, -2690, -3667, -2201, 645, 3052, 3354, 1385, -1515, -3488, -3280, -885, 2133, 3668, 2790, 43, -2741, -3736, -2301, 586, 3140, 3547, 1644, -1240, -3339, -3185, -961, 1960, 3580, 2718, 99, -2580, -3574, -2238, 635, 3119, 3607, 1768, -1152, -3275, -3183, -976, 1951, 3655, 2864, 262, -2431, -3555, -2237, 516, 2959, 3437, 1618, -1243, -3370, -3347, -1162, 1797, 3423, 2804, 311, -2429, -3525, -2399, 361, 2847, 3387, 1747, -1133, -3214, -3175, -1097, 1699, 3376, 2800, 363, -2289, -3379, -2199, 451, 2883, 3470, 1805, -1023, -3174, -3213, -1211, 1568, 3248, 2654, 281, -2287, -3463, -2337, 236, 2630, 3301, 1707, -969, -3047, -3117, -1092, 1570, 3272, 2817, 457, -2103, -3214, -2208, 354, 2734, 3290, 1733, -925, -2866, -2932, -1080, 1552, 3187, 2694, 452, -2062, -3282, -2327, 192, 2570, 3163, 1662, -958, -2899, -2956, -1080, 1568, 3130, 2684, 477, -2007, -3115, -2178, 232, 2483, 3069, 1584, -883, -2802, -2862, -1013, 1468, 3036, 2629, 448, -2058, -3265, -2398, 55, 2443, 3059, 1626, -952, -2929, -2922, -1073, 1512, 3121, 2665, 549, -1922, -3146, -2290, 39, 2406, 3156, 1810, -710, -2760, -3022, -1259, 1404, 3147, 2883, 729, -1885, -3173, -2359, 107, 2510, 3258, 1839, -764, -2816, -3027, -1279, 1278, 3038, 2792, 678, -1797, -3188, -2549, -233, 2282, 3210, 1958, -579, -2777, -3134, -1435, 1249, 3080, 2833, 809, -1726, -3115, -2371, -88, 2333, 3206, 1995, -504, -2691, -3137, -1627, 942, 2804, 2726, 744, -1808, -3170, -2548, -267, 2188, 3150, 2035, -419, -2569, -3030, -1470, 1037, 2869, 2844, 939, -1475, -2978, -2451, -274, 2067, 3121, 2104, -257, -2422, -2933, -1475, 971, 2782, 2772, 934, -1559, -2961, -2380, -328, 1962, 2974, 1956, -284, -2315, -2879, -1558, 827, 2573, 2676, 977, -1399, -2774, -2452, -428, 1888, 2939, 2042, -185, -2272, -2752, -1452, 832, 2602, 2547, 915, -1354, -2688, -2220, -372, 1715, 2690, 1876, -213, -2104, -2696, -1522, 732, 2428, 2566, 1008, -1243, -2623, -2297, -469, 1688, 2649, 1752, -251, -2142, -2613, -1336, 782, 2387, 2441, 932, -1116, -2387, -2090, -344, 1568, 2528, 1827, -98, -1905, -2506, -1340, 700, 2314, 2351, 799, -1243, -2551, -2094, -317, 1635, 2511, 1722, -207, -1978, -2475, -1387, 535, 2087, 2241, 876, -1114, -2402, -2104, -399, 1597, 2532, 1778, -164, -1994, -2518, -1361, 710, 2295, 2336, 945, -1082, -2294, -1972, -378, 1568, 2504, 1795, -48, -1876, -2472, -1416, 578, 2205, 2324, 860, -1200, -2549, -2269, -470, 1458, 2496, 1819, -181, -1857, -2383, -1489, 575, 2229, 2243, 1020, -949, -2299, -1990, -364, 1576, 2553, 1860, -16, -1916, -2512, -1550, 656, 2265, 2368, 1114, -1103, -2391, -2168, -571, 1460, 2349, 1645, -5, -1951, -2431, -1453, 445, 2172, 2301, 1021, -1056, -2435, -2233, -578, 1506, 2574, 1939, 147, -1769, -2449, -1458, 534, 2124, 2286, 974, -1051, -2350, -2089, -424, 1560, 2557, 1918, 86, -1816, -2527, -1608, 337, 2068, 2416, 1142, -875, -2313, -2189, -529, 1455, 2480, 1831, -20, -1892, -2448, -1476, 428, 2205, 2406, 1104, -938, -2368, -2200, -723, 1262, 2409, 1903, 113, -1724, -2399, -1452, 448, 2067, 2377, 1022, -1005, -2365, -2296, -702, 1281, 2401, 1926, 102, -1804, -2487, -1587, 308, 1998, 2308, 1115, -802, -2145, -2045, -533, 1417, 2504, 1945, 170, -1672, -2524, -1628, 297, 2053, 2422, 1162, -837, -2271, -2137, -686, 1219, 2253, 1831, 158, -1697, -2431, -1560, 363, 2110, 2439, 1227, -744, -2319, -2312, -796, 1184, 2400, 1995, 240, -1626, -2410, -1626, 290, 2038, 2451, 1242, -788, -2280, -2300, -811, 1271, 2516, 2121, 374, -1538, -2433, -1773, 91, 1931, 2427, 1290, -714, -2264, -2294, -841, 1213, 2472, 2078, 325, -1620, -2563, -1806, 102, 1942, 2481, 1411, -538, -2174, -2329, -929, 1022, 2323, 2014, 346, -1496, -2432, -1769, 58, 1930, 2525, 1485, -508, -2165, -2364, -1009, 990, 2256, 2031, 427, -1478, -2370, -1753, 14, 1758, 2331, 1324, -553, -2089, -2310, -960, 927, 2236, 2105, 612, -1269, -2288, -1823, -86, 1672, 2308, 1460, -330, -1864, -2071, -870, 987, 2188, 1916, 423, -1372, -2251, -1745, -122, 1580, 2209, 1408, -340, -1846, -2132, -1024, 719, 1899, 1840, 559, -1106, -2064, -1624, -122, 1482, 2093, 1350, -321, -1847, -2071, -959, 806, 2013, 1891, 505, -1025, -1823, -2008, -563, 1286, 2273, 1703, -19, -1694, -2236, -1261, 535, 2000, 2189, 839, -1050, -2257, -2091, -536, 1300, 2268, 1724, -30, -1774, -2317, -1393, 412, 1939, 2125, 939, -860, -2046, -1859, -381, 1426, 2360, 1737, 41, -1655, -2358, -1426, 398, 1993, 2231, 979, -899, -2165, -1944, -530, 1244, 2142, 1644, 27, -1673, -2266, -1365, 463, 2042, 2247, 1043, -815, -2220, -2107, -628, 1214, 2269, 1791, 102, -1606, -2252, -1429, 394, 1976, 2279, 1059, -855, -2177, -2100, -637, 1297, 2377, 1908, 227, -1528, -2281, -1572, 210, 1881, 2243, 1099, -786, -2166, -2095, -669, 1245, 2335, 1870, 182, -1613, -2398, -1595, 218, 1893, 2296, 1218, -623, -2090, -2131, -755, 1062, 2203, 1810, 209, -1489, -2278, -1568, 178, 1885, 2340, 1287, -602, -2098, -2167, -828, 1032, 2138, 1834, 280, -1471, -2219, -1555, 131, 1715, 2160, 1137, -627, -2010, -2115, -788, 970, 2126, 1909, 457, -1277, -2168, -1639, 40, 1636, 2146, 1272, -419, -1795, -1897, -710, 1024, 2068, 1729, 284, -1368, -2110, -1558, -1, 1549, 2052, 1227, -427, -1778, -1963, -864, 768, 1805, 1669, 422, -1119, -1939, -1447, -10, 1455, 1944, 1180, -407, -1780, -1897, -799, 852, 1909, 1715, 366, -1019, -1737, -1834, -407, 1298, 2136, 1505, -128, -1652, -2065, -1082, 606, 1917, 2000, 670, -1077, -2138, -1889, -385, 1302, 2126, 1527, -146, -1726, -2144, -1207, 494, 1875, 1956, 773, -899, -1935, -1675, -244, 1418, 2206, 1537, -71, -1622, -2186, -1233, 483, 1916, 2040, 808, -943, -2046, -1755, -387, 1246, 2007, 1472, -84, -1632, -2096, -1179, 545, 1958, 2054, 870, -868, -2108, -1904, -475, 1225, 2129, 1592, -19, -1570, -2089, -1240, 480, 1900, 2088, 881, -909, -2066, -1900, -479, 1307, 2228, 1701, 97, -1502, -2121, -1378, 311, 1817, 2056, 922, -840, -2055, -1896, -510, 1257, 2191, 1664, 56, -1597, -2243, -1392, 317, 1828, 2107, 1036, -690, -1990, -1933, -595, 1084, 2072, 1610, 86, -1466, -2118, -1375, 281, 1822, 2152, 1098, -671, -2001, -1987, -665, 1056, 2009, 1641, 148, -1447, -2061, -1366, 231, 1659, 1985, 962, -684, -1917, -1921, -628, 996, 2004, 1716, 319, -1272, -2023, -1450, 148, 1588, 1977, 1095, -491, -1713, -1723, -561, 1044, 1939, 1545, 160, -1347, -1962, -1376, 103, 1504, 1894, 1056, -496, -1700, -1790, -711, 807, 1713, 1500, 300, -1116, -1808, -1276, 87, 1413, 1792, 1016, -478, -1697, -1724, -651, 882, 1795, 1539, 242, -1001, -1646, -1659, -267, 1284, 2005, 1324, -223, -1595, -1893, -913, 660, 1823, 1811, 516, -1087, -2008, -1691, -251, 1288, 1977, 1338, -244, -1664, -1966, -1032, 562, 1783, 1779, 628, -924, -1816, -1495, -122, 1393, 2047, 1345, -167, -1574, -2009, -1053, 550, 1827, 1848, 650, -969, -1917, -1569, -259, 1232, 1864, 1294, -185, -1588, -1923, -1005, 609, 1860, 1862, 710, -902, -1984, -1705, -337, 1219, 1982, 1399, -123, -1519, -1921, -1061, 548, 1810, 1897, 715, -937, -1960, -1716, -333, 1295, 2072, 1500, -16, -1460, -1957, -1193, 394, 1736, 1870, 757, -876, -1932, -1702, -367, 1252, 2037, 1467, -57, -1550, -2071, -1213, 398, 1747, 1917, 866, -737, -1878, -1737, -450, 1088, 1932, 1418, -19, -1428, -1953, -1192, 366, 1745, 1962, 922, -723, -1890, -1791, -514, 1070, 1874, 1453, 33, -1406, -1900, -1185, 313, 1588, 1809, 797, -724, -1811, -1727, -484, 1004, 1873, 1527, 195, -1250, -1873, -1265, 237, 1538, 1817, 925, -545, -1620, -1549, -426, 1047, 1802, 1366, 51, -1310, -1809, -1202, 191, 1445, 1731, 895, -549, -1608, -1618, -567, 821, 1608, 1351, 191, -1098, -1670, -1113, 168, 1358, 1636, 863, -532, -1604, -1554, -515, 894, 1673, 1369, 134, -972, -1546, -1484, -144, 1257, 1850, 1148, -301, -1524, -1718, -757, 697, 1716, 1625, 378, -1081, -1870, -1497, -133, 1258, 1822, 1158, -324, -1588, -1789, -867, 610, 1681, 1599, 490, -941, -1699, -1318, -18, 1353, 1881, 1162, -246, -1510, -1829, -884, 600, 1724, 1659, 507, -978, -1780, -1390, -145, 1202, 1715, 1123, -266, -1521, -1766, -842, 656, 1749, 1672, 564, -918, -1849, -1510, -215, 1197, 1826, 1216, -209, -1454, -1752, -893, 598, 1708, 1707, 563, -949, -1826, -1530, -211, 1269, 1907, 1308, -112, -1403, -1788, -1018, 459, 1642, 1683, 604, -894, -1800, -1512, -239, 1229, 1877, 1277, -149, -1490, -1889, -1034, 469, 1662, 1726, 709, -768, -1755, -1545, -321, 1076, 1784, 1234, -109, -1374, -1782, -1018, 432, 1653, 1771, 758, -756, -1768, -1596, -377, 1062, 1749, 1276, -66, -1350, -1733, -1013, 378, 1504, 1632, 646, -747, -1695, -1537, -355, 997, 1734, 1345, 88, -1212, -1718, -1089, 311, 1458, 1655, 780, -585, -1514, -1380, -305, 1032, 1658, 1194, -41, -1260, -1653, -1035, 262, 1372, 1567, 743, -584, -1506, -1448, -439, 822, 1488, 1191, 93, -1072, -1527, -958, 235, 1290, 1480, 719, -570, -1500, -1385, -391, 891, 1544, 1202, 42, -931, -1441, -1311, -40, 1213, 1690, 977, -363, -1457, -1549, -611, 716, 1600, 1439, 256, -1059, -1725, -1310, -32, 1213, 1663, 987, -387, -1498, -1610, -715, 642, 1567, 1422, 364, -930, -1572, -1163, 72, 1297, 1711, 990, -308, -1432, -1647, -727, 633, 1609, 1472, 378, -969, -1635, -1217, -47, 1157, 1564, 961, -330, -1437, -1591, -695, 685, 1628, 1486, 431, -918, -1705, -1322, -108, 1158, 1666, 1041, -277, -1375, -1580, -737, 630, 1594, 1520, 426, -943, -1684, -1343, -100, 1241, 1745, 1124, -188, -1332, -1616, -854, 506, 1535, 1498, 467, -893, -1658, -1327, -128, 1188, 1710, 1097, -226, -1415, -1706, -863, 513, 1565, 1556, 565, -779, -1623, -1358, -207, 1047, 1628, 1059, -182, -1305, -1610, -855, 481, 1547, 1582, 608, -772, -1635, -1408, -256, 1034, 1598, 1111, -145, -1281, -1565, -853, 426, 1408, 1455, 509, -754, -1568, -1352, -242, 974, 1588, 1168, -4, -1159, -1559, -922, 365, 1369, 1481, 637, -614, -1406, -1211, -199, 1003, 1509, 1030, -118, -1195, -1494, -878, 317, 1286, 1402, 605, -604, -1395, -1280, -323, 807, 1364, 1034, 12, -1033, -1397, -813, 286, 1210, 1324, 587, -590, -1385, -1219, -281, 871, 1409, 1042, -35, -882, -1329, -1141, 48, 1155, 1525, 818, -407, -1360, -1388, -487, 722, 1473, 1260, 149, -1021, -1572, -1130, 53, 1153, 1499, 828, -432, -1395, -1433, -576, 657, 1444, 1249, 254, -905, -1431, -1002, 149, 1232, 1536, 830, -356, -1342, -1466, -584, 648, 1483, 1291, 264, -943, -1485, -1051, 35, 1097, 1409, 808, -377, -1341, -1414, -557, 702, 1513, 1303, 315, -899, -1554, -1143, -18, 1105, 1502, 877, -329, -1283, -1407, -594, 644, 1469, 1335, 306, -919, -1533, -1164, -5, 1179, 1587, 963, -251, -1246, -1445, -703, 535, 1418, 1317, 345, -875, -1510, -1148, -34, 1132, 1540, 927, -285, -1326, -1521, -708, 541, 1445, 1374, 441, -778, -1480, -1177, -110, 1004, 1469, 895, -238, -1224, -1435, -704, 512, 1430, 1395, 472, -768, -1493, -1224, -151, 991, 1443, 945, -211, -1214, -1398, -702, 455, 1300, 1280, 387, -744, -1432, -1171, -144, 935, 1435, 999, -79, -1093, -1396, -767, 403, 1268, 1310, 505, -618, -1296, -1064, -106, 956, 1357, 875, -178, -1117, -1333, -731, 356, 1190, 1239, 479, -607, -1275, -1116, -222, 779, 1233, 886, -55, -973, -1251, -684, 322, 1119, 1167, 466, -595, -1262, -1059, -185, 836, 1270, 889, -96, -824, -1210, -978, 118, 1085, 1358, 671, -434, -1253, -1216, -370, 719, 1343, 1085, 61, -969, -1414, -960, 120, 1079, 1334, 679, -458, -1282, -1257, -450, 654, 1311, 1081, 157, -865, -1286, -847, 203, 1161, 1378, 680, -385, -1239, -1285, -456, 647, 1348, 1115, 165, -902, -1330, -893, 102, 1025, 1252, 667, -407, -1233, -1241, -431, 695, 1375, 1142, 215, -865, -1395, -971, 55, 1036, 1335, 724, -363, -1182, -1237, -464, 642, 1335, 1155, 200, -880, -1378, -991, 70, 1105, 1411, 803, -297, -1152, -1271, -564, 546, 1288, 1140, 238, -841, -1355, -978, 43, 1060, 1367, 769, -324, -1223, -1336, -566, 552, 1316, 1192, 326, -764, -1348, -1004, -30, 945, 1303, 741, -278, -1129, -1261, -566, 526, 1301, 1212, 352, -748, -1344, -1047, -62, 933, 1284, 789, -258, -1119, -1244, -572, 470, 1182, 1109, 279, -718, -1288, -999, -63, 882, 1278, 841, -136, -1013, -1233, -624, 423, 1155, 1141, 388, -607, -1164, -911, -29, 898, 1199, 728, -223, -1027, -1171, -596, 376, 1084, 1077, 365, -595, -1147, -958, -137, 736, 1098, 745, -108, -903, -1099, -559, 349, 1030, 1014, 358, -583, -1132, -905, -103, 788, 1126, 744, -141, -758, -1087, -821, 170, 1000, 1190, 537, -446, -1135, -1050, -265, 690, 1218, 928, -14, -901, -1253, -799, 170, 994, 1167, 543, -468, -1158, -1086, -338, 636, 1173, 920, 78, -810, -1136, -702, 244, 1062, 1208, 554, -399, -1123, -1109, -342, 628, 1205, 946, 82, -843, -1172, -744, 151, 941, 1095, 537, -420, -1115, -1069, -320, 672, 1228, 972, 128, -826, -1233, -809, 110, 954, 1165, 584, -379, -1067, -1067, -349, 621, 1193, 982, 112, -824, -1218, -827, 129, 1016, 1233, 653, -322, -1061, -1110, -437, 538, 1152, 969, 147, -791, -1194, -817, 102, 974, 1193, 622, -347, -1107, -1154, -438, 545, 1177, 1017, 226, -724, -1197, -853, 34, 873, 1137, 600, -301, -1023, -1088, -441, 520, 1163, 1034, 248, -709, -1189, -879, 7, 860, 1123, 644, -286, -1011, -1075, -450, 471, 1056, 942, 188, -678, -1138, -835, 4, 814, 1117, 692, -178, -921, -1067, -493, 425, 1033, 975, 285, -581, -1029, -761, 31, 837, 1054, 591, -249, -926, -1010, -473, 382, 969, 920, 267, -567, -1014, -805, -65, 681, 960, 614, -146, -820, -949, -443, 355, 925, 879, 265, -557, -995, -757, -37, 725, 980, 607, -169, -684, -958, -673, 205, 904, 1023, 416, -441, -1009, -887, -178, 648, 1070, 775, -68, -823, -1087, -650, 203, 895, 1001, 421, -460, -1026, -919, -241, 600, 1028, 767, 13, -742, -986, -567, 267, 955, 1034, 433, -407, -1009, -935, -245, 594, 1055, 786, 16, -771, -1012, -606, 185, 845, 937, 418, -416, -987, -903, -224, 632, 1074, 809, 55, -762, -1086, -664, 150, 857, 998, 457, -379, -945, -902, -250, 586, 1044, 816, 40, -755, -1054, -675, 169, 913, 1056, 517, -332, -941, -950, -333, 516, 1007, 805, 72, -724, -1032, -777, 144, 875, 1018, 489, -352, -981, -975, -327, 521, 1030, 848, 142, -670, -1035, -699, 85, 795, 969, 472, -309, -905, -919, -331, 498, 1016, 861, 159, -655, -1028]
size = len(list)
sound = makeEmptySound(size,8000)
for i in range(0, size):
setSampleValueAt(sound,i,list[i])
play(sound)
##############################
# plays ding ding ding sound #
##############################
def play3Ding():
list = [-1714, 1956, -2964, 1117, 4205, 3241, -1958, -4516, -3162, 180, 6531, 5093, 4357, -4059, -8134, -6409, -2154, 6617, 8219, 6241, 542, -6390, -8294, -6101, 2270, 7494, 10346, 4944, -4305, -10121, -10776, -2931, 5259, 10471, 9334, 2179, -6589, -10178, -8413, -2331, 8590, 12314, 7960, -740, -9041, -11915, -7602, 1311, 10096, 11055, 5139, -3297, -10319, -11065, -4178, 5647, 10904, 8559, 2152, -4867, -9118, -8182, -1556, 6472, 9335, 7094, 700, -6709, -9120, -5720, 1367, 7183, 7652, 3947, -1596, -7954, -7379, -2083, 3340, 7121, 6157, 1275, -3944, -5539, -4630, 707, 4742, 5874, 3970, -1426, -5086, -5702, -2316, 1956, 5189, 3834, 1167, -2741, -5043, -3426, -167, 3420, 5593, 3096, -1562, -4899, -5257, -2151, 2902, 4734, 4656, 521, -4274, -5639, -4476, 804, 5327, 6080, 3154, -1812, -6192, -5493, -1949, 3297, 6356, 4885, 206, -4374, -5878, -3935, 882, 4681, 5338, 2660, -2134, -5085, -4744, -1741, 2889, 5331, 4252, 933, -3318, -5025, -3399, 124, 3749, 4979, 2504, -908, -3846, -4610, -1859, 1809, 4030, 4108, 644, -3206, -4288, -3448, 231, 3466, 4239, 2328, -1123, -4017, -3744, -1144, 2058, 4756, 3504, 160, -3175, -4582, -3076, 642, 3717, 4309, 2113, -1867, -4201, -4290, -1590, 2429, 4581, 3803, 578, -3213, -4922, -3238, 243, 4084, 5013, 2419, -1118, -4103, -4407, -1744, 2024, 4404, 4162, 972, -2589, -4313, -3562, -173, 3033, 4051, 2740, -683, -3517, -3885, -1927, 1617, 3931, 3391, 823, -1988, -4054, -2995, 165, 2562, 3973, 2165, -1098, -3045, -3496, -1323, 2170, 3813, 3220, 693, -2801, -3981, -2620, 201, 3552, 4160, 1850, -1222, -4102, -4114, -1303, 2046, 4510, 3938, 395, -3033, -4502, -3583, 511, 4097, 4891, 3077, -1172, -4672, -4705, -2040, 2207, 5231, 4400, 1373, -2939, -5668, -4227, -386, 3780, 5683, 3224, -956, -4576, -5659, -2722, 2053, 5165, 5219, 1745, -3144, -5582, -4793, -666, 4310, 6033, 4034, -524, -4978, -5813, -2751, 1982, 5816, 5727, 1635, -3161, -6216, -5299, -238, 4520, 6503, 4399, -1250, -5666, -6533, -3325, 2646, 6613, 6213, 1982, -3805, -7253, -5617, -473, 5219, 7838, 4864, -1049, -6388, -7723, -3532, 2691, 7121, 7129, 2187, -4409, -7840, -6491, -849, 5643, 7837, 5233, -1126, -7240, -8243, -4103, 2639, 7805, 7516, 2232, -4392, -8524, -6836, -336, 6075, 8976, 5939, -1243, -7087, -8450, -4200, 3223, 8313, 8016, 2692, -4937, -9094, -7123, -947, 6439, 9184, 5760, -1314, -7797, -8995, -4310, 3117, 8440, 8515, 2636, -4968, -8939, -7523, -702, 6658, 9284, 6301, -1307, -7942, -9025, -4762, 2966, 8706, 8373, 2674, -4944, -9631, -7601, -915, 6122, 9466, 6072, -1356, -7769, -9409, -4833, 2944, 8386, 8525, 3088, -4845, -8834, -7323, -1117, 6498, 9380, 6388, -607, -7454, -8909, -4467, 2606, 8440, 8460, 2803, -4291, -8719, -7485, -988, 5957, 8884, 6358, -888, -7149, -8500, -4850, 2649, 8004, 8012, 3191, -4025, -8496, -6943, -1444, 5313, 8751, 5790, -395, -6449, -8530, -4424, 2219, 7222, 7746, 2865, -3921, -7832, -6924, -1476, 5245, 7835, 5769, -225, -6421, -7802, -4475, 1645, 7030, 7378, 2863, -3132, -7413, -6554, -1189, 4463, 7766, 5759, -187, -5310, -7286, -4415, 1752, 6502, 7047, 3311, -2983, -6873, -5992, -1817, 4179, 7260, 5324, 429, -5160, -7322, -4232, 1085, 5623, 6703, 2832, -2574, -6212, -6275, -1825, 3643, 6560, 5486, 545, -4724, -6557, -4403, 604, 5708, 6454, 3408, -1855, -6292, -6105, -2313, 2690, 6222, 5213, 696, -3887, -6582, -4731, 295, 4577, 6078, 3576, -1712, -5379, -5776, -2647, 2655, 5876, 5188, 1479, -3411, -6038, -4326, -327, 4277, 6090, 3439, -774, -4690, -5693, -2555, 1807, 4979, 5270, 1595, -2857, -5232, -4690, -639, 3729, 5221, 3845, -273, -4256, -4949, -2804, 1247, 4992, 4957, 1994, -2014, -5272, -4523, -869, 2843, 5328, 3953, -97, -3602, -5150, -3301, 1188, 4377, 4996, 2646, -1976, -4812, -4519, -1591, 2936, 5152, 3827, 565, -3538, -5341, -3199, 427, 4139, 5246, 2398, -1472, -4684, -5138, -1600, 2608, 4928, 4401, 594, -3594, -5020, -3672, 478, 4574, 5053, 2980, -1182, -4957, -4767, -1731, 2429, 5488, 4383, 498, -3279, -5626, -4005, 439, 4084, 5421, 3019, -1647, -4887, -5187, -2216, 2689, 5310, 4448, 1027, -3706, -5645, -3731, 136, 4553, 5740, 2769, -1445, -5167, -5563, -1847, 2674, 5491, 4996, 625, -3955, -5758, -4418, 289, 4736, 5612, 3259, -1654, -5531, -5261, -2095, 2775, 6164, 5007, 886, -3802, -6354, -4305, 512, 4758, 6294, 3286, -2074, -5663, -5876, -2353, 3112, 6033, 5098, 905, -4562, -6491, -4392, 327, 5347, 6474, 3367, -1596, -6048, -6291, -1913, 3285, 6864, 5985, 798, -4358, -6829, -4964, 626, 5631, 6739, 3737, -2202, -6618, -6409, -2542, 3434, 7156, 5706, 916, -4851, -7545, -4951, 724, 5993, 7651, 3914, -2288, -6573, -7020, -2313, 4172, 7540, 6400, 861, -5479, -7524, -5047, 905, 6610, 7490, 3651, -2588, -7497, -7134, -2267, 4046, 7964, 6238, 229, -5621, -8160, -5185, 1369, 6700, 7778, 3816, -3079, -7769, -7149, -2266, 4554, 8124, 6181, 520, -5937, -8264, -4966, 1402, 7157, 8272, 3689, -2957, -7664, -7516, -2014, 4695, 8209, 6577, 251, -6174, -8151, -5192, 1401, 7305, 8065, 3905, -3002, -8018, -7281, -2108, 4598, 8547, 6614, 430, -5932, -8551, -5493, 1254, 7025, 8356, 4051, -3096, -7863, -7534, -2482, 4578, 8364, 6570, 686, -6121, -8589, -5592, 806, 7004, 8418, 4068, -2779, -7877, -7872, -2534, 4222, 8415, 7191, 996, -5711, -8442, -5947, 679, 6923, 8317, 4548, -2530, -7981, -7935, -3084, 3879, 8391, 7080, 1188, -5595, -8710, -6163, 324, 6588, 8585, 4882, -2241, -7552, -8047, -3368, 3821, 8293, 7355, 1732, -5448, -8650, -6318, -67, 6472, 8577, 5016, -1792, -7497, -8228, -3464, 3510, 8289, 7656, 1893, -4850, -8373, -6449, -31, 6378, 8595, 5378, -1475, -7291, -7961, -3668, 3257, 8268, 7498, 2130, -4680, -8563, -6552, -591, 5726, 8412, 5046, -1575, -7032, -8197, -3841, 2963, 7581, 7438, 2222, -4572, -7998, -6370, -527, 6014, 8190, 5288, -899, -6631, -7646, -3777, 2577, 7440, 7253, 2312, -3896, -7589, -6395, -857, 5064, 7565, 5054, -987, -6281, -7383, -4042, 2089, 6808, 6762, 2433, -3577, -7140, -5880, -984, 4662, 7380, 5090, -283, -5372, -6882, -3750, 1857, 6258, 6628, 2514, -3167, -6596, -5815, -1325, 4196, 6745, 4733, -242, -5267, -6561, -3656, 1508, 5939, 6206, 2518, -2679, -6146, -5493, -1255, 3693, 6325, 4676, -160, -4778, -6399, -3865, 1327, 5470, 5884, 2646, -2489, -5877, -5281, -1340, 3719, 6242, 4572, 182, -4348, -5898, -3550, 1170, 5143, 5814, 2531, -2344, -5614, -5362, -1553, 3342, 5858, 4542, 225, -4327, -5913, -3813, 783, 5011, 5649, 2584, -2144, -5540, -5176, -1570, 3031, 5799, 4551, 234, -3977, -5709, -3681, 827, 4849, 5795, 2902, -1951, -5285, -5208, -1793, 2965, 5674, 4588, 543, -3923, -5758, -3777, 521, 4717, 5682, 2746, -1779, -5206, -5250, -1802, 2816, 5562, 4694, 525, -4009, -5761, -4036, 385, 4541, 5440, 2932, -1625, -5176, -5103, -1881, 2671, 5738, 4647, 754, -3648, -5626, -3723, 637, 4684, 5819, 3125, -1689, -5069, -5245, -1901, 2857, 5405, 4480, 666, -3909, -5685, -3877, 366, 4580, 5454, 2708, -1629, -5223, -5149, -1661, 2959, 5753, 4693, 478, -3806, -5667, -3772, 832, 4824, 5541, 2792, -1839, -5210, -5092, -1789, 2803, 5518, 4364, 395, -3807, -5706, -3747, 542, 4520, 5567, 2586, -1924, -4979, -5053, -1729, 2897, 5438, 4589, 797, -3596, -5390, -3748, 351, 4412, 5340, 2730, -1593, -5072, -4981, -1726, 2490, 5413, 4491, 543, -3534, -5395, -3766, 447, 4224, 5334, 3062, -1428, -4755, -4869, -2074, 2390, 5178, 4379, 865, -3417, -5321, -3733, 56, 4115, 5340, 2858, -1321, -4765, -5124, -2114, 2192, 4999, 4576, 1013, -3228, -5164, -3868, 52, 4072, 5254, 3227, -954, -4599, -4916, -2045, 2069, 5075, 4570, 1175, -2983, -5314, -4090, -175, 3723, 5198, 3255, -950, -4422, -5133, -2452, 1992, 4968, 4768, 1432, -2942, -5237, -4056, -378, 3770, 5375, 3268, -761, -4395, -5117, -2480, 1736, 4894, 4878, 1555, -2726, -5214, -4360, -475, 3707, 5438, 3716, -396, -4302, -5059, -2618, 1653, 5068, 4905, 1602, -2815, -5494, -4460, -793, 3387, 5459, 3688, -564, -4391, -5386, -2922, 1473, 4831, 5121, 1909, -2682, -5302, -4493, -756, 3728, 5701, 3941, -168, -4301, -5429, -2990, 1352, 5068, 5198, 1840, -2656, -5494, -4897, -1039, 3426, 5622, 3971, -343, -4408, -5586, -3183, 1492, 5265, 5381, 2184, -2483, -5515, -4789, -991, 3558, 5849, 4162, -150, -4266, -5795, -3363, 1346, 5012, 5366, 2140, -2603, -5530, -4993, -1297, 3448, 5757, 4264, 71, -4271, -5657, -3323, 1134, 4970, 5544, 2456, -2170, -5344, -5107, -1444, 3091, 5565, 4350, 121, -4081, -5661, -3536, 965, 4689, 5409, 2541, -1993, -5241, -5026, -1598, 2894, 5652, 4495, 470, -3741, -5477, -3523, 678, 4602, 5618, 2854, -1664, -4972, -4980, -1583, 2882, 5405, 4509, 654, -3712, -5484, -3792, 259, 4220, 5225, 2771, -1501, -4919, -5015, -1878, 2431, 5306, 4539, 803, -3401, -5408, -3903, 236, 4210, 5275, 2907, -1434, -4762, -4963, -2097, 2241, 5074, 4477, 960, -3119, -5181, -3831, 11, 3953, 5257, 3012, -1162, -4544, -4927, -2018, 2241, 5099, 4578, 1100, -3064, -5168, -3915, -153, 3774, 5039, 3071, -925, -4409, -4946, -2187, 1898, 4832, 4422, 1013, -2907, -5100, -3846, -36, 3693, 5119, 3088, -933, -4306, -4842, -2195, 1965, 4765, 4499, 1297, -2782, -4912, -3854, -242, 3577, 5041, 3002, -955, -4301, -4850, -2235, 1860, 4734, 4452, 1139, -2776, -4872, -3742, -175, 3590, 5057, 3091, -789, -4142, -4673, -2184, 1734, 4591, 4291, 1034, -2987, -5046, -3859, -157, 3656, 5033, 2974, -927, -4221, -4696, -2096, 1945, 4748, 4449, 1308, -2702, -4693, -3648, -119, 3633, 5032, 2980, -948, -4265, -4772, -2135, 1829, 4676, 4307, 1124, -2790, -4899, -3855, -272, 3405, 4883, 3178, -667, -3980, -4655, -2248, 1657, 4554, 4358, 1262, -2662, -4855, -3846, -443, 3312, 4829, 3064, -723, -4025, -4735, -2391, 1474, 4470, 4450, 1492, -2315, -4561, -3764, -457, 3310, 4873, 3208, -496, -3820, -4646, -2470, 1414, 4380, 4312, 1343, -2438, -4738, -4013, -678, 3026, 4765, 3164, -424, -3654, -4611, -2467, 1338, 4377, 4428, 1631, -2268, -4575, -3923, -677, 3205, 4899, 3362, -328, -3712, -4669, -2567, 1217, 4206, 4460, 1719, -2100, -4554, -4031, -916, 2845, 4680, 3334, -248, -3744, -4724, -2677, 1212, 4306, 4583, 1809, -2106, -4573, -4108, -937, 2805, 4758, 3505, -65, -3534, -4765, -2839, 981, 4137, 4657, 2005, -1872, -4473, -4100, -975, 2832, 4869, 3636, 97, -3481, -4793, -2973, 739, 4079, 4586, 2135, -1678, -4407, -4160, -1195, 2657, 4766, 3668, 230, -3354, -4723, -3017, 682, 3944, 4606, 2205, -1649, -4419, -4230, -1358, 2504, 4719, 3766, 469, -3140, -4632, -3093, 489, 3712, 4475, 2178, -1559, -4304, -4330, -1459, 2278, 4519, 3700, 409, -3125, -4578, -3051, 443, 3719, 4478, 2329, -1296, -3981, -4056, -1428, 2181, 4383, 3677, 493, -2914, -4421, -3074, 346, 3478, 4344, 2285, -1367, -4066, -4149, -1653, 1971, 4293, 3708, 789, -2593, -4140, -3014, 100, 3274, 4245, 2388, -989, -3751, -4057, -1787, 1732, 4061, 3679, 902, -2545, -4178, -3085, 8, 3094, 4169, 2550, -717, -3439, -3858, -1754, 1448, 3756, 3459, 799, -2451, -4206, -3209, -196, 2912, 4118, 2583, -629, -3342, -3884, -1877, 1378, 3649, 3545, 1120, -2054, -3759, -2964, -262, 2785, 3949, 2475, -548, -3216, -3713, -1788, 1429, 3772, 3554, 1085, -2053, -3860, -3191, -391, 2635, 3826, 2489, -446, -3070, -3707, -1910, 1155, 3507, 3408, 1104, -1964, -3834, -3138, -426, 2563, 3856, 2529, -492, -3055, -3719, -1863, 1256, 3546, 3546, 1273, -1774, -3609, -3073, -474, 2463, 3723, 2527, -368, -3061, -3749, -1936, 1211, 3553, 3602, 1258, -1795, -3622, -3145, -457, 2513, 3842, 2702, -235, -2902, -3625, -2101, 936, 3337, 3462, 1238, -1825, -3662, -3111, -538, 2433, 3793, 2605, -291, -2984, -3759, -2118, 885, 3314, 3491, 1379, -1623, -3436, -2988, -521, 2448, 3784, 2700, -194, -2939, -3700, -2035, 981, 3342, 3493, 1327, -1659, -3584, -3203, -752, 2133, 3531, 2497, -252, -2834, -3569, -1970, 909, 3162, 3308, 1228, -1694, -3535, -3095, -611, 2320, 3657, 2540, -226, -2915, -3669, -2037, 811, 3118, 3324, 1260, -1585, -3492, -3063, -604, 2262, 3787, 2783, 24, -2642, -3536, -2041, 841, 3256, 3523, 1528, -1519, -3460, -3085, -702, 2215, 3689, 2722, 14, -2690, -3667, -2201, 645, 3052, 3354, 1385, -1515, -3488, -3280, -885, 2133, 3668, 2790, 43, -2741, -3736, -2301, 586, 3140, 3547, 1644, -1240, -3339, -3185, -961, 1960, 3580, 2718, 99, -2580, -3574, -2238, 635, 3119, 3607, 1768, -1152, -3275, -3183, -976, 1951, 3655, 2864, 262, -2431, -3555, -2237, 516, 2959, 3437, 1618, -1243, -3370, -3347, -1162, 1797, 3423, 2804, 311, -2429, -3525, -2399, 361, 2847, 3387, 1747, -1133, -3214, -3175, -1097, 1699, 3376, 2800, 363, -2289, -3379, -2199, 451, 2883, 3470, 1805, -1023, -3174, -3213, -1211, 1568, 3248, 2654, 281, -2287, -3463, -2337, 236, 2630, 3301, 1707, -969, -3047, -3117, -1092, 1570, 3272, 2817, 457, -2103, -3214, -2208, 354, 2734, 3290, 1733, -925, -2866, -2932, -1080, 1552, 3187, 2694, 452, -2062, -3282, -2327, 192, 2570, 3163, 1662, -958, -2899, -2956, -1080, 1568, 3130, 2684, 477, -2007, -3115, -2178, 232, 2483, 3069, 1584, -883, -2802, -2862, -1013, 1468, 3036, 2629, 448, -2058, -3265, -2398, 55, 2443, 3059, 1626, -952, -2929, -2922, -1073, 1512, 3121, 2665, 549, -1922, -3146, -2290, 39, 2406, 3156, 1810, -710, -2760, -3022, -1259, 1404, 3147, 2883, 729, -1885, -3173, -2359, 107, 2510, 3258, 1839, -764, -2816, -3027, -1279, 1278, 3038, 2792, 678, -1797, -3188, -2549, -233, 2282, 3210, 1958, -579, -2777, -3134, -1435, 1249, 3080, 2833, 809, -1726, -3115, -2371, -88, 2333, 3206, 1995, -504, -2691, -3137, -1627, 942, 2804, 2726, 744, -1808, -3170, -2548, -267, 2188, 3150, 2035, -419, -2569, -3030, -1470, 1037, 2869, 2844, 939, -1475, -2978, -2451, -274, 2067, 3121, 2104, -257, -2422, -2933, -1475, 971, 2782, 2772, 934, -1559, -2961, -2380, -328, 1962, 2974, 1956, -284, -2315, -2879, -1558, 827, 2573, 2676, 977, -1399, -2774, -2452, -428, 1888, 2939, 2042, -185, -2272, -2752, -1452, 832, 2602, 2547, 915, -1354, -2688, -2220, -372, 1715, 2690, 1876, -213, -2104, -2696, -1522, 732, 2428, 2566, 1008, -1243, -2623, -2297, -469, 1688, 2649, 1752, -251, -2142, -2613, -1336, 782, 2387, 2441, 932, -1116, -2387, -2090, -344, 1568, 2528, 1827, -98, -1905, -2506, -1340, 700, 2314, 2351, 799, -1243, -2551, -2094, -317, 1635, 2511, 1722, -207, -1978, -2475, -1387, 535, 2087, 2241, 876, -1114, -2402, -2104, -399, 1597, 2532, 1778, -164, -1994, -2518, -1361, 710, 2295, 2336, 945, -1082, -2294, -1972, -378, 1568, 2504, 1795, -48, -1876, -2472, -1416, 578, 2205, 2324, 860, -1200, -2549, -2269, -470, 1458, 2496, 1819, -181, -1857, -2383, -1489, 575, 2229, 2243, 1020, -949, -2299, -1990, -364, 1576, 2553, 1860, -16, -1916, -2512, -1550, 656, 2265, 2368, 1114, -1103, -2391, -2168, -571, 1460, 2349, 1645, -5, -1951, -2431, -1453, 445, 2172, 2301, 1021, -1056, -2435, -2233, -578, 1506, 2574, 1939, 147, -1769, -2449, -1458, 534, 2124, 2286, 974, -1051, -2350, -2089, -424, 1560, 2557, 1918, 86, -1816, -2527, -1608, 337, 2068, 2416, 1142, -875, -2313, -2189, -529, 1455, 2480, 1831, -20, -1892, -2448, -1476, 428, 2205, 2406, 1104, -938, -2368, -2200, -723, 1262, 2409, 1903, 113, -1724, -2399, -1452, 448, 2067, 2377, 1022, -1005, -2365, -2296, -702, 1281, 2401, 1926, 102, -1804, -2487, -1587, 308, 1998, 2308, 1115, -802, -2145, -2045, -533, 1417, 2504, 1945, 170, -1672, -2524, -1628, 297, 2053, 2422, 1162, -837, -2271, -2137, -686, 1219, 2253, 1831, 158, -1697, -2431, -1560, 363, 2110, 2439, 1227, -744, -2319, -2312, -796, 1184, 2400, 1995, 240, -1626, -2410, -1626, 290, 2038, 2451, 1242, -788, -2280, -2300, -811, 1271, 2516, 2121, 374, -1538, -2433, -1773, 91, 1931, 2427, 1290, -714, -2264, -2294, -841, 1213, 2472, 2078, 325, -1620, -2563, -1806, 102, 1942, 2481, 1411, -538, -2174, -2329, -929, 1022, 2323, 2014, 346, -1496, -2432, -1769, 58, 1930, 2525, 1485, -508, -2165, -2364, -1009, 990, 2256, 2031, 427, -1478, -2370, -1753, 14, 1758, 2331, 1324, -553, -2089, -2310, -960, 927, 2236, 2105, 612, -1269, -2288, -1823, -86, 1672, 2308, 1460, -330, -1864, -2071, -870, 987, 2188, 1916, 423, -1372, -2251, -1745, -122, 1580, 2209, 1408, -340, -1846, -2132, -1024, 719, 1899, 1840, 559, -1106, -2064, -1624, -122, 1482, 2093, 1350, -321, -1847, -2071, -959, 806, 2013, 1891, 505, -1025, -1823, -2008, -563, 1286, 2273, 1703, -19, -1694, -2236, -1261, 535, 2000, 2189, 839, -1050, -2257, -2091, -536, 1300, 2268, 1724, -30, -1774, -2317, -1393, 412, 1939, 2125, 939, -860, -2046, -1859, -381, 1426, 2360, 1737, 41, -1655, -2358, -1426, 398, 1993, 2231, 979, -899, -2165, -1944, -530, 1244, 2142, 1644, 27, -1673, -2266, -1365, 463, 2042, 2247, 1043, -815, -2220, -2107, -628, 1214, 2269, 1791, 102, -1606, -2252, -1429, 394, 1976, 2279, 1059, -855, -2177, -2100, -637, 1297, 2377, 1908, 227, -1528, -2281, -1572, 210, 1881, 2243, 1099, -786, -2166, -2095, -669, 1245, 2335, 1870, 182, -1613, -2398, -1595, 218, 1893, 2296, 1218, -623, -2090, -2131, -755, 1062, 2203, 1810, 209, -1489, -2278, -1568, 178, 1885, 2340, 1287, -602, -2098, -2167, -828, 1032, 2138, 1834, 280, -1471, -2219, -1555, 131, 1715, 2160, 1137, -627, -2010, -2115, -788, 970, 2126, 1909, 457, -1277, -2168, -1639, 40, 1636, 2146, 1272, -419, -1795, -1897, -710, 1024, 2068, 1729, 284, -1368, -2110, -1558, -1, 1549, 2052, 1227, -427, -1778, -1963, -864, 768, 1805, 1669, 422, -1119, -1939, -1447, -10, 1455, 1944, 1180, -407, -1780, -1897, -799, 852, 1909, 1715, 366, -1019, -1737, -1834, -407, 1298, 2136, 1505, -128, -1652, -2065, -1082, 606, 1917, 2000, 670, -1077, -2138, -1889, -385, 1302, 2126, 1527, -146, -1726, -2144, -1207, 494, 1875, 1956, 773, -899, -1935, -1675, -244, 1418, 2206, 1537, -71, -1622, -2186, -1233, 483, 1916, 2040, 808, -943, -2046, -1755, -387, 1246, 2007, 1472, -84, -1632, -2096, -1179, 545, 1958, 2054, 870, -868, -2108, -1904, -475, 1225, 2129, 1592, -19, -1570, -2089, -1240, 480, 1900, 2088, 881, -909, -2066, -1900, -479, 1307, 2228, 1701, 97, -1502, -2121, -1378, 311, 1817, 2056, 922, -840, -2055, -1896, -510, 1257, 2191, 1664, 56, -1597, -2243, -1392, 317, 1828, 2107, 1036, -690, -1990, -1933, -595, 1084, 2072, 1610, 86, -1466, -2118, -1375, 281, 1822, 2152, 1098, -671, -2001, -1987, -665, 1056, 2009, 1641, 148, -1447, -2061, -1366, 231, 1659, 1985, 962, -684, -1917, -1921, -628, 996, 2004, 1716, 319, -1272, -2023, -1450, 148, 1588, 1977, 1095, -491, -1713, -1723, -561, 1044, 1939, 1545, 160, -1347, -1962, -1376, 103, 1504, 1894, 1056, -496, -1700, -1790, -711, 807, 1713, 1500, 300, -1116, -1808, -1276, 87, 1413, 1792, 1016, -478, -1697, -1724, -651, 882, 1795, 1539, 242, -1001, -1646, -1659, -267, 1284, 2005, 1324, -223, -1595, -1893, -913, 660, 1823, 1811, 516, -1087, -2008, -1691, -251, 1288, 1977, 1338, -244, -1664, -1966, -1032, 562, 1783, 1779, 628, -924, -1816, -1495, -122, 1393, 2047, 1345, -167, -1574, -2009, -1053, 550, 1827, 1848, 650, -969, -1917, -1569, -259, 1232, 1864, 1294, -185, -1588, -1923, -1005, 609, 1860, 1862, 710, -902, -1984, -1705, -337, 1219, 1982, 1399, -123, -1519, -1921, -1061, 548, 1810, 1897, 715, -937, -1960, -1716, -333, 1295, 2072, 1500, -16, -1460, -1957, -1193, 394, 1736, 1870, 757, -876, -1932, -1702, -367, 1252, 2037, 1467, -57, -1550, -2071, -1213, 398, 1747, 1917, 866, -737, -1878, -1737, -450, 1088, 1932, 1418, -19, -1428, -1953, -1192, 366, 1745, 1962, 922, -723, -1890, -1791, -514, 1070, 1874, 1453, 33, -1406, -1900, -1185, 313, 1588, 1809, 797, -724, -1811, -1727, -484, 1004, 1873, 1527, 195, -1250, -1873, -1265, 237, 1538, 1817, 925, -545, -1620, -1549, -426, 1047, 1802, 1366, 51, -1310, -1809, -1202, 191, 1445, 1731, 895, -549, -1608, -1618, -567, 821, 1608, 1351, 191, -1098, -1670, -1113, 168, 1358, 1636, 863, -532, -1604, -1554, -515, 894, 1673, 1369, 134, -972, -1546, -1484, -144, 1257, 1850, 1148, -301, -1524, -1718, -757, 697, 1716, 1625, 378, -1081, -1870, -1497, -133, 1258, 1822, 1158, -324, -1588, -1789, -867, 610, 1681, 1599, 490, -941, -1699, -1318, -18, 1353, 1881, 1162, -246, -1510, -1829, -884, 600, 1724, 1659, 507, -978, -1780, -1390, -145, 1202, 1715, 1123, -266, -1521, -1766, -842, 656, 1749, 1672, 564, -918, -1849, -1510, -215, 1197, 1826, 1216, -209, -1454, -1752, -893, 598, 1708, 1707, 563, -949, -1826, -1530, -211, 1269, 1907, 1308, -112, -1403, -1788, -1018, 459, 1642, 1683, 604, -894, -1800, -1512, -239, 1229, 1877, 1277, -149, -1490, -1889, -1034, 469, 1662, 1726, 709, -768, -1755, -1545, -321, 1076, 1784, 1234, -109, -1374, -1782, -1018, 432, 1653, 1771, 758, -756, -1768, -1596, -377, 1062, 1749, 1276, -66, -1350, -1733, -1013, 378, 1504, 1632, 646, -747, -1695, -1537, -355, 997, 1734, 1345, 88, -1212, -1718, -1089, 311, 1458, 1655, 780, -585, -1514, -1380, -305, 1032, 1658, 1194, -41, -1260, -1653, -1035, 262, 1372, 1567, 743, -584, -1506, -1448, -439, 822, 1488, 1191, 93, -1072, -1527, -958, 235, 1290, 1480, 719, -570, -1500, -1385, -391, 891, 1544, 1202, 42, -931, -1441, -1311, -40, 1213, 1690, 977, -363, -1457, -1549, -611, 716, 1600, 1439, 256, -1059, -1725, -1310, -32, 1213, 1663, 987, -387, -1498, -1610, -715, 642, 1567, 1422, 364, -930, -1572, -1163, 72, 1297, 1711, 990, -308, -1432, -1647, -727, 633, 1609, 1472, 378, -969, -1635, -1217, -47, 1157, 1564, 961, -330, -1437, -1591, -695, 685, 1628, 1486, 431, -918, -1705, -1322, -108, 1158, 1666, 1041, -277, -1375, -1580, -737, 630, 1594, 1520, 426, -943, -1684, -1343, -100, 1241, 1745, 1124, -188, -1332, -1616, -854, 506, 1535, 1498, 467, -893, -1658, -1327, -128, 1188, 1710, 1097, -226, -1415, -1706, -863, 513, 1565, 1556, 565, -779, -1623, -1358, -207, 1047, 1628, 1059, -182, -1305, -1610, -855, 481, 1547, 1582, 608, -772, -1635, -1408, -256, 1034, 1598, 1111, -145, -1281, -1565, -853, 426, 1408, 1455, 509, -754, -1568, -1352, -242, 974, 1588, 1168, -4, -1159, -1559, -922, 365, 1369, 1481, 637, -614, -1406, -1211, -199, 1003, 1509, 1030, -118, -1195, -1494, -878, 317, 1286, 1402, 605, -604, -1395, -1280, -323, 807, 1364, 1034, 12, -1033, -1397, -813, 286, 1210, 1324, 587, -590, -1385, -1219, -281, 871, 1409, 1042, -35, -882, -1329, -1141, 48, 1155, 1525, 818, -407, -1360, -1388, -487, 722, 1473, 1260, 149, -1021, -1572, -1130, 53, 1153, 1499, 828, -432, -1395, -1433, -576, 657, 1444, 1249, 254, -905, -1431, -1002, 149, 1232, 1536, 830, -356, -1342, -1466, -584, 648, 1483, 1291, 264, -943, -1485, -1051, 35, 1097, 1409, 808, -377, -1341, -1414, -557, 702, 1513, 1303, 315, -899, -1554, -1143, -18, 1105, 1502, 877, -329, -1283, -1407, -594, 644, 1469, 1335, 306, -919, -1533, -1164, -5, 1179, 1587, 963, -251, -1246, -1445, -703, 535, 1418, 1317, 345, -875, -1510, -1148, -34, 1132, 1540, 927, -285, -1326, -1521, -708, 541, 1445, 1374, 441, -778, -1480, -1177, -110, 1004, 1469, 895, -238, -1224, -1435, -704, 512, 1430, 1395, 472, -768, -1493, -1224, -151, 991, 1443, 945, -211, -1214, -1398, -702, 455, 1300, 1280, 387, -744, -1432, -1171, -144, 935, 1435, 999, -79, -1093, -1396, -767, 403, 1268, 1310, 505, -618, -1296, -1064, -106, 956, 1357, 875, -178, -1117, -1333, -731, 356, 1190, 1239, 479, -607, -1275, -1116, -222, 779, 1233, 886, -55, -973, -1251, -684, 322, 1119, 1167, 466, -595, -1262, -1059, -185, 836, 1270, 889, -96, -824, -1210, -978, 118, 1085, 1358, 671, -434, -1253, -1216, -370, 719, 1343, 1085, 61, -969, -1414, -960, 120, 1079, 1334, 679, -458, -1282, -1257, -450, 654, 1311, 1081, 157, -865, -1286, -847, 203, 1161, 1378, 680, -385, -1239, -1285, -456, 647, 1348, 1115, 165, -902, -1330, -893, 102, 1025, 1252, 667, -407, -1233, -1241, -431, 695, 1375, 1142, 215, -865, -1395, -971, 55, 1036, 1335, 724, -363, -1182, -1237, -464, 642, 1335, 1155, 200, -880, -1378, -991, 70, 1105, 1411, 803, -297, -1152, -1271, -564, 546, 1288, 1140, 238, -841, -1355, -978, 43, 1060, 1367, 769, -324, -1223, -1336, -566, 552, 1316, 1192, 326, -764, -1348, -1004, -30, 945, 1303, 741, -278, -1129, -1261, -566, 526, 1301, 1212, 352, -748, -1344, -1047, -62, 933, 1284, 789, -258, -1119, -1244, -572, 470, 1182, 1109, 279, -718, -1288, -999, -63, 882, 1278, 841, -136, -1013, -1233, -624, 423, 1155, 1141, 388, -607, -1164, -911, -29, 898, 1199, 728, -223, -1027, -1171, -596, 376, 1084, 1077, 365, -595, -1147, -958, -137, 736, 1098, 745, -108, -903, -1099, -559, 349, 1030, 1014, 358, -583, -1132, -905, -103, 788, 1126, 744, -141, -758, -1087, -821, 170, 1000, 1190, 537, -446, -1135, -1050, -265, 690, 1218, 928, -14, -901, -1253, -799, 170, 994, 1167, 543, -468, -1158, -1086, -338, 636, 1173, 920, 78, -810, -1136, -702, 244, 1062, 1208, 554, -399, -1123, -1109, -342, 628, 1205, 946, 82, -843, -1172, -744, 151, 941, 1095, 537, -420, -1115, -1069, -320, 672, 1228, 972, 128, -826, -1233, -809, 110, 954, 1165, 584, -379, -1067, -1067, -349, 621, 1193, 982, 112, -824, -1218, -827, 129, 1016, 1233, 653, -322, -1061, -1110, -437, 538, 1152, 969, 147, -791, -1194, -817, 102, 974, 1193, 622, -347, -1107, -1154, -438, 545, 1177, 1017, 226, -724, -1197, -853, 34, 873, 1137, 600, -301, -1023, -1088, -441, 520, 1163, 1034, 248, -709, -1189, -879, 7, 860, 1123, 644, -286, -1011, -1075, -450, 471, 1056, 942, 188, -678, -1138, -835, 4, 814, 1117, 692, -178, -921, -1067, -493, 425, 1033, 975, 285, -581, -1029, -761, 31, 837, 1054, 591, -249, -926, -1010, -473, 382, 969, 920, 267, -567, -1014, -805, -65, 681, 960, 614, -146, -820, -949, -443, 355, 925, 879, 265, -557, -995, -757, -37, 725, 980, 607, -169, -684, -958, -673, 205, 904, 1023, 416, -441, -1009, -887, -178, 648, 1070, 775, -68, -823, -1087, -650, 203, 895, 1001, 421, -460, -1026, -919, -241, 600, 1028, 767, 13, -742, -986, -567, 267, 955, 1034, 433, -407, -1009, -935, -245, 594, 1055, 786, 16, -771, -1012, -606, 185, 845, 937, 418, -416, -987, -903, -224, 632, 1074, 809, 55, -762, -1086, -664, 150, 857, 998, 457, -379, -945, -902, -250, 586, 1044, 816, 40, -755, -1054, -675, 169, 913, 1056, 517, -332, -941, -950, -333, 516, 1007, 805, 72, -724, -1032, -777, 144, 875, 1018, 489, -352, -981, -975, -327, 521, 1030, 848, 142, -670, -1035, -699, 85, 795, 969, 472, -309, -905, -919, -331, 498, 1016, 861, 159, -655, -1028]
listSize = len(list)
fullSize = listSize * 3
sound = makeEmptySound(fullSize,10000)
for i in range(0, listSize):
setSampleValueAt(sound,i,list[i])
setSampleValueAt(sound,i + listSize,list[i])
setSampleValueAt(sound,i + listSize + listSize,list[i])
play(sound)
#############################
# plays single buzzer sound #
#############################
def playBuzzer():
list = [1, 0, -1, -1, -1, 1, 1, 1, 0, 0, 0, -1, 1, 2, -1, -1, -1, 1, 2, -4, -2, 1, 0, -2, -1, 1, 1, 2, 1, -3, -1, 1, 2, -1, -7, 1, 1, -2, -4, -1, -1, 1, 1, -2, -1, -2, 3, 6, 2, -1, -2, -3, -3, 4, 5, 2, 1, -1, 2, 4, 2, 4, 0, -3, 1, 8, -6, -6, -1, 2, 3, -6, -4, 1, 1, 6, 2, -4, -1, 6, 3, -13, -2, 3, 0, -2, -10, 4, 3, -1, -1, -2, -4, 0, 8, 11, 2, -6, 3, -7, 0, -4, -9, -6, -11, 3, 38, -28, -38, 4, 41, 31, 7, -17, 23, 73, 78, 81, 50, -3, -35, 76, 43, 9, -10, -67, -46, -31, -10, -86, -106, -32, 7, -86, -54, 45, -39, -58, 15, -19, 49, 19, -133, -50, -40, -34, 35, 17, -77, -294, 20, 125, 105, 114, -7, -72, 43, 96, 219, 312, -111, -79, 24, 110, 62, 41, 91, -138, -29, 98, 29, 80, 55, -60, 177, 181, -95, 61, 95, -31, -146, -72, -62, -25, -227, -306, -71, 55, 315, 123, -23, -118, 195, -107, 74, -599, -964, -312, 306, 294, -195, 103, 136, 248, -235, -1116, 1098, 675, -50, -522, -238, 1041, 801, -480, -637, -352, 1020, 1200, -409, -1191, -482, -65, 324, -425, -184, -550, -1372, -1062, -238, -682, -696, -1194, -1441, -893, -385, -606, -1721, -962, 155, -129, -916, -320, 687, 492, 31, -221, 401, 431, 1133, 639, 899, 746, 996, 1351, 979, 1514, 913, 1668, 1258, 1533, 1200, 473, 1237, 1381, 1813, 443, 817, -635, 2376, 1031, -864, -2177, 2473, 714, 307, -933, -1325, -100, -172, 708, -1323, -1189, 211, -63, -2324, -457, -2295, 256, -601, -2700, -1612, 482, -564, -1239, -2340, -1737, -866, -1514, 980, -2954, -664, -1288, -1315, -1196, 481, -146, -3836, 4534, -2741, -1883, -325, 4893, -481, -4337, 3681, 7355, -128, 580, -6059, 6436, 2463, 1049, 3511, -1484, 5905, 6109, -5111, 1910, -1182, 4483, 8345, -942, 1350, -1669, 2229, 1361, 579, 273, 3820, -11, 158, -2187, 414, 1297, -3037, -1881, -139, 161, 3611, -5479, -4645, -1844, -4816, 2540, -1913, -5563, -689, -553, -1807, -6811, -5523, 3337, -2802, -1534, -2706, -3586, -481, 431, -7122, 7712, -2754, -5445, -2602, 1983, 5964, -3108, -4194, 4566, 4345, 5036, -6677, 1165, 2735, -932, 8944, 4218, 879, 1693, 1230, 2989, -236, -756, 10974, 5726, 330, 196, 2760, 208, -181, 4224, 1963, 4899, -1439, -2241, 1362, 2464, -4511, -618, -1939, 2576, 5018, -583, -11186, -2897, -2391, -3359, 3429, -5753, -2847, 148, -2867, -5898, -6431, -3946, -775, 263, -4185, -2924, -3378, -1882, -3664, -1130, 4493, -2600, -6171, -4140, 8058, 954, -1171, -6189, 5269, 11490, -763, -7764, 5593, -2551, 7382, 6601, 3372, 2576, 85, 3156, 2421, -1634, 5362, 8673, 2620, 2867, -219, 2058, -852, 2138, 5416, 3102, -28, -1763, -1828, 3660, -373, -4365, -1672, -2162, 5745, 3336, -7241, -7237, -2355, -5808, 1779, 911, -5316, -3941, -2742, -830, -3570, -6261, -1351, -2896, 439, -847, -3301, -4333, -1388, -4032, 7470, 648, -5850, -8810, 5709, 8764, -2800, -4639, -755, 10117, 9232, -11731, -634, 6398, -626, 9896, 2283, 2697, 1729, 1375, 2503, 617, -22, 7248, 6398, 1113, 1138, 1641, -161, 910, 3941, 2302, 1904, -1092, -485, 2920, 2125, -3577, -2123, -2265, 1546, 4654, 1533, -6512, -5347, -3679, -2362, 1116, -4503, -5043, 498, -1570, -6307, -6896, -2699, -1648, -3670, -1995, -2923, -3959, -3186, -2169, -4081, 6452, -4461, -3993, -6891, 8918, 4087, -2985, -6384, 5497, 10908, 2498, -13631, 10020, 1627, 2215, 7519, 1834, 3382, 1703, 2541, 1054, -403, 2719, 10125, 1467, -286, 2250, 2400, -2003, 992, 5162, 3380, -895, -1173, 451, 2196, 1667, -4085, -1170, -3471, 5369, 5187, -3077, -7340, -3495, -1022, -702, 1303, -6684, -2837, 798, -1367, -4859, -6395, -1985, -2263, -432, -1573, -4208, -6313, 279, -2425, -839, 3095, -5915, -6741, -579, 9454, 219, -6342, -5616, 10435, 9243, -3786, -8888, 10253, -1527, 5478, 4541, 2305, 2115, 3822, 5240, -1152, -3710, 5909, 10289, 2806, 1459, -1545, 1386, -2377, 6470, 5307, -318, -1646, -1956, 1686, 3274, -2167, -3676, -4782, -543, 6475, 2285, -6552, -9432, -5, -3255, -559, -1805, -6652, -1825, -78, -3517, -5486, -4755, -1223, -2122, -3456, -905, -4870, -2952, 152, -4389, 6978, -4365, -6667, -7562, 7208, 9714, -2396, -9133, 3512, 9338, 6525, -11030, 1673, 4347, 3670, 6911, 4585, 3738, 802, 4560, 2919, -3349, 2023, 13357, 5247, 3180, -208, 2911, -46, 1017, 3360, 5250, 1644, -1281, -459, 373, 3268, -3462, -4373, -2970, 4615, 3243, -2810, -10565, -3747, -2722, 33, -693, -8453, -6143, -1016, -652, -4721, -8977, -2388, -2836, -3786, -70, -4636, -6896, -2524, 3065, -5218, 5148, -4348, -5993, -3381, 8277, 2189, -2720, -7609, 10090, 10575, -256, -11613, 7020, 4343, 853, 6953, 5781, -247, 5627, 2801, 1178, -1639, 3788, 13228, 4634, 731, -219, 4062, 3606, 3388, 2996, 3497, 408, 2271, 1472, 2019, 3178, -3669, -1427, -442, 4032, 3897, -3134, -9284, 22, -1512, -308, -1667, -7993, -3354, 416, -1106, -5900, -6860, -2919, -2746, -1492, -3799, -3345, -5423, -1197, -3410, -2039, 5036, -7638, -6880, -857, 7152, -346, -4519, -3057, 7821, 8355, -2960, -9549, 10329, 160, 5305, 5390, 4099, 3212, 4326, 3304, 1928, -3104, 7998, 12850, 2969, -871, 986, 3017, 839, 5102, 2059, 3933, -1780, -893, 518, 3544, -3030, -5607, -1677, -326, 4798, 1275, -8246, -9469, -3169, -1250, 1543, -6763, -8138, -1683, -676, -4611, -6361, -6447, -2833, -3222, -2170, -2104, -4162, -6238, 1824, -5445, 1788, 2019, -7887, -5000, 2577, 7593, 38, -4930, 1084, 7671, 8174, -6017, -1526, 10687, -118, 7277, 5057, 5606, 3061, 4893, 4532, 1320, -512, 10921, 9598, 1652, 1199, 2496, 2282, 2098, 4945, 2403, 503, -1919, 152, 3126, 2739, -4253, -6627, -2034, 925, 4649, -1363, -7390, -7248, -2356, -2125, -466, -5733, -5935, -1309, -48, -3765, -7610, -2909, -1305, -2689, -3238, -2718, -2869, -3471, 2291, -7421, 2510, -433, -5089, -4372, 3699, 3809, -2319, -5960, 2163, 7671, 5353, -7401, -1185, 6099, -93, 5310, 3956, 2761, 2949, 5857, 2725, -1951, -2212, 12208, 7918, 2514, 1116, 3714, 2207, 1973, 5181, 5484, 359, -1640, 3402, 3850, 3004, -3504, -4000, -3837, 5566, 5712, -3069, -9054, -3878, -2203, -4277, -30, -7517, -6660, -1961, -825, -3317, -9666, -5709, -3278, -4164, -980, -4667, -6601, -718, 77, -9082, 6653, -4138, -7666, -1889, 6885, 3907, -3669, -5832, 6074, 8295, 3381, -10475, 4596, 5055, 2864, 6027, 3559, 1311, 4552, 5671, 1253, -3078, 310, 15106, 5778, -1168, 1117, 1278, 2681, 4440, 1728, 5645, -1728, -2882, 2942, 2784, 3444, -5667, -5072, 838, 5534, 3367, -4890, -10036, -1968, 133, -1932, -2096, -8665, -1583, -182, -3376, -5659, -8423, -1916, -2658, -3209, -1915, -4623, -5134, -591, -4263, -3423, 7213, -6766, -6173, -3619, 10123, 2385, -5566, -4600, 7283, 12065, -1799, -10675, 11507, -2954, 8323, 6197, 3188, 4488, 1733, 2653, 3296, 542, 5827, 7330, 3227, 3639, 247, 3746, 1392, 751, 4312, 3979, -1799, -1470, -579, 4299, 1405, -6382, -4544, -810, 4706, 2107, -6214, -7909, -2614, -2851, -1952, -1926, -5678, -3328, -5323, -1338, -1783, -4527, -5829, -4442, 11, -671, -2415, -6679, 38, -3062, 1413, 6681, -8688, -5899, 2233, 11638, -1163, -5973, -2532, 10486, 10978, -2949, -5874, 9699, -2754, 7404, 5749, 4120, 1856, 5003, 4069, 739, -1579, 5180, 8653, 1130, 2208, 1311, 2231, -2037, 2345, 4598, 1455, -2644, -42, -211, 3000, -1879, -4581, -2647, -1786, 6578, 1729, -7278, -9362, -307, -377, -2241, -4938, -5115, -1680, -947, -2017, -6470, -6104, -2216, -3371, -100, -2212, -3883, -5236, 708, -6385, 5429, 796, -7626, -7209, 4670, 7982, -2722, -6273, 913, 8684, 7155, -10914, 1430, 5422, -2086, 9221, 2772, 3299, 1957, 666, 5277, 549, -1577, 9336, 6043, 2053, 3128, 2689, 2457, -574, 3513, 5837, 3911, 108, 184, 178, 5905, -2432, -3815, -640, 1949, 5470, -578, -8275, -4268, -2209, -3089, -1670, -4720, -3644, -3342, -2927, -4444, -6811, -4662, -4551, -3523, -1725, -2683, -6164, -3510, -2963, -1582, 5421, -7601, -5418, -4337, 10787, 2299, -4388, -3456, 5912, 8767, 2510, -11649, 10944, -4, 6407, 7286, 1241, 5047, 956, 3670, 3092, 494, 4891, 9498, 1631, 3399, 825, 5071, 186, -602, 3202, 7483, 877, -910, -2226, 2627, 1767, -4844, -1878, -1338, 2648, 3044, -5423, -7926, -2369, -5178, -1189, -1210, -8080, -4292, -3595, -1684, -3378, -7601, -3620, -5491, -1200, -1830, -4077, -4575, 142, -5794, 3903, -206, -5187, -5102, 3446, 6337, -1656, -2606, 328, 6129, 8239, -5965, -1410, 9253, -4037, 9261, 1920, 3125, 3598, 2485, 2113, 1822, 732, 6882, 3909, 2425, 771, 2126, 3418, -1404, 1812, 2412, 4352, -1096, -1573, -2422, 4158, -1465, -5790, -2024, 2609, 3473, -7, -8420, -5302, -2111, -2512, 2182, -4798, -5464, -1462, -1607, -2706, -7047, -2604, -815, -3494, -1305, -1500, -3835, -2897, -1690, -2192, 7011, -5512, -4907, -4162, 9061, 2037, -1970, -5848, 4269, 9036, 5283, -11833, 8307, -2567, 2150, 9747, 2395, 2722, -453, 2481, 5435, -1391, 1910, 7294, 3631, 3261, -1436, 5696, 404, -988, 3649, 4384, 2024, -854, -2335, 1272, 4457, -3758, -3727, -1963, 3422, 5473, -2841, -8924, -3658, -3390, -288, 652, -5646, -4237, -3212, -1326, -4372, -4372, -3216, -5990, -1363, -1904, -1393, -5408, -3363, -2868, 1898, 2960, -7172, -7119, -1440, 10840, 1053, -5245, -3758, 6937, 10567, -1136, -7530, 9072, -2846, 8590, 6184, 2994, 6392, 2832, 818, 1708, 1282, 9744, 6659, -1182, 4142, 3514, 6494, -3087, -1228, 4267, 5747, 2159, -654, -4736, 3570, 1788, -4016, -2824, -1597, 5700, 3095, -7298, -5771, -3939, -3675, 592, -2690, -4876, -814, -5017, -4626, -6053, -4061, -1892, -4098, -2035, -3076, -2873, -5602, -2947, -5722, 6628, -1759, -4978, -6526, 4897, 5141, -3596, -5172, 3738, 7688, 8308, -7758, 3369, 2978, -2174, 9777, 4172, 4937, 4294, 2109, 871, 229, 1848, 11159, 1789, 1721, 2800, 3350, 1536, -3176, 1087, 5419, 3166, -1866, -1193, -725, 2397, -4308, -3914, -1963, 1962, 3287, -1508, -8797, -4232, -2804, -2955, 180, -5674, -5048, -1794, -2459, -1663, -6801, -3884, -4123, -2325, -103, -1863, -5206, -3794, -1755, -3218, 6519, -6730, -5146, -3653, 9702, 288, -4660, -5626, 6755, 8047, 3186, -10744, 6100, 31, 3014, 6907, 2277, 2814, 2067, 3622, 2486, -3019, 3375, 10594, 1735, 2150, 958, 3450, 973, 986, 2861, 5611, -1381, 83, 900, 3196, 1513, -5317, -2861, -1476, 5014, 6123, -4519, -7502, -2012, -3946, -1134, -1004, -4736, -1522, -1154, -1264, -4926, -7436, -2312, -2961, -665, -746, -1271, -5698, -1407, -4792, 2809, 2473, -8001, -4575, 820, 9028, -616, -5322, -3117, 7243, 10026, -3589, -7243, 8687, -3156, 8088, 4191, 1921, 3700, 3111, 2737, 1518, -841, 6872, 7167, 1331, 2319, 3087, 5257, -1648, 1157, 2855, 5478, 1012, -477, -1478, 3606, -85, -3851, -237, 29, 4259, 2225, -6852, -4920, -1060, -3454, 700, -3117, -4180, -251, -2051, -3980, -7472, -980, -1710, -4623, 292, -2480, -4931, -2301, 419, -6519, 5883, -3720, -4880, -4879, 5840, 4559, -1678, -6641, 1726, 8012, 7673, -11482, 3531, 3516, -1789, 9894, 1092, 3825, 3146, 2208, 796, 424, 2251, 10405, 2670, 1770, 1621, 2603, 3133, 656, 2232, 4275, 2849, -894, 80, -99, 4559, -3199, -2775, -1507, 2139, 4333, -1812, -6994, -3182, -3702, -1930, 2241, -5064, -4537, -3193, -2268, -2404, -5515, -2989, -3741, -2102, -888, -3822, -5429, -1349, -1877, -3382, 6413, -5766, -6730, -4570, 9185, 867, -2921, -4233, 5243, 7266, 2513, -10470, 7555, 146, 3869, 9009, 3075, 1198, 3811, 3711, 2982, -422, 3181, 12656, 2397, 1788, 1906, 3490, 720, 2336, 3036, 4440, 852, -309, -356, 2529, 1783, -5490, -2611, -659, 4438, 2793, -3981, -9277, -2893, -1362, -335, -1785, -5505, -3493, -2623, -289, -5470, -6561, -1511, -2341, -1174, -2510, -2899, -5185, 214, -3909, -918, 4171, -5142, -5231, -2298, 8757, 374, -5512, -4458, 8005, 9656, -3855, -7696, 7858, -1770, 6924, 3954, 3908, 1575, 720, 4005, 1694, -2431, 6086, 8436, 2783, 1652, -434, 1898, -1783, 1854, 4785, 5897, -2442, -1277, -1632, 1658, -1037, -4308, -2692, -302, 5506, 2713, -8006, -7759, -3798, -1212, 1360, -3054, -4780, -2152, -2473, -2636, -5033, -3705, -794, -3101, -376, -2522, -3398, -5558, 1991, -3823, 5219, -2352, -7076, -4327, 3450, 7969, -2518, -6165, 2450, 7664, 7444, -9001, -381, 7344, -964, 7302, 3949, 2883, 2232, 3217, 3517, 535, -368, 10198, 5769, 2244, 499, 3317, 2475, 131, 3667, 5343, 2936, -2069, -353, 931, 4564, -3100, -3580, -546, 629, 4515, -1090, -8384, -4134, -2641, -1528, -910, -5149, -5897, -4429, -936, -2202, -6447, -5068, -4644, -2501, -1485, -3014, -6964, -2996, 493, -4636, 5250, -6689, -5100, -5112, 7394, 2270, -3887, -4725, 5779, 7996, 2572, -13439, 6922, 997, 4683, 7605, 918, 2968, 3189, 3727, 1621, -1162, 1610, 11621, 5914, 436, 1744, 3697, -2048, 2241, 5786, 5763, 2061, -1217, -1075, 1285, 2923, -3596, -1816, -1380, 4188, 4879, -3207, -8519, -4631, -1252, -444, 380, -4651, -4122, -2825, -1298, -3188, -7397, -3210, -1387, -1017, -2444, -1725, -7016, -579, -3555, -87, 5869, -4709, -5632, -3588, 9632, -1438, -3077, -2891, 6822, 10727, -3919, -10144, 8533, -2399, 6461, 4097, 2597, 2259, 2823, 1931, 1326, -3277, 4090, 10232, 361, 435, 1264, 3637, -1102, 63, 4358, 5342, -1986, -1571, 851, 3573, -843, -4951, -306, 598, 4884, 2380, -5793, -6972, -2101, -1144, 819, -1044, -3348, -1926, -3170, -1688, -4212, -4467, -2405, -1130, -85, -2389, -2861, -5476, -813, -6393, 5818, -278, -4683, -8408, 3391, 7596, -5513, -5870, 1564, 8519, 7388, -11116, -546, 5602, -1311, 8408, 1410, 5780, 2239, 415, 4223, 1294, 736, 7839, 6193, 2327, 1012, 2541, 3959, -978, 2681, 5842, 3406, -1730, -643, 862, 3193, -1770, -3237, -2178, 1320, 5320, -349, -7714, -6015, -2426, -912, 1181, -5110, -5338, -2558, -2203, -2509, -7111, -3728, -2491, -1522, -1347, -2731, -5608, -2896, -3648, -1608, 6380, -6779, -4536, -5261, 8138, 1674, -3673, -4118, 3730, 8154, 2048, -11738, 9778, -2405, 3882, 8055, 1128, 4077, 1462, 596, 3994, 988, 4529, 7234, 2255, 3881, 495, 2057, 1870, 987, 3576, 7228, 157, -1719, -2077, 3159, 4302, -4593, -4638, 996, 3380, 2663, -3343, -6532, -1559, -4869, -796, 488, -5736, -3434, -2993, -1985, -2015, -7106, -3528, -3094, -321, -1280, -3350, -7446, -1107, -4235, 2261, 2545, -6428, -6915, 743, 9243, -3176, -4054, -548, 5992, 7917, -2405, -5094, 7611, -3043, 7657, 5385, 4344, 1098, 1841, 4449, 2653, -1320, 5197, 6945, 1899, 1883, 1671, 2801, -828, 1039, 4368, 2885, -1568, -165, -888, 3347, -2066, -5107, -2229, -158, 5473, 1862, -7934, -6627, -3389, -1292, 1248, -2193, -6200, -3649, -1795, -1890, -4148, -4087, -2754, -2082, -152, -2697, -3534, -5512, -72, -3541, 7084, -3463, -4916, -6453, 6195, 4082, -2228, -3618, 1133, 7363, 7817, -11093, 4263, 1146, -1108, 10531, 3516, 3390, 2031, 1133, 1713, 290, 2180, 10339, 3415, 1751, 593, 3733, 894, -2613, 4500, 5724, 2663, -2278, -1681, 577, 2256, -3048, -3219, -1069, 1831, 5009, -1849, -9180, -4074, -2665, -1782, 1024, -4077, -3944, -2409, -3398, -2993, -5916, -3289, -2610, -2057, -1416, -2826, -4732, -1918, -4309, -1406, 6015, -6114, -4187, -4132, 9435, -1150, -3120, -2859, 4603, 9763, 84, -8769, 10329, -6140, 6526, 6181, 1743, 6337, 2611, 1172, 1773, -1494, 6590, 9296, 1038, 2159, 1247, 6035, -1326, 981, 3216, 5634, 909, -1297, -975, 2756, 1285, -4101, -3311, -212, 5547, 3493, -6431, -8016, -2331, -3406, 429, -1871, -5083, -1357, -3939, -3969, -4340, -5187, -1472, -3203, -1696, -1397, -3501, -5739, -157, -5754, 4622, 676, -4687, -7661, 3428, 8283, -2737, -5369, 1597, 7831, 11040, -8708, -1252, 7229, -3142, 11750, 2676, 2944, 6628, 3384, 2277, -19, 44, 10814, 5208, 554, 2589, 2841, 5295, -2045, -512, 5472, 5310, -2507, -2948, -350, 4356, -1878, -4632, -4573, 1134, 7175, -1203, -9665, -7237, -1592, -532, -846, -4945, -5150, -1232, -5099, -3012, -4632, -3190, -3531, -3406, -1013, -2510, -1766, -6223, -428, -4567, 2851, 4807, -7538, -6579, 2616, 9672, -1926, -7763, 1776, 10591, 5645, -6827, -3999, 10082, 320, 6226, 3419, 750, 3726, 6471, 2543, -1262, -3375, 9980, 10194, -1518, 1747, 430, 1726, 457, 3552, 4926, 1061, -1211, -1354, 801, 2450, -2215, -3532, -1894, 559, 5766, -3235, -7008, -4391, -2206, -124, -1995, -7145, -2363, -173, -2549, -6058, -4517, -822, -2738, -6353, -1078, -3885, -2482, -580, -3551, -3949, -2214, 549, 582, -2696, -1271, 1519, 1018, -2205, 288, 3962, 1103, 867, 1304, 5803, 2608, 842, 3777, 2823, 4040, 2221, 2995, 3171, 2163, 5794, 2133, 2425, 2347, 2663, 2768, 927, 1900, 2645, -903, 1778, 108, 1006, -1356, 85, 213, -1092, -2362, -1319, -557, -1923, -3137, -3163, -832, -3574, -4636, -1017, -2059, -4035, -1533, -4904, 10, -1899, -3029, -3970, -4623, -273, -852, -1168, -841, -3820, 708, 722, -1443, 430, -85, -159, -228, 1115, 3012, 751, -842, 1478, 3951, 2585, 2151, 839, 2393, 2360, 2258, 3439, 859, 1509, 4239, 2676, 2910, 669, 2348, 1361, 2173, 1904, 565, 200, 419, 1764, 588, 588, -1769, -206, 492, -430, -993, -1593, -2139, -975, -961, -1847, -3499, -3026, 495, -2968, -2136, -2829, -3888, -218, -1291, -1818, -4886, -2970, -641, -667, -1913, -1741, -2025, -43, -401, -1042, -177, -840, 27, 455, 1005, 621, 125, 1065, 1322, 1774, 1846, 2270, 803, 1750, 2635, 1743, 1833, 1291, 1204, 3084, 5221, 505, -1096, 3402, 3905, 1392, -900, 260, 2483, 3956, -1904, -505, 857, 1657, -220, -1080, -1146, 502, -1201, -1106, -1422, -852, -918, -2085, -1928, -1747, -1147, -2471, -1987, -2192, -1383, -1622, -963, -2864, -2041, -1056, -910, -1444, -1354, -1609, 120, -276, -1410, -623, -32, 404, 235, -125, 716, 970, 560, 736, 1399, 1318, 961, 1877, 1578, 1460, 1221, 1373, 2331, 2438, 519, 588, 1968, 1885, 1295, 1072, 1296, 133, 530, 1321, 1276, -104, -185, -244, 113, 343, 8, -758, -1013, -562, -356, -125, -1257, -966, -1332, -1573, -1134, -460, -1084, -1905, -1121, -298, -941, -1295, -1178, -526, -729, -1025, -555, -126, -256, -268, -353, 82, 495, 88, 68, 245, 411, 694, 363, 368, 806, 514, 807, 794, 861, 501, 508, 756, 519, 475, 666, 440, 124, -27, 576, 813, 145, -123, -120, 11, 86, -168, -287, 105, -170, -539, -496, -275, -252, -424, -722, -660, -142, -343, -906, -697, -361, -522, -576, -404, -285, -276, -221, -353, -412, -210, -54, -39, 82, -25, -189, -79, 314, 225, 143, -18, 170, 401, 417, 367, 360, 217, 267, 463, 514, 423, 328, 357, 190, 252, 158, 322, 224, 248, 71, -62, 21, 13, 20, -57, -162, -268, -325, -260, -185, -244, -333, -478, -317, -187, -220, -501, -361, -359, -364, -347, -427, -256, -214, -174, -157, -121, -51, -20, 50, -27, -63, 31, 174, 111, 131, 44, 64, 269, 231, 359, 197, 212, 215, 449, 485, 441, 288, 184, 326, 357, 234, 221, 186, 208, 62, 31, 191, 244, 70, -196, -214, -134, 46, -61, -184, -427, -254, -176, -82, -172, -322, -490, -257, -125, -186, -158, -167, -319, -251, -163, -245, 35, -98, -138, -2, -88, 80, 85, 10, 35, 46, 23, 127, 242, 242, 281, 243, 279, 254, 212, 228, 228, 194, 287, 197, 149, 175, 199, 279, 133, 32, -10, -24, -10, -10, 20, 26, 24, -20, -5, -121, -256, -203, -275, -181, 9, -93, -223, -209, -231, -240, -16, -46, -18, -132, -257, -148, -12, -26, 25, -35, -143, 12, -16, -39, -4, 9, -1, 20, 33, 12, 9, -22, -34, 31, 42, 1, -3, 2, 32, -22, -20, 7, -5, -7, -17, 7, -10, -7, -3, 3, 3, -1, -6, -2, -3, 7, 9, 7, -8, -1, 10, 6, 15, 2, 2, -2, -6, 0, 2, 6, 13, 4, 0, -8, -6, 1, 1, 11, 7, 4, -5, -2, -2, 7, -5, -10, 3, 2, 5, -11, -2, 9, 4, 13, 10, 13, 9, 11, 2, 12, 14, 0, 9, -1, -8, 2, 7, 2, -1, -8, 4, 0, 0, 3, 2, 6, 5, 3, 13, 12, -4, -1, 2, -1, -2, 0, -3, 4, -2, 1, 6, 4, 3, -1, 3, 9, 5, 5, 8, -2, 4, 3, 1, 0, 0, -2, -3, -3, -5, 1, 1, 0, -2, -2, 2, 1, 0, 0, 1, 2, 1, -1, 0, 0, -1, 0, 0, 1]
size = len(list)
sound = makeEmptySound(size,8000)
for i in range(0, size):
setSampleValueAt(sound,i,list[i])
play(sound)
#############################
# plays triple buzzer sound #
#############################
def play3Buzzer():
list = [1, 0, -1, -1, -1, 1, 1, 1, 0, 0, 0, -1, 1, 2, -1, -1, -1, 1, 2, -4, -2, 1, 0, -2, -1, 1, 1, 2, 1, -3, -1, 1, 2, -1, -7, 1, 1, -2, -4, -1, -1, 1, 1, -2, -1, -2, 3, 6, 2, -1, -2, -3, -3, 4, 5, 2, 1, -1, 2, 4, 2, 4, 0, -3, 1, 8, -6, -6, -1, 2, 3, -6, -4, 1, 1, 6, 2, -4, -1, 6, 3, -13, -2, 3, 0, -2, -10, 4, 3, -1, -1, -2, -4, 0, 8, 11, 2, -6, 3, -7, 0, -4, -9, -6, -11, 3, 38, -28, -38, 4, 41, 31, 7, -17, 23, 73, 78, 81, 50, -3, -35, 76, 43, 9, -10, -67, -46, -31, -10, -86, -106, -32, 7, -86, -54, 45, -39, -58, 15, -19, 49, 19, -133, -50, -40, -34, 35, 17, -77, -294, 20, 125, 105, 114, -7, -72, 43, 96, 219, 312, -111, -79, 24, 110, 62, 41, 91, -138, -29, 98, 29, 80, 55, -60, 177, 181, -95, 61, 95, -31, -146, -72, -62, -25, -227, -306, -71, 55, 315, 123, -23, -118, 195, -107, 74, -599, -964, -312, 306, 294, -195, 103, 136, 248, -235, -1116, 1098, 675, -50, -522, -238, 1041, 801, -480, -637, -352, 1020, 1200, -409, -1191, -482, -65, 324, -425, -184, -550, -1372, -1062, -238, -682, -696, -1194, -1441, -893, -385, -606, -1721, -962, 155, -129, -916, -320, 687, 492, 31, -221, 401, 431, 1133, 639, 899, 746, 996, 1351, 979, 1514, 913, 1668, 1258, 1533, 1200, 473, 1237, 1381, 1813, 443, 817, -635, 2376, 1031, -864, -2177, 2473, 714, 307, -933, -1325, -100, -172, 708, -1323, -1189, 211, -63, -2324, -457, -2295, 256, -601, -2700, -1612, 482, -564, -1239, -2340, -1737, -866, -1514, 980, -2954, -664, -1288, -1315, -1196, 481, -146, -3836, 4534, -2741, -1883, -325, 4893, -481, -4337, 3681, 7355, -128, 580, -6059, 6436, 2463, 1049, 3511, -1484, 5905, 6109, -5111, 1910, -1182, 4483, 8345, -942, 1350, -1669, 2229, 1361, 579, 273, 3820, -11, 158, -2187, 414, 1297, -3037, -1881, -139, 161, 3611, -5479, -4645, -1844, -4816, 2540, -1913, -5563, -689, -553, -1807, -6811, -5523, 3337, -2802, -1534, -2706, -3586, -481, 431, -7122, 7712, -2754, -5445, -2602, 1983, 5964, -3108, -4194, 4566, 4345, 5036, -6677, 1165, 2735, -932, 8944, 4218, 879, 1693, 1230, 2989, -236, -756, 10974, 5726, 330, 196, 2760, 208, -181, 4224, 1963, 4899, -1439, -2241, 1362, 2464, -4511, -618, -1939, 2576, 5018, -583, -11186, -2897, -2391, -3359, 3429, -5753, -2847, 148, -2867, -5898, -6431, -3946, -775, 263, -4185, -2924, -3378, -1882, -3664, -1130, 4493, -2600, -6171, -4140, 8058, 954, -1171, -6189, 5269, 11490, -763, -7764, 5593, -2551, 7382, 6601, 3372, 2576, 85, 3156, 2421, -1634, 5362, 8673, 2620, 2867, -219, 2058, -852, 2138, 5416, 3102, -28, -1763, -1828, 3660, -373, -4365, -1672, -2162, 5745, 3336, -7241, -7237, -2355, -5808, 1779, 911, -5316, -3941, -2742, -830, -3570, -6261, -1351, -2896, 439, -847, -3301, -4333, -1388, -4032, 7470, 648, -5850, -8810, 5709, 8764, -2800, -4639, -755, 10117, 9232, -11731, -634, 6398, -626, 9896, 2283, 2697, 1729, 1375, 2503, 617, -22, 7248, 6398, 1113, 1138, 1641, -161, 910, 3941, 2302, 1904, -1092, -485, 2920, 2125, -3577, -2123, -2265, 1546, 4654, 1533, -6512, -5347, -3679, -2362, 1116, -4503, -5043, 498, -1570, -6307, -6896, -2699, -1648, -3670, -1995, -2923, -3959, -3186, -2169, -4081, 6452, -4461, -3993, -6891, 8918, 4087, -2985, -6384, 5497, 10908, 2498, -13631, 10020, 1627, 2215, 7519, 1834, 3382, 1703, 2541, 1054, -403, 2719, 10125, 1467, -286, 2250, 2400, -2003, 992, 5162, 3380, -895, -1173, 451, 2196, 1667, -4085, -1170, -3471, 5369, 5187, -3077, -7340, -3495, -1022, -702, 1303, -6684, -2837, 798, -1367, -4859, -6395, -1985, -2263, -432, -1573, -4208, -6313, 279, -2425, -839, 3095, -5915, -6741, -579, 9454, 219, -6342, -5616, 10435, 9243, -3786, -8888, 10253, -1527, 5478, 4541, 2305, 2115, 3822, 5240, -1152, -3710, 5909, 10289, 2806, 1459, -1545, 1386, -2377, 6470, 5307, -318, -1646, -1956, 1686, 3274, -2167, -3676, -4782, -543, 6475, 2285, -6552, -9432, -5, -3255, -559, -1805, -6652, -1825, -78, -3517, -5486, -4755, -1223, -2122, -3456, -905, -4870, -2952, 152, -4389, 6978, -4365, -6667, -7562, 7208, 9714, -2396, -9133, 3512, 9338, 6525, -11030, 1673, 4347, 3670, 6911, 4585, 3738, 802, 4560, 2919, -3349, 2023, 13357, 5247, 3180, -208, 2911, -46, 1017, 3360, 5250, 1644, -1281, -459, 373, 3268, -3462, -4373, -2970, 4615, 3243, -2810, -10565, -3747, -2722, 33, -693, -8453, -6143, -1016, -652, -4721, -8977, -2388, -2836, -3786, -70, -4636, -6896, -2524, 3065, -5218, 5148, -4348, -5993, -3381, 8277, 2189, -2720, -7609, 10090, 10575, -256, -11613, 7020, 4343, 853, 6953, 5781, -247, 5627, 2801, 1178, -1639, 3788, 13228, 4634, 731, -219, 4062, 3606, 3388, 2996, 3497, 408, 2271, 1472, 2019, 3178, -3669, -1427, -442, 4032, 3897, -3134, -9284, 22, -1512, -308, -1667, -7993, -3354, 416, -1106, -5900, -6860, -2919, -2746, -1492, -3799, -3345, -5423, -1197, -3410, -2039, 5036, -7638, -6880, -857, 7152, -346, -4519, -3057, 7821, 8355, -2960, -9549, 10329, 160, 5305, 5390, 4099, 3212, 4326, 3304, 1928, -3104, 7998, 12850, 2969, -871, 986, 3017, 839, 5102, 2059, 3933, -1780, -893, 518, 3544, -3030, -5607, -1677, -326, 4798, 1275, -8246, -9469, -3169, -1250, 1543, -6763, -8138, -1683, -676, -4611, -6361, -6447, -2833, -3222, -2170, -2104, -4162, -6238, 1824, -5445, 1788, 2019, -7887, -5000, 2577, 7593, 38, -4930, 1084, 7671, 8174, -6017, -1526, 10687, -118, 7277, 5057, 5606, 3061, 4893, 4532, 1320, -512, 10921, 9598, 1652, 1199, 2496, 2282, 2098, 4945, 2403, 503, -1919, 152, 3126, 2739, -4253, -6627, -2034, 925, 4649, -1363, -7390, -7248, -2356, -2125, -466, -5733, -5935, -1309, -48, -3765, -7610, -2909, -1305, -2689, -3238, -2718, -2869, -3471, 2291, -7421, 2510, -433, -5089, -4372, 3699, 3809, -2319, -5960, 2163, 7671, 5353, -7401, -1185, 6099, -93, 5310, 3956, 2761, 2949, 5857, 2725, -1951, -2212, 12208, 7918, 2514, 1116, 3714, 2207, 1973, 5181, 5484, 359, -1640, 3402, 3850, 3004, -3504, -4000, -3837, 5566, 5712, -3069, -9054, -3878, -2203, -4277, -30, -7517, -6660, -1961, -825, -3317, -9666, -5709, -3278, -4164, -980, -4667, -6601, -718, 77, -9082, 6653, -4138, -7666, -1889, 6885, 3907, -3669, -5832, 6074, 8295, 3381, -10475, 4596, 5055, 2864, 6027, 3559, 1311, 4552, 5671, 1253, -3078, 310, 15106, 5778, -1168, 1117, 1278, 2681, 4440, 1728, 5645, -1728, -2882, 2942, 2784, 3444, -5667, -5072, 838, 5534, 3367, -4890, -10036, -1968, 133, -1932, -2096, -8665, -1583, -182, -3376, -5659, -8423, -1916, -2658, -3209, -1915, -4623, -5134, -591, -4263, -3423, 7213, -6766, -6173, -3619, 10123, 2385, -5566, -4600, 7283, 12065, -1799, -10675, 11507, -2954, 8323, 6197, 3188, 4488, 1733, 2653, 3296, 542, 5827, 7330, 3227, 3639, 247, 3746, 1392, 751, 4312, 3979, -1799, -1470, -579, 4299, 1405, -6382, -4544, -810, 4706, 2107, -6214, -7909, -2614, -2851, -1952, -1926, -5678, -3328, -5323, -1338, -1783, -4527, -5829, -4442, 11, -671, -2415, -6679, 38, -3062, 1413, 6681, -8688, -5899, 2233, 11638, -1163, -5973, -2532, 10486, 10978, -2949, -5874, 9699, -2754, 7404, 5749, 4120, 1856, 5003, 4069, 739, -1579, 5180, 8653, 1130, 2208, 1311, 2231, -2037, 2345, 4598, 1455, -2644, -42, -211, 3000, -1879, -4581, -2647, -1786, 6578, 1729, -7278, -9362, -307, -377, -2241, -4938, -5115, -1680, -947, -2017, -6470, -6104, -2216, -3371, -100, -2212, -3883, -5236, 708, -6385, 5429, 796, -7626, -7209, 4670, 7982, -2722, -6273, 913, 8684, 7155, -10914, 1430, 5422, -2086, 9221, 2772, 3299, 1957, 666, 5277, 549, -1577, 9336, 6043, 2053, 3128, 2689, 2457, -574, 3513, 5837, 3911, 108, 184, 178, 5905, -2432, -3815, -640, 1949, 5470, -578, -8275, -4268, -2209, -3089, -1670, -4720, -3644, -3342, -2927, -4444, -6811, -4662, -4551, -3523, -1725, -2683, -6164, -3510, -2963, -1582, 5421, -7601, -5418, -4337, 10787, 2299, -4388, -3456, 5912, 8767, 2510, -11649, 10944, -4, 6407, 7286, 1241, 5047, 956, 3670, 3092, 494, 4891, 9498, 1631, 3399, 825, 5071, 186, -602, 3202, 7483, 877, -910, -2226, 2627, 1767, -4844, -1878, -1338, 2648, 3044, -5423, -7926, -2369, -5178, -1189, -1210, -8080, -4292, -3595, -1684, -3378, -7601, -3620, -5491, -1200, -1830, -4077, -4575, 142, -5794, 3903, -206, -5187, -5102, 3446, 6337, -1656, -2606, 328, 6129, 8239, -5965, -1410, 9253, -4037, 9261, 1920, 3125, 3598, 2485, 2113, 1822, 732, 6882, 3909, 2425, 771, 2126, 3418, -1404, 1812, 2412, 4352, -1096, -1573, -2422, 4158, -1465, -5790, -2024, 2609, 3473, -7, -8420, -5302, -2111, -2512, 2182, -4798, -5464, -1462, -1607, -2706, -7047, -2604, -815, -3494, -1305, -1500, -3835, -2897, -1690, -2192, 7011, -5512, -4907, -4162, 9061, 2037, -1970, -5848, 4269, 9036, 5283, -11833, 8307, -2567, 2150, 9747, 2395, 2722, -453, 2481, 5435, -1391, 1910, 7294, 3631, 3261, -1436, 5696, 404, -988, 3649, 4384, 2024, -854, -2335, 1272, 4457, -3758, -3727, -1963, 3422, 5473, -2841, -8924, -3658, -3390, -288, 652, -5646, -4237, -3212, -1326, -4372, -4372, -3216, -5990, -1363, -1904, -1393, -5408, -3363, -2868, 1898, 2960, -7172, -7119, -1440, 10840, 1053, -5245, -3758, 6937, 10567, -1136, -7530, 9072, -2846, 8590, 6184, 2994, 6392, 2832, 818, 1708, 1282, 9744, 6659, -1182, 4142, 3514, 6494, -3087, -1228, 4267, 5747, 2159, -654, -4736, 3570, 1788, -4016, -2824, -1597, 5700, 3095, -7298, -5771, -3939, -3675, 592, -2690, -4876, -814, -5017, -4626, -6053, -4061, -1892, -4098, -2035, -3076, -2873, -5602, -2947, -5722, 6628, -1759, -4978, -6526, 4897, 5141, -3596, -5172, 3738, 7688, 8308, -7758, 3369, 2978, -2174, 9777, 4172, 4937, 4294, 2109, 871, 229, 1848, 11159, 1789, 1721, 2800, 3350, 1536, -3176, 1087, 5419, 3166, -1866, -1193, -725, 2397, -4308, -3914, -1963, 1962, 3287, -1508, -8797, -4232, -2804, -2955, 180, -5674, -5048, -1794, -2459, -1663, -6801, -3884, -4123, -2325, -103, -1863, -5206, -3794, -1755, -3218, 6519, -6730, -5146, -3653, 9702, 288, -4660, -5626, 6755, 8047, 3186, -10744, 6100, 31, 3014, 6907, 2277, 2814, 2067, 3622, 2486, -3019, 3375, 10594, 1735, 2150, 958, 3450, 973, 986, 2861, 5611, -1381, 83, 900, 3196, 1513, -5317, -2861, -1476, 5014, 6123, -4519, -7502, -2012, -3946, -1134, -1004, -4736, -1522, -1154, -1264, -4926, -7436, -2312, -2961, -665, -746, -1271, -5698, -1407, -4792, 2809, 2473, -8001, -4575, 820, 9028, -616, -5322, -3117, 7243, 10026, -3589, -7243, 8687, -3156, 8088, 4191, 1921, 3700, 3111, 2737, 1518, -841, 6872, 7167, 1331, 2319, 3087, 5257, -1648, 1157, 2855, 5478, 1012, -477, -1478, 3606, -85, -3851, -237, 29, 4259, 2225, -6852, -4920, -1060, -3454, 700, -3117, -4180, -251, -2051, -3980, -7472, -980, -1710, -4623, 292, -2480, -4931, -2301, 419, -6519, 5883, -3720, -4880, -4879, 5840, 4559, -1678, -6641, 1726, 8012, 7673, -11482, 3531, 3516, -1789, 9894, 1092, 3825, 3146, 2208, 796, 424, 2251, 10405, 2670, 1770, 1621, 2603, 3133, 656, 2232, 4275, 2849, -894, 80, -99, 4559, -3199, -2775, -1507, 2139, 4333, -1812, -6994, -3182, -3702, -1930, 2241, -5064, -4537, -3193, -2268, -2404, -5515, -2989, -3741, -2102, -888, -3822, -5429, -1349, -1877, -3382, 6413, -5766, -6730, -4570, 9185, 867, -2921, -4233, 5243, 7266, 2513, -10470, 7555, 146, 3869, 9009, 3075, 1198, 3811, 3711, 2982, -422, 3181, 12656, 2397, 1788, 1906, 3490, 720, 2336, 3036, 4440, 852, -309, -356, 2529, 1783, -5490, -2611, -659, 4438, 2793, -3981, -9277, -2893, -1362, -335, -1785, -5505, -3493, -2623, -289, -5470, -6561, -1511, -2341, -1174, -2510, -2899, -5185, 214, -3909, -918, 4171, -5142, -5231, -2298, 8757, 374, -5512, -4458, 8005, 9656, -3855, -7696, 7858, -1770, 6924, 3954, 3908, 1575, 720, 4005, 1694, -2431, 6086, 8436, 2783, 1652, -434, 1898, -1783, 1854, 4785, 5897, -2442, -1277, -1632, 1658, -1037, -4308, -2692, -302, 5506, 2713, -8006, -7759, -3798, -1212, 1360, -3054, -4780, -2152, -2473, -2636, -5033, -3705, -794, -3101, -376, -2522, -3398, -5558, 1991, -3823, 5219, -2352, -7076, -4327, 3450, 7969, -2518, -6165, 2450, 7664, 7444, -9001, -381, 7344, -964, 7302, 3949, 2883, 2232, 3217, 3517, 535, -368, 10198, 5769, 2244, 499, 3317, 2475, 131, 3667, 5343, 2936, -2069, -353, 931, 4564, -3100, -3580, -546, 629, 4515, -1090, -8384, -4134, -2641, -1528, -910, -5149, -5897, -4429, -936, -2202, -6447, -5068, -4644, -2501, -1485, -3014, -6964, -2996, 493, -4636, 5250, -6689, -5100, -5112, 7394, 2270, -3887, -4725, 5779, 7996, 2572, -13439, 6922, 997, 4683, 7605, 918, 2968, 3189, 3727, 1621, -1162, 1610, 11621, 5914, 436, 1744, 3697, -2048, 2241, 5786, 5763, 2061, -1217, -1075, 1285, 2923, -3596, -1816, -1380, 4188, 4879, -3207, -8519, -4631, -1252, -444, 380, -4651, -4122, -2825, -1298, -3188, -7397, -3210, -1387, -1017, -2444, -1725, -7016, -579, -3555, -87, 5869, -4709, -5632, -3588, 9632, -1438, -3077, -2891, 6822, 10727, -3919, -10144, 8533, -2399, 6461, 4097, 2597, 2259, 2823, 1931, 1326, -3277, 4090, 10232, 361, 435, 1264, 3637, -1102, 63, 4358, 5342, -1986, -1571, 851, 3573, -843, -4951, -306, 598, 4884, 2380, -5793, -6972, -2101, -1144, 819, -1044, -3348, -1926, -3170, -1688, -4212, -4467, -2405, -1130, -85, -2389, -2861, -5476, -813, -6393, 5818, -278, -4683, -8408, 3391, 7596, -5513, -5870, 1564, 8519, 7388, -11116, -546, 5602, -1311, 8408, 1410, 5780, 2239, 415, 4223, 1294, 736, 7839, 6193, 2327, 1012, 2541, 3959, -978, 2681, 5842, 3406, -1730, -643, 862, 3193, -1770, -3237, -2178, 1320, 5320, -349, -7714, -6015, -2426, -912, 1181, -5110, -5338, -2558, -2203, -2509, -7111, -3728, -2491, -1522, -1347, -2731, -5608, -2896, -3648, -1608, 6380, -6779, -4536, -5261, 8138, 1674, -3673, -4118, 3730, 8154, 2048, -11738, 9778, -2405, 3882, 8055, 1128, 4077, 1462, 596, 3994, 988, 4529, 7234, 2255, 3881, 495, 2057, 1870, 987, 3576, 7228, 157, -1719, -2077, 3159, 4302, -4593, -4638, 996, 3380, 2663, -3343, -6532, -1559, -4869, -796, 488, -5736, -3434, -2993, -1985, -2015, -7106, -3528, -3094, -321, -1280, -3350, -7446, -1107, -4235, 2261, 2545, -6428, -6915, 743, 9243, -3176, -4054, -548, 5992, 7917, -2405, -5094, 7611, -3043, 7657, 5385, 4344, 1098, 1841, 4449, 2653, -1320, 5197, 6945, 1899, 1883, 1671, 2801, -828, 1039, 4368, 2885, -1568, -165, -888, 3347, -2066, -5107, -2229, -158, 5473, 1862, -7934, -6627, -3389, -1292, 1248, -2193, -6200, -3649, -1795, -1890, -4148, -4087, -2754, -2082, -152, -2697, -3534, -5512, -72, -3541, 7084, -3463, -4916, -6453, 6195, 4082, -2228, -3618, 1133, 7363, 7817, -11093, 4263, 1146, -1108, 10531, 3516, 3390, 2031, 1133, 1713, 290, 2180, 10339, 3415, 1751, 593, 3733, 894, -2613, 4500, 5724, 2663, -2278, -1681, 577, 2256, -3048, -3219, -1069, 1831, 5009, -1849, -9180, -4074, -2665, -1782, 1024, -4077, -3944, -2409, -3398, -2993, -5916, -3289, -2610, -2057, -1416, -2826, -4732, -1918, -4309, -1406, 6015, -6114, -4187, -4132, 9435, -1150, -3120, -2859, 4603, 9763, 84, -8769, 10329, -6140, 6526, 6181, 1743, 6337, 2611, 1172, 1773, -1494, 6590, 9296, 1038, 2159, 1247, 6035, -1326, 981, 3216, 5634, 909, -1297, -975, 2756, 1285, -4101, -3311, -212, 5547, 3493, -6431, -8016, -2331, -3406, 429, -1871, -5083, -1357, -3939, -3969, -4340, -5187, -1472, -3203, -1696, -1397, -3501, -5739, -157, -5754, 4622, 676, -4687, -7661, 3428, 8283, -2737, -5369, 1597, 7831, 11040, -8708, -1252, 7229, -3142, 11750, 2676, 2944, 6628, 3384, 2277, -19, 44, 10814, 5208, 554, 2589, 2841, 5295, -2045, -512, 5472, 5310, -2507, -2948, -350, 4356, -1878, -4632, -4573, 1134, 7175, -1203, -9665, -7237, -1592, -532, -846, -4945, -5150, -1232, -5099, -3012, -4632, -3190, -3531, -3406, -1013, -2510, -1766, -6223, -428, -4567, 2851, 4807, -7538, -6579, 2616, 9672, -1926, -7763, 1776, 10591, 5645, -6827, -3999, 10082, 320, 6226, 3419, 750, 3726, 6471, 2543, -1262, -3375, 9980, 10194, -1518, 1747, 430, 1726, 457, 3552, 4926, 1061, -1211, -1354, 801, 2450, -2215, -3532, -1894, 559, 5766, -3235, -7008, -4391, -2206, -124, -1995, -7145, -2363, -173, -2549, -6058, -4517, -822, -2738, -6353, -1078, -3885, -2482, -580, -3551, -3949, -2214, 549, 582, -2696, -1271, 1519, 1018, -2205, 288, 3962, 1103, 867, 1304, 5803, 2608, 842, 3777, 2823, 4040, 2221, 2995, 3171, 2163, 5794, 2133, 2425, 2347, 2663, 2768, 927, 1900, 2645, -903, 1778, 108, 1006, -1356, 85, 213, -1092, -2362, -1319, -557, -1923, -3137, -3163, -832, -3574, -4636, -1017, -2059, -4035, -1533, -4904, 10, -1899, -3029, -3970, -4623, -273, -852, -1168, -841, -3820, 708, 722, -1443, 430, -85, -159, -228, 1115, 3012, 751, -842, 1478, 3951, 2585, 2151, 839, 2393, 2360, 2258, 3439, 859, 1509, 4239, 2676, 2910, 669, 2348, 1361, 2173, 1904, 565, 200, 419, 1764, 588, 588, -1769, -206, 492, -430, -993, -1593, -2139, -975, -961, -1847, -3499, -3026, 495, -2968, -2136, -2829, -3888, -218, -1291, -1818, -4886, -2970, -641, -667, -1913, -1741, -2025, -43, -401, -1042, -177, -840, 27, 455, 1005, 621, 125, 1065, 1322, 1774, 1846, 2270, 803, 1750, 2635, 1743, 1833, 1291, 1204, 3084, 5221, 505, -1096, 3402, 3905, 1392, -900, 260, 2483, 3956, -1904, -505, 857, 1657, -220, -1080, -1146, 502, -1201, -1106, -1422, -852, -918, -2085, -1928, -1747, -1147, -2471, -1987, -2192, -1383, -1622, -963, -2864, -2041, -1056, -910, -1444, -1354, -1609, 120, -276, -1410, -623, -32, 404, 235, -125, 716, 970, 560, 736, 1399, 1318, 961, 1877, 1578, 1460, 1221, 1373, 2331, 2438, 519, 588, 1968, 1885, 1295, 1072, 1296, 133, 530, 1321, 1276, -104, -185, -244, 113, 343, 8, -758, -1013, -562, -356, -125, -1257, -966, -1332, -1573, -1134, -460, -1084, -1905, -1121, -298, -941, -1295, -1178, -526, -729, -1025, -555, -126, -256, -268, -353, 82, 495, 88, 68, 245, 411, 694, 363, 368, 806, 514, 807, 794, 861, 501, 508, 756, 519, 475, 666, 440, 124, -27, 576, 813, 145, -123, -120, 11, 86, -168, -287, 105, -170, -539, -496, -275, -252, -424, -722, -660, -142, -343, -906, -697, -361, -522, -576, -404, -285, -276, -221, -353, -412, -210, -54, -39, 82, -25, -189, -79, 314, 225, 143, -18, 170, 401, 417, 367, 360, 217, 267, 463, 514, 423, 328, 357, 190, 252, 158, 322, 224, 248, 71, -62, 21, 13, 20, -57, -162, -268, -325, -260, -185, -244, -333, -478, -317, -187, -220, -501, -361, -359, -364, -347, -427, -256, -214, -174, -157, -121, -51, -20, 50, -27, -63, 31, 174, 111, 131, 44, 64, 269, 231, 359, 197, 212, 215, 449, 485, 441, 288, 184, 326, 357, 234, 221, 186, 208, 62, 31, 191, 244, 70, -196, -214, -134, 46, -61, -184, -427, -254, -176, -82, -172, -322, -490, -257, -125, -186, -158, -167, -319, -251, -163, -245, 35, -98, -138, -2, -88, 80, 85, 10, 35, 46, 23, 127, 242, 242, 281, 243, 279, 254, 212, 228, 228, 194, 287, 197, 149, 175, 199, 279, 133, 32, -10, -24, -10, -10, 20, 26, 24, -20, -5, -121, -256, -203, -275, -181, 9, -93, -223, -209, -231, -240, -16, -46, -18, -132, -257, -148, -12, -26, 25, -35, -143, 12, -16, -39, -4, 9, -1, 20, 33, 12, 9, -22, -34, 31, 42, 1, -3, 2, 32, -22, -20, 7, -5, -7, -17, 7, -10, -7, -3, 3, 3, -1, -6, -2, -3, 7, 9, 7, -8, -1, 10, 6, 15, 2, 2, -2, -6, 0, 2, 6, 13, 4, 0, -8, -6, 1, 1, 11, 7, 4, -5, -2, -2, 7, -5, -10, 3, 2, 5, -11, -2, 9, 4, 13, 10, 13, 9, 11, 2, 12, 14, 0, 9, -1, -8, 2, 7, 2, -1, -8, 4, 0, 0, 3, 2, 6, 5, 3, 13, 12, -4, -1, 2, -1, -2, 0, -3, 4, -2, 1, 6, 4, 3, -1, 3, 9, 5, 5, 8, -2, 4, 3, 1, 0, 0, -2, -3, -3, -5, 1, 1, 0, -2, -2, 2, 1, 0, 0, 1, 2, 1, -1, 0, 0, -1, 0, 0, 1]
listSize = len(list)
fullSize = listSize * 3
sound = makeEmptySound(fullSize,10000)
for i in range(0, listSize):
setSampleValueAt(sound,i,list[i])
setSampleValueAt(sound,i + listSize,list[i])
setSampleValueAt(sound,i + listSize + listSize,list[i])
play(sound)
#############################
# plays Ta Da (win) sound #
#############################
def playTada():
list = [402, 2, -240, 178, 833, -166, -675, 390, 193, 15, 667, -878, 131, 1785, -1025, -2568, 1983, 2076, 513, -198, -1498, -176, 1893, -1242, -1932, 1092, -900, -1577, 2662, 3101, -1696, 279, 1486, -137, -3017, -3231, 1298, 4866, -1143, -2710, 4415, 4512, -1141, -1121, 1694, -1653, -3068, -2195, -445, 3006, 128, -2684, 1630, 2774, -147, -274, 1076, -2079, -1750, -53, -198, 3411, 2213, -4285, -1655, 2630, 1972, -1197, -1158, -972, -900, -847, -1542, 4877, 3763, -5800, -3855, 5615, 4454, -2799, -1672, 895, -509, -2213, -1579, 5216, 3288, -6452, -3535, 5884, 2915, -3349, 441, 1574, -3493, -2174, 195, 3707, 3952, -4529, -3615, 5267, 4002, -2669, 875, 1914, -4206, -1111, 1057, 855, 3580, -986, -4320, 2215, 5436, -1644, -1617, 1601, -3251, -1539, 917, -2254, 3668, 4750, -5935, 680, 7126, -456, -4817, 1316, -1405, -1672, 1400, -2871, 1193, 3726, -1197, -3121, 8460, 2502, -5440, -3575, 270, 1044, 578, -3385, 52, 2754, -486, 399, 6356, 5988, -7620, -4922, -2544, 5048, 805, -5993, -486, 5261, -1834, -2571, 10509, 5570, -5575, -7606, -3653, 3090, 4036, -5749, 1375, 3070, -1762, -955, 4460, 8837, -2731, -9040, -3193, 2380, -118, -2263, 1498, 558, 577, -1203, 2152, 9806, -1698, -7043, -3970, 2748, -2108, -652, 1685, -160, 1290, -2127, 4019, 7593, 617, -6787, -3649, 991, 1997, -4505, 3423, 828, -1525, -878, 3100, 9419, 114, -4782, -3606, -2261, 365, -258, 1576, 2939, -3001, -1726, 1410, 9769, 1677, -3472, -3194, -3838, -755, -96, 1507, 3256, -2613, -3463, 3900, 5142, 1886, -2440, -1665, -4736, -589, -1249, -1120, 5081, 27, -2740, 5477, 4882, 901, -1810, -1729, -4150, -2014, 1367, -4468, 4310, 1928, -3631, 3045, 6855, 1398, -2922, -1571, -2956, -4935, 1815, -1362, 409, 4920, -4767, 1529, 7177, 3366, -3436, -864, -1967, -6667, 29, 1586, -75, 4866, -3506, -1220, 8461, 3088, -1929, -1511, -962, -7695, 261, 959, -1759, 5671, -2920, -2902, 8350, 1982, -1838, 200, 661, -5701, 1842, 2843, -6161, 4818, -1798, -4339, 6892, 3008, -2068, 303, 530, -3921, -694, 4961, -5713, 1583, 1537, -5975, 5004, 4066, 201, -1517, 783, -2606, -2746, 4216, -2331, -380, 2607, -6196, 2976, 5400, 1028, -1202, -147, -574, -4633, 3938, -1074, -1369, 3684, -5552, 191, 6401, 1249, -535, -1038, 801, -4939, 2951, 1112, -4881, 4886, -3622, -1131, 5818, 1430, -59, -1396, 610, -3005, 600, 2813, -6123, 3504, -920, -2275, 5892, 533, 967, -1599, 567, -1274, -950, 2345, -5483, 2137, 1050, -3041, 5694, 398, 920, -990, -269, 246, -2229, 2088, -5082, 1118, 2516, -3679, 5163, 1162, 152, 31, -965, 1170, -2164, 1477, -4058, -1006, 3436, -2176, 3271, 1933, -904, 1516, -1485, 331, 180, -777, -764, -4113, 4501, -2245, 2089, 3291, -3204, 3003, -2666, 1975, -2409, 2338, 65, -4371, 3205, -1648, 1724, -245, 408, 1403, -1400, 3496, -1316, 767, 936, -4475, -1513, 3032, 620, -1446, 3673, -1738, 2004, 433, -3642, -14, 2135, -902, -1619, 2142, -684, 3332, -1629, -3340, 1279, -1436, 3952, -1449, -3515, 3503, 469, -1238, -1496, 417, -1397, 5274, -2676, -5732, 7414, -180, -833, 402, -4321, -337, 6187, -1726, -6343, 4194, 1467, 3528, -702, -8405, 4288, 5363, -2056, -6523, 2635, 3805, 4765, -2648, -6735, 4533, 2188, 405, -5652, 1159, 4700, 3012, -2708, -5888, 4915, 589, 1546, -2922, -4471, 10170, 465, -4646, -3290, 2614, 1576, 2103, -3216, -8428, 15496, -137, -7352, -1726, 324, 4539, 1363, -2164, -12460, 16772, 6144, -12899, -1007, -1251, 7931, 1493, -4734, -11976, 14072, 9162, -12464, -2572, -1550, 6762, 4786, -3723, -12967, 11866, 8527, -7473, -3912, -2987, 3849, 5723, 1818, -14226, 7525, 8777, -4154, -2925, -5114, 3535, 3987, 4000, -12564, 3848, 9558, -3590, -1635, -5725, 4759, 2162, 3745, -9256, 637, 9130, -2013, -909, -7495, 5070, 2465, 2972, -6730, -1254, 9351, -1150, -538, -9141, 5787, 2323, 1590, -2370, -5400, 9220, -529, 1606, -9048, 3240, 2823, -1892, 5209, -8802, 5890, 982, 899, -5519, -296, 5278, -6031, 8899, -7263, 925, 3647, -1634, -2219, -2643, 6382, -8206, 8785, -2683, -2256, 5266, -4760, -422, -2499, 6441, -8358, 6012, 1149, -5257, 8002, -5717, -1186, -797, 4920, -6814, 1748, 7068, -8224, 7616, -4211, -4403, 3337, 3151, -4371, -2716, 10627, -8418, 4498, 335, -8201, 5976, 1683, -3028, -4223, 11096, -4117, -106, 3101, -12074, 7524, 4257, -4507, -4720, 7592, 769, -1753, 5318, -13414, 5253, 7836, -5609, -4709, 4743, 4264, -2910, 5834, -13293, 1000, 13177, -4761, -5557, 1852, 5751, -2606, 5488, -10951, -4463, 15781, -3694, -6471, 992, 6885, -889, 3084, -8107, -9292, 16871, -380, -8600, 848, 4645, 1318, 3623, -6056, -11844, 14680, 3886, -9972, 336, 3608, 2153, 4411, -5463, -14125, 12173, 9772, -10313, -1779, 2994, 2619, 5852, -4451, -15571, 8450, 13376, -9873, -3202, 3802, 2035, 6325, -2951, -15550, 4532, 15461, -8053, -5050, 4062, 23, 7761, -1185, -15433, 717, 16053, -4351, -7284, 4728, -1837, 9013, 790, -16348, -2058, 15848, -87, -9623, 5000, -2260, 8691, 3409, -16409, -4692, 15132, 3184, -11154, 4542, -1726, 7641, 4574, -15176, -6470, 13281, 6107, -11671, 4143, -1109, 6451, 6457, -14395, -7751, 10680, 8707, -10968, 2846, -782, 4783, 8663, -13248, -9275, 8322, 11175, -10199, 1142, 213, 3541, 10144, -12307, -10897, 6493, 12636, -8885, -264, 1001, 2461, 10529, -10523, -11656, 4196, 13651, -7760, -1611, 1519, 1862, 11272, -9866, -11499, 1905, 14288, -5821, -2993, 2499, 565, 11984, -9320, -11371, 9, 13893, -3445, -4406, 3522, -903, 12764, -7460, -12603, -1559, 13714, -1170, -5430, 3089, -1289, 13740, -6364, -12810, -3216, 13219, 1317, -6736, 3159, -2516, 14770, -5585, -12969, -3906, 11513, 4212, -8089, 4057, -3553, 14617, -3852, -13793, -4490, 9683, 6839, -8766, 4566, -4185, 13424, -959, -14463, -4981, 7841, 8916, -9057, 4035, -4312, 12249, 2480, -15092, -6371, 5550, 11801, -8881, 3553, -4582, 10504, 5531, -16142, -5946, 3376, 13657, -8803, 2466, -3820, 8236, 8881, -16897, -6548, 729, 15197, -7197, 1388, -2279, 4822, 11516, -16747, -6570, -781, 15369, -5559, -454, -214, 2067, 13941, -15819, -7365, -2724, 15242, -2977, -2480, 1637, -1192, 15748, -14340, -8134, -3528, 14632, 32, -5135, 2988, -3556, 17566, -12568, -9871, -4559, 13129, 3716, -7283, 5282, -5504, 17644, -9816, -11874, -4847, 11193, 7215, -9094, 6231, -6419, 16479, -5774, -13047, -5865, 8850, 10111, -10071, 6380, -6941, 14807, -2028, -13835, -6241, 6603, 12934, -10615, 6444, -6570, 11978, 1894, -15003, -6581, 4185, 14828, -9310, 5213, -5698, 9299, 5905, -15591, -7883, 2417, 16207, -8036, 3124, -3900, 7029, 8794, -15006, -9384, 966, 16730, -6186, 1099, -2898, 4385, 10744, -12899, -10291, -1103, 16500, -3218, -985, -1042, 1818, 11572, -10382, -12317, -2355, 15560, 179, -2128, -284, -361, 11673, -6398, -13741, -4264, 13898, 3117, -3028, -284, -777, 11619, -3116, -15434, -5598, 12957, 5400, -3718, -497, -949, 9542, 42, -14962, -6601, 10838, 7140, -3013, -1225, -724, 6758, 3211, -13992, -8738, 9106, 8330, -716, -2150, -598, 4786, 5293, -12069, -11515, 7569, 8885, 881, -2515, -837, 4196, 6375, -9866, -13141, 6027, 9020, 1572, -2364, -1213, 3000, 6357, -6524, -14086, 4089, 9223, 2512, -1259, -1928, 1590, 5273, -2935, -14656, 1246, 9839, 3197, 539, -2991, 1472, 4052, -607, -13970, -2551, 10920, 2083, 2638, -3125, 836, 3766, -287, -11089, -6071, 12173, 782, 3482, -2053, -1274, 4413, -1022, -6970, -9464, 11828, 1458, 3283, 545, -3843, 4369, -1594, -4077, -11772, 11180, 2822, 2167, 3051, -5665, 5511, -2907, -1553, -13196, 8707, 5063, -396, 7107, -7704, 6188, -4256, -760, -10940, 4920, 7744, -3973, 10069, -8377, 5586, -3780, -1414, -7427, 372, 10577, -6302, 12099, -7195, 2769, -2299, -3952, -4005, -2896, 12659, -7404, 11207, -3882, 404, 143, -6274, -2072, -5372, 13769, -7233, 8885, 394, -2295, 2424, -8979, 35, -5389, 12879, -6353, 4935, 5140, -4877, 3819, -10025, -206, -4250, 11015, -3635, 1744, 8455, -6412, 3744, -9308, -2081, -2480, 9221, -1038, -1528, 10312, -5267, 3021, -7879, -5128, -988, 8056, 748, -4032, 11145, -3149, 1323, -6125, -7628, 858, 7729, 1416, -5677, 9986, -302, -213, -4372, -9476, 720, 8403, 1954, -5258, 8430, 1713, -900, -3742, -10805, -295, 9414, 2393, -5176, 6465, 3492, -228, -2617, -11559, -2437, 10620, 2493, -5037, 4671, 4263, 1026, -2579, -10796, -4853, 11784, 3649, -5444, 3698, 3507, 2605, -2836, -10407, -6663, 11349, 6010, -6039, 3560, 2379, 3902, -1874, -11102, -7920, 9871, 8403, -6649, 3367, 1549, 5024, -570, -11289, -8591, 7831, 10713, -7124, 3194, 299, 5417, 1286, -11537, -8577, 5019, 13339, -6902, 2927, -690, 4016, 4361, -12501, -8073, 1876, 14992, -5383, 1707, -233, 1944, 7576, -13037, -8077, -636, 15257, -2835, 467, 441, -489, 10262, -12186, -8519, -2601, 14877, -200, -1006, 1068, -3213, 12768, -10931, -8938, -3845, 13199, 2993, -2481, 2745, -6091, 13668, -9045, -10071, -4001, 10587, 6576, -3629, 3854, -8213, 13130, -5229, -11665, -4101, 7085, 9490, -3398, 4051, -8830, 11441, -1529, -12921, -3875, 4553, 11415, -3148, 3729, -8860, 9265, 1689, -13682, -3277, 1925, 12505, -1815, 3724, -8237, 5556, 5305, -14045, -3476, -246, 12524, 381, 2966, -6782, 2207, 8442, -13542, -4428, -1687, 11529, 2530, 2117, -5796, -150, 10304, -12327, -5226, -2319, 10494, 4071, 1732, -4994, -2470, 11287, -10600, -6058, -2988, 9173, 5890, 1671, -3470, -4701, 10849, -8757, -6822, -3361, 7642, 7515, 1733, -2685, -5913, 10709, -6481, -7602, -4360, 6338, 8203, 2273, -1515, -7158, 10063, -4525, -7696, -5084, 5285, 8977, 2261, -741, -8350, 9318, -2449, -7725, -5486, 3745, 9730, 2761, 372, -8964, 7770, -1004, -7640, -6157, 2585, 10138, 2915, 1549, -9291, 6899, 654, -7414, -6821, 700, 10769, 3178, 2630, -9532, 5208, 2128, -7119, -6198, -900, 10762, 3068, 3364, -9235, 3585, 3767, -6974, -6177, -2846, 10983, 4139, 4103, -8504, 982, 4709, -6041, -6015, -4223, 10222, 4889, 4336, -7315, -466, 5608, -5298, -5999, -5882, 9206, 5989, 4761, -6407, -2272, 6054, -4614, -5119, -6669, 8233, 6558, 4773, -5417, -3638, 6337, -4200, -4355, -7565, 6700, 7693, 5444, -4056, -5079, 5673, -3494, -3460, -8209, 4948, 8405, 6006, -3168, -6282, 5694, -2984, -2799, -8601, 2929, 8540, 6520, -1624, -7497, 5563, -2841, -1884, -7791, 1123, 8506, 6745, -310, -8692, 5519, -2534, -1465, -6831, -946, 8557, 7291, 1596, -9722, 4808, -2337, -1871, -5563, -2603, 8468, 7406, 3162, -10292, 4142, -1743, -1669, -4281, -4699, 7488, 7412, 5228, -10672, 2874, -1247, -1778, -2904, -5856, 7015, 7195, 6950, -10997, 1104, -210, -2150, -1332, -7012, 6205, 6951, 8530, -10107, -649, 694, -3024, 3, -7542, 4994, 6585, 9968, -8964, -2931, 1570, -2861, 1075, -8190, 3783, 5909, 10962, -7326, -5071, 2314, -3254, 2161, -8213, 2661, 5542, 11468, -5109, -7292, 2539, -3506, 3325, -8046, 1208, 5371, 11494, -2511, -9428, 2605, -3534, 3647, -7517, -448, 5372, 11439, -144, -10706, 2258, -3221, 4089, -7140, -1710, 5110, 10776, 2373, -11640, 1937, -3027, 4169, -5959, -3258, 5173, 9694, 4799, -12282, 462, -2594, 4520, -4437, -5145, 4872, 8989, 7570, -12406, -1046, -2270, 4312, -3084, -6706, 4663, 8369, 8670, -11158, -2719, -1542, 5037, -2136, -7820, 3837, 7439, 8600, -9033, -3884, -887, 4266, -923, -7267, 3188, 5959, 7741, -5878, -4408, -1598, 2918, 864, -6271, 2405, 4113, 6925, -2702, -3524, -916, 362, 55, -4578, 1388, 2147, 5610, -573, -2689, -1051, -151, -86, -3519, 1110, 1544, 4305, 395, -1846, -1238, -537, -269, -2784, 1170, 1186, 3201, 1107, -1193, -1334, -844, -502, -2343, 1191, 1116, 2238, 1397, -343, -1167, -1189, -945, -2048, 1344, 1022, 1430, 1663, 469, -982, -1307, -1129, -1744, 1304, 884, 704, 1654, 971, -721, -1218, -1328, -1619, 1256, 1066, 418, 1339, 1025, -531, -850, -1360, -1688, 1291, 1315, 54, 1123, 1470, -424, -886, -1521, -1850, 1200, 1549, -40, 852, 1609, -347, -754, -1311, -1834, 1059, 1395, -322, 615, 1930, -160, -669, -1260, -1992, 1086, 1500, -169, 282, 1866, -241, -640, -708, -1656, 1139, 384, -441, 981, 1020, -1038, 178, 175, -1196, 1313, -78, -635, 1053, 827, -1076, 84, 524, -1007, 1140, -33, -733, 666, 798, -476, -326, 538, -909, 926, 230, -706, 601, 626, -197, -710, 480, -545, 685, 369, -785, 575, 558, 5, -704, 332, -299, 268, 362, -594, 480, 515, 101, -627, 189, -143, 175, 358, -485, 222, 375, 317, -584, 64, -107, 161, 452, -483, 135, 318, 438, -556, -142, -53, 174, 467, -415, 40, 350, 427, -424, -242]
size = len(list)
sound = makeEmptySound(size,4000)
for i in range(0, size):
setSampleValueAt(sound,i,list[i])
play(sound)
##################################
# plays WAH Wah wah (lose) sound #
##################################
def playWahWahWah():
list = [-11, 12, 120, 148, -69, -208, -135, 23, 202, 94, -61, -117, -95, -23, -51, -2, 205, 207, 90, -447, -555, 124, 498, 287, 328, -89, -1095, -761, 477, 782, 985, 821, -1497, -2097, -207, 1166, 1086, 1874, 271, -3065, -2142, 656, 1671, 1047, 2229, -632, -3780, -1772, 1393, 1879, 1106, 2214, -1722, -3835, -1186, 2014, 1628, 960, 2352, -2588, -3947, -273, 2452, 1037, 935, 2533, -3309, -4007, 541, 2820, 358, 1457, 2486, -4544, -3771, 1295, 2966, -98, 2233, 1898, -5738, -3206, 2343, 3037, -154, 2384, 525, -5820, -2439, 2933, 2805, -567, 2188, 182, -5402, -2215, 3625, 2508, -1114, 1386, -55, -3956, -1273, 3313, 1363, -1578, 1341, 416, -3754, -712, 3330, 1068, -1818, 669, 407, -3419, 44, 3458, 798, -2012, 848, -413, -3513, 808, 3901, 391, -2213, 1472, -1430, -3680, 1368, 4653, -252, -2819, 2019, -1171, -3802, 1259, 5152, -791, -3878, 2373, 422, -3894, 695, 4846, -895, -4563, 2583, 1534, -3604, 492, 4312, -948, -4879, 2963, 1225, -3482, 867, 4403, -1255, -4650, 3118, -1, -3149, 1421, 4662, -1641, -3519, 2748, -1836, -2923, 2267, 5225, -2121, -2425, 1905, -2845, -2656, 2761, 5303, -2584, -1404, 1441, -3078, -2677, 2945, 4813, -2748, -614, 1450, -3110, -2735, 3083, 4088, -2628, -278, 1363, -3042, -2340, 3138, 3275, -2444, 156, 831, -3360, -1854, 3645, 3135, -2119, 436, -1331, -3329, -685, 4098, 3604, -1195, -421, -4313, -2672, 567, 4386, 3792, 396, -1884, -6596, -1533, 1780, 4101, 3368, 1689, -3160, -7344, -732, 2875, 3635, 2259, 2227, -3834, -7118, 5, 3815, 3248, 1460, 2203, -5415, -6621, 1725, 4555, 2551, 2224, 1383, -8708, -6057, 4170, 5348, 2136, 4561, -1271, -12898, -4266, 7510, 5157, 1826, 6162, -4659, -14567, -2540, 9816, 4560, 1918, 6099, -7686, -14227, 75, 10786, 3622, 2357, 3938, -9922, -11965, 3077, 10421, 2716, 2614, 1672, -12297, -9719, 6517, 9713, 2207, 4152, -1966, -15843, -5860, 9738, 8387, 2381, 5876, -6930, -18144, -1369, 11812, 6580, 3739, 6152, -12524, -17650, 3140, 12503, 4834, 5545, 3945, -16977, -14756, 7138, 11895, 3668, 7362, -287, -20407, -9982, 10732, 10123, 3193, 8677, -5521, -22219, -4420, 13055, 7789, 4152, 9124, -12077, -21965, 1547, 14036, 5236, 6376, 7729, -18656, -19077, 6884, 13533, 3263, 9033, 4244, -23619, -14658, 11073, 12081, 2292, 11395, -1051, -26456, -9103, 13669, 10022, 2449, 12681, -7315, -26833, -3079, 15045, 7233, 4325, 12126, -15172, -23738, 3066, 14711, 4528, 7539, 9010, -22236, -18631, 8410, 13536, 2827, 10633, 2863, -26375, -12098, 12120, 11258, 2640, 12805, -4581, -27643, -5561, 14518, 8396, 3685, 13412, -12573, -26030, 1017, 15247, 5235, 6180, 11581, -19992, -21483, 6450, 14408, 2979, 9425, 6488, -25104, -15102, 10589, 12165, 1739, 13041, -1223, -27508, -7888, 13378, 9063, 2797, 14367, -10027, -26327, -1183, 14847, 5515, 5299, 12964, -17781, -22540, 4546, 14653, 2787, 8912, 8275, -23547, -16535, 9301, 12451, 1236, 12301, 1350, -25946, -9936, 12113, 9457, 1811, 14299, -6903, -25783, -3261, 13900, 5969, 4091, 13718, -15051, -22718, 2725, 13967, 2967, 8068, 9875, -21815, -17415, 7622, 12603, 1297, 11894, 3013, -25327, -11069, 11094, 9990, 1629, 14138, -5335, -25548, -4745, 13272, 6742, 3835, 13897, -13498, -23249, 1214, 14067, 3594, 7294, 10834, -20316, -18957, 6374, 13342, 1715, 10820, 4960, -24655, -13115, 10547, 10888, 1226, 13502, -2354, -25889, -7005, 12899, 7964, 2645, 14369, -10326, -24876, -831, 14168, 4639, 5445, 12678, -17834, -20701, 4676, 13435, 1906, 9752, 7532, -23414, -14599, 8956, 11283, 822, 13508, -487, -25203, -8026, 11676, 8100, 2223, 14492, -9034, -23357, -2186, 12992, 4514, 5365, 12602, -16258, -19480, 3060, 12634, 1705, 9762, 7419, -21582, -13923, 7334, 10745, 821, 13113, -322, -23383, -7875, 10493, 7446, 1992, 14829, -8852, -21991, -2170, 11881, 3912, 5814, 12322, -16411, -17400, 2313, 11667, 1312, 10432, 6526, -21038, -12093, 6347, 9906, 402, 14343, -2376, -21536, -6307, 9006, 6294, 2819, 14940, -11442, -18198, -2018, 10540, 2625, 7704, 10550, -17720, -12835, 1599, 10162, 108, 12776, 2734, -19527, -8416, 5014, 8028, 762, 15450, -6774, -17528, -4589, 7882, 4097, 5117, 13592, -15094, -12959, -1263, 9159, 645, 11135, 6309, -18677, -8088, 1678, 8200, 106, 15831, -4339, -16935, -4592, 4563, 4941, 3674, 15417, -13951, -11641, -2601, 6874, 1303, 10157, 8449, -18243, -6259, -1097, 7169, -6, 15952, -2893, -16156, -3187, 1092, 5130, 2914, 16543, -13450, -9758, -2632, 3702, 1662, 9601, 9961, -18595, -3096, -2927, 4795, 74, 16647, -2962, -15650, 942, -2767, 3318, 3562, 17301, -15017, -6114, -437, -1462, 1144, 10936, 9105, -19266, 2638, -4067, 211, 974, 17338, -4838, -13705, 5456, -6232, 616, 5613, 16576, -17395, -1856, 2404, -6251, 329, 13509, 6074, -20204, 8394, -3810, -5008, 3137, 18320, -9816, -10775, 10579, -9117, -2970, 9790, 13527, -20323, 3723, 4532, -10830, 589, 16528, -239, -17944, 13148, -4805, -9026, 6981, 16564, -14736, -5211, 12673, -11778, -4446, 14325, 7166, -20169, 8828, 4486, -14170, 3137, 17039, -7464, -12595, 15650, -6496, -11008, 11536, 11328, -17206, 1360, 12289, -14392, -2870, 16867, -1223, -16251, 12656, 1779, -15161, 7649, 13763, -12946, -5539, 15468, -9538, -9097, 15403, 3672, -16521, 6806, 9263, -15818, 1913, 15575, -8377, -10267, 14454, -2268, -13965, 12444, 7432, -14736, 812, 13569, -12684, -4409, 16184, -4255, -12367, 10738, 4732, -16009, 7788, 10710, -12360, -3771, 14410, -7244, -9817, 15303, -574, -12833, 6567, 9410, -14854, 1853, 13637, -9721, -7133, 12992, -1247, -13530, 12440, 4044, -13049, 2659, 11740, -11571, -3381, 14736, -7163, -8826, 10870, 3017, -14324, 8710, 7494, -13200, 548, 12066, -7594, -7699, 14992, -4086, -11195, 9507, 5307, -12962, 4016, 11852, -13552, -2146, 12542, -4810, -9800, 13552, 481, -14688, 8915, 6914, -11483, -273, 14742, -11852, -5739, 13501, -3231, -10571, 10829, 5540, -17403, 7799, 8319, -10403, -3037, 16092, -9137, -10329, 15298, -2375, -10405, 7022, 10926, -18746, 4841, 10579, -9752, -4924, 14696, -2865, -15584, 15999, -1406, -10043, 3682, 14252, -16749, -636, 13940, -9771, -5451, 11486, 3828, -19339, 14125, 1750, -10266, 1075, 14697, -11051, -7879, 16742, -9278, -5333, 7478, 9476, -19198, 8397, 6596, -11513, 276, 11852, -2448, -14591, 16824, -6255, -6677, 4655, 11520, -13826, -502, 12129, -12567, -123, 8042, 4610, -16464, 12301, -758, -9355, 4007, 9617, -5621, -8478, 14578, -11039, -1700, 5637, 7631, -13020, 4684, 5148, -11726, 4113, 6414, 1338, -11907, 12314, -6899, -4410, 5173, 6917, -6726, -2506, 8575, -11927, 3283, 4455, 4547, -10067, 6849, -2447, -7034, 5976, 4112, -735, -5350, 7222, -9650, 1347, 4312, 3477, -4473, 1818, -549, -7340, 5523, 2519, 733, -2350, 3212, -7598, 386, 4515, 1805, -2699, 3916, -3470, -6753, 6060, 2089, 167, -2900, 6675, -9978, -243, 4992, 1552, -2065, 2425, 1109, -10637, 5831, 1899, 1339, -2600, 5942, -6885, -4461, 6195, 892, -398, 272, 4010, -10370, 1982, 4053, 927, -1897, 3562, -1825, -7580, 4604, 3000, 133, -1919, 4129, -5739, -3096, 4297, 2546, -1344, 431, 2081, -6881, -55, 4237, 1590, -1984, 2097, -834, -5784, 1798, 3830, 226, -1185, 1926, -2474, -4229, 3436, 2421, -380, -289, 719, -2943, -2427, 4356, 424, 140, -268, 109, -3530, -543, 4202, -209, 429, -1192, 440, -3816, 1268, 3207, 49, -176, -1419, 14, -3295, 2761, 1874, 419, -1438, -176, -715, -2754, 3612, 1377, 107, -2263, 585, -1615, -1038, 3219, 1153, -973, -1656, 1196, -2857, 762, 2854, 629, -2033, -194, 438, -2809, 2005, 2273, -187, -2270, 1176, -1260, -1722, 2626, 2024, -1500, -1507, 1483, -2509, -177, 2832, 1876, -2866, -450, 581, -2160, 870, 2719, 616, -3129, 994, -523, -1516, 1335, 2985, -1409, -2016, 1381, -1358, -763, 1995, 2203, -2720, -429, 803, -1479, -87, 2688, 301, -2405, 328, 175, -1090, 832, 2261, -1307, -1023, 78, -203, -769, 1697, 1240, -1685, -497, 152, -375, -340, 2132, 19, -1337, -513, 412, -640, 387, 1805, -725, -1045, -322, 542, -798, 1163, 962, -1054, -880, 67, 474, -456, 1255, 36, -863, -658, 339, 91, 46, 991, -329, -823, -464, 657, -189, 335, 584, -344, -905, -111, 621, -254, 466, 279, -352, -937, 345, 342, -174, 512, 94, -588, -679, 650, 48, 24, 355, -44, -700, -301, 652, -141, 175, 265, -240, -738, 173, 468, -155, 195, 115, -368, -567, 423, 220, -100, 208, 16, -540, -248, 505, 54, -43, 107, -61, -551, 61, 399, -40, -19, 77, -149, -480, 236, 280, -24, -44, 58, -252, -338, 367, 168, -130, -44, 59, -275, -218, 532, 149, -469, -91, 96, -326, 168, 556, -177, -239, -53, -200, -221, 510, 413, -404, -246, -26, -360, -10, 774, 154, -514, -176, 167, -583, 48, 754, 174, -403, -260, 99, -532, 96, 526, 348, -104, -462, -309, -155, 121, 202, 442, 344, -512, -833, 254, 156, -216, 401, 723, -443, -1126, 449, 406, -517, 75, 861, -75, -1015, -13, 541, -323, -236, 749, 309, -798, -537, 316, 135, -97, 373, 567, -492, -1017, 13, 491, 106, 423, 564, -689, -1152, -235, 643, 286, 594, 663, -884, -1332, -169, 736, 251, 693, 728, -889, -1531, -228, 783, 336, 606, 768, -752, -1585, -410, 846, 505, 441, 810, -615, -1598, -584, 746, 657, 585, 771, -725, -1581, -628, 679, 637, 658, 1012, -756, -1765, -668, 684, 641, 725, 1092, -617, -1796, -988, 604, 764, 682, 1187, -270, -1847, -1453, 560, 984, 590, 1268, 36, -1930, -1765, 487, 1243, 555, 1225, 154, -2003, -1873, 472, 1321, 545, 1286, 228, -2030, -1999, 311, 1474, 644, 1230, 383, -1939, -2266, 52, 1674, 741, 1131, 612, -1724, -2497, -444, 1818, 1061, 992, 756, -1505, -2674, -852, 1835, 1311, 983, 854, -1343, -2756, -1214, 1737, 1576, 1027, 974, -1217, -2934, -1522, 1719, 1847, 938, 1066, -911, -3136, -1928, 1648, 2147, 935, 1208, -666, -3310, -2307, 1507, 2557, 932, 1064, -239, -3276, -2821, 1195, 2924, 1071, 840, 143, -3063, -3332, 742, 3298, 1431, 658, 308, -2867, -3647, 241, 3488, 1733, 528, 610, -2645, -4017, -319, 3569, 2200, 427, 795, -2260, -4350, -934, 3531, 2709, 283, 947, -1697, -4613, -1709, 3367, 3336, 166, 917, -1020, -4673, -2518, 2958, 3978, 256, 736, -392, -4576, -3230, 2344, 4509, 611, 488, 96, -4360, -3845, 1642, 4860, 1193, 207, 423, -4012, -4342, 906, 5019, 1820, -35, 770, -3580, -4882, 67, 5103, 2561, -275, 946, -3002, -5265, -795, 5022, 3408, -509, 1011, -2221, -5568, -1764, 4676, 4309, -457, 830, -1568, -5667, -2627, 4124, 5126, -111, 484, -954, -5547, -3392, 3369, 5724, 425, 86, -317, -5307, -4139, 2470, 6162, 1167, -395, 345, -4905, -4914, 1497, 6408, 2158, -922, 760, -4076, -5638, 298, 6426, 3314, -1350, 911, -3086, -6144, -924, 6014, 4617, -1376, 631, -2072, -6350, -2080, 5272, 5787, -984, 74, -1108, -6275, -3149, 4249, 6660, -168, -578, -231, -6012, -4176, 3134, 7293, 1006, -1334, 326, -5328, -5086, 1879, 7454, 2418, -1777, 537, -4543, -5842, 700, 7243, 3830, -1920, 489, -3650, -6351, -445, 6630, 5180, -1696, 159, -2646, -6718, -1594, 5864, 6285, -1101, -336, -1671, -6794, -2694, 4851, 7139, -160, -939, -792, -6616, -3822, 3814, 7620, 1038, -1440, -165, -6134, -4861, 2695, 7759, 2411, -1818, 207, -5384, -5831, 1508, 7585, 3808, -1907, 305, -4422, -6642, 299, 7206, 5062, -1641, 122, -3424, -7200, -970, 6547, 6180, -1042, -274, -2264, -7474, -2374, 5703, 7128, -145, -911, -1013, -7302, -4027, 4655, 7873, 1119, -1630, -204, -6547, -5511, 3313, 8212, 2713, -2075, 163, -5510, -6834, 1961, 8188, 4383, -2212, -67, -4144, -7754, 407, 7688, 5850, -1617, -609, -2776, -8249, -1358, 7100, 6919, -510, -1227, -1764, -8157, -3146, 6074, 7785, 914, -1929, -817, -7606, -5034, 5018, 8389, 2388, -2393, -388, -6542, -6658, 3639, 8469, 4048, -2518, -344, -4963, -8198, 1986, 8279, 5659, -1968, -880, -3447, -9113, 172, 7862, 6750, -777, -1499, -2171, -9575, -1886, 7564, 7408, 526, -1809, -1139, -9522, -4037, 7131, 7923, 1605, -2038, -253, -8863, -6411, 6394, 8475, 2815, -2108, 52, -7584, -8418, 5109, 8963, 3889, -1970, 265, -6035, -10298, 3411, 9519, 4809, -1604, 265, -4444, -11566, 1367, 9851, 5775, -1155, -16, -2581, -12242, -1367, 10107, 6724, -652, -168, -1044, -12351, -4008, 9981, 7701, -102, -569, 546, -11651, -7167, 9376, 8936, 439, -871, 1631, -10295, -9870, 8141, 10142, 949, -1120, 2728, -8692, -12536, 6358, 11754, 1314, -1645, 4097, -7202, -14747, 4310, 13125, 2128, -2420, 5203, -5351, -16779, 1945, 14504, 3250, -3897, 6205, -2671, -18543, -1107, 15590, 5246, -5573, 6279, 443, -19499, -4559, 15851, 7752, -6921, 5620, 4180, -20016, -8105, 15669, 10074, -7507, 3980, 7802, -19502, -11934, 15067, 12633, -7795, 1467, 11597, -17900, -15875, 13704, 14787, -7201, -1012, 14409, -16012, -18836, 12070, 16353, -5973, -4310, 17086, -12591, -22908, 9945, 18048, -4189, -7236, 18355, -8488, -26001, 7303, 19131, -1841, -9631, 18533, -4413, -28450, 4912, 19714, 279, -11637, 17746, 647, -30025, 1420, 20015, 2842, -12666, 15647, 5128, -30812, -1583, 20052, 4808, -13267, 12761, 10627, -30672, -5987, 20022, 7101, -13219, 9656, 14489, -29781, -9161, 19421, 8605, -12286, 5741, 18549, -27242, -13706, 18640, 10206, -11027, 2242, 21184, -24602, -17066, 17681, 11145, -9161, -1522, 23160, -20415, -20984, 16309, 11815, -7020, -4546, 23799, -15932, -24174, 14768, 12351, -4823, -7434, 23891, -11112, -27296, 13166, 12481, -2677, -9137, 22259, -5230, -29638, 10554, 12599, -296, -10375, 19513, 1038, -31825, 8126, 12777, 978, -10546, 16619, 6507, -32636, 4904, 12760, 2493, -9258, 12372, 10886, -32038, 1660, 13353, 2516, -7697, 7749, 15935, -29860, -3768, 14326, 2797, -6166, 5131, 17760, -28057, -6516, 14595, 2782, -4509, 1525, 20116, -24378, -11173, 14906, 2526, -2740, -282, 20124, -20643, -14352, 14948, 2421, -1141, -3147, 20539, -15352, -18837, 15100, 1910, 343, -4523, 18731, -8644, -22744, 13779, 2768, 683, -4233, 15569, -3050, -24202, 11370, 3329, 1169, -4117, 11986, 3641, -25854, 7770, 5290, 967, -3012, 8092, 8123, -24741, 3654, 7073, 251, -1976, 5153, 11895, -22980, -1909, 9238, 611, -1423, 2150, 15402, -21040, -7191, 11260, 602, -430, -634, 17182, -17044, -12508, 12198, 1024, 234, -2337, 17470, -12657, -17206, 12956, 1431, 821, -3687, 15984, -6227, -21420, 11733, 2838, 665, -3348, 13347, -1271, -23027, 9566, 3864, 797, -3437, 10888, 4187, -24835, 6741, 5538, 756, -2745, 7658, 8360, -24293, 3360, 6964, 11, -1560, 4987, 11388, -22236, -1330, 8312, 149, -679, 2232, 14127, -19902, -5973, 9955, -193, 595, -815, 15655, -14976, -11484, 10481, 44, 1240, -1699, 14919, -10318, -15552, 10736, 915, 1319, -2557, 12327, -2996, -19177, 8407, 2882, 599, -1470, 8600, 2428, -19624, 4706, 5237, -374, -1033, 6989, 5441, -19096, 1493, 6621, -821, -504, 4240, 8885, -16525, -3807, 8377, -1082, 335, 1923, 9846, -11822, -8662, 8880, -270, -315, 992, 10227, -7377, -12616, 8024, 1304, -812, 743, 8420, -2023, -14600, 5084, 3585, -1407, 704, 6262, 2406, -14508, 1019, 5799, -1974, 675, 4922, 4705, -12440, -3503, 7455, -1334, -179, 3584, 5972, -8305, -8127, 7364, 143, -1163, 3161, 5606, -4051, -10882, 5345, 3071, -2533, 2879, 3952, 43, -9773, -503, 6388, -2835, 1811, 3962, 802, -7013, -4473, 7049, -1498, 317, 4083, 765, -3062, -7673, 5101, 1889, -2409, 5112, 44, -914, -7153, 1021, 4928, -3477, 4764, 775, -488, -5405, -2416, 6085, -3257, 3268, 2671, -1091, -3492, -4947, 5871, -1503, 761, 4649, -1636, -2022, -5814, 4016, 1085, -1043, 5184, -1926, -1221, -4228, 758, 2446, -1058, 4638, -1424, -1269, -2656, -1614, 3074, -1087, 4028, -290, -1812, -386, -3748, 2545, -32, 2288, 1658, -2638, 533, -3561, 454, 1652, 694, 3235, -3060, -588, 194, -3129, 2000, 1397, 2309, -613, -4033, 2278, -1821, -579, 2395, 244, 3192, -4381, -1059, 2021, -2998, 2793, -559, 2701, -575, -4527, 3315, -2736, 1255, 1086, 1011, 1856, -5402, 2148, -1287, -544, 2522, -111, 2969, -5080, 160, 1391, -2348, 2540, 139, 2994, -3847, -2289, 3287, -2358, 1488, -39, 2583, -790, -4307, 2941, -1272, 518, 174, 1328, 1610, -4925, 1616, 181, -531, 705, 76, 3295, -3963, -835, 1660, -1145, 808, -447, 3323, -1972, -2992, 2047, -521, 453, -579, 2251, 553, -3699, 609, 642, 128, -611, 1438, 1688, -3208, -742, 1146, 400, -609, 579, 1969, -1507, -2175, 462, 1680, -965, -34, 1730, -546, -1511, -960, 1897, -76, -902, 1731, -90, -1131, -1460, 1245, 752, -1409, 1500, 432, -690, -1558, 200, 1631, -1435, 884, 924, -535, -1394, -776, 2039, -732, 32, 959, -329, -621, -1353, 1382, 159, -248, 633, -422, 52, -1278, 638, 485, -307, 784, -610, 277, -830, -201, 766, -403, 676, -356, 191, -307, -793, 709, -187, 475, -51, -42, 35, -1041, 306, 239, 513, -50, -361, 257, -705, -5, 130, 580, 223, -659, 76, -351, -16, -50, 375, 489, -547, -94, -245, 108, -123, 90, 710, -471, -205, -135, 24, -4, -246, 702, -115, -286, -118, -83, 44, -381, 654, 159, -366, -123, -198, 179, -306, 357, 328, -283, -134, -308, 151, -166, 158, 403, -222, -79, -328, 89, -10, -33, 419, -154, -92, -283, -64, 129, -119, 314, -25, -48, -193, -200, 189, -106, 204, 62, -103, -97, -297, 153, -22, 64, 119, -71, -3, -273, 26, 63, -15, 125, -12, 17, -287, -137, 110, 63, 115, -75, 23, -129, -190, -14, 119, 186, -109, -33, -39, -188, -59, 73, 218, -81, -104, -4, -146, -47, -4, 194, 77, 288, 373, -76, -371, -119, 142, -411, -68, 566, 330, -380, -312, 248, -359, -602, 331, 869, 237, -742, -213, 175, -633, -140, 899, 800, -568, -1044, 145, -38, -345, 671, 1021, -3, -1279, -703, 146, -74, 394, 1144, 514, -1068, -1231, -166, 398, 503, 542, 442, -498, -1116, -390, 286, 261, 798, 647, -581, -802, -363, 14, -133, 392, 706, 256, -402, -845, -407, -231, 194, 1131, 805, -517, -591, -602, -657, -96, 900, 1270, 25, -679, -943, -797, -38, 776, 1214, 242, -394, -499, -1198, -761, 559, 1348, 976, -371, -574, -680, -1116, -65, 1095, 1272, 33, -546, -596, -1144, -480, 746, 1381, 577, -560, -369, -775, -1067, 198, 1240, 1095, -186, -620, -544, -1071, -437, 1059, 1330, 193, -608, -305, -763, -892, 396, 1102, 526, -258, 1, -241, -1309, -526, 1164, 751, -7, 211, 107, -1230, -1370, 615, 1075, 297, 200, 401, -628, -1831, -335, 1440, 598, -25, 455, 65, -1499, -1450, 818, 1302, 158, 154, 453, -686, -1916, -310, 1547, 603, -154, 439, 204, -1498, -1560, 864, 1460, 4, 19, 556, -490, -1887, -530, 1503, 689, -319, 392, 538, -1295, -1809, 689, 1459, -173, -5, 967, -85, -2067, -1101, 1357, 751, -325, 817, 981, -1317, -2320, 137, 1618, -10, 57, 1488, 122, -2481, -1560, 1386, 990, -604, 921, 1537, -1240, -2566, -151, 1642, -74, -380, 1815, 835, -2223, -2068, 821, 1238, -898, 503, 2478, -259, -2981, -1169, 1553, 193, -1188, 2074, 2644, -2011, -3358, 101, 1759, -987, -513, 3652, 1547, -3667, -2710, 1363, 939, -1736, 1278, 4380, -556, -4604, -1320, 2171, -286, -1662, 3202, 3577, -2583, -4227, 179, 1771, -1569, -275, 4682, 1817, -4091, -3062, 1337, 694, -2154, 1749, 4927, -474, -4521, -1603, 1528, -709, -1420, 3996, 3840, -2597, -4104, -297, 1189, -1729, 177, 5203, 1885, -4004, -3253, 645, 459, -1801, 2145, 4973, -352, -4225, -2015, 955, -514, -1268, 3797, 4062, -2100, -4000, -966, 930, -1337, -112, 4933, 2416, -3275, -3342, -247, 373, -1534, 1769, 5030, 385, -3691, -2543, 207, -272, -1194, 3312, 4345, -1255, -3735, -1787, 470, -815, -388, 4399, 2989, -2284, -3275, -1278, 183, -1167, 1095, 4887, 1516, -2750, -3137, -949, 0, -1049, 2287, 4585, 507, -2922, -3270, -694, 69, -500, 3251, 3883, -190, -3533, -3316, 74, 62, 29, 3518, 3346, -653, -4268, -2975, 849, 103, 468, 3633, 3059, -1360, -5084, -2256, 1466, -122, 733, 4057, 3012, -2614, -5778, -1064, 1945, -476, 1057, 4698, 2504, -4274, -5813, 425, 2078, -1094, 1683, 5468, 1383, -6114, -5040, 2245, 1514, -1698, 2773, 5928, -337, -7556, -3334, 3683, 320, -1988, 4207, 5784, -2580, -8032, -1094, 4100, -1384, -1475, 6035, 5053, -5026, -7770, 1261, 3666, -2943, -74, 7539, 3274, -7272, -6504, 3245, 2474, -3981, 1854, 8561, 875, -9032, -4388, 4948, 583, -4503, 4221, 8611, -2144, -9651, -1557, 5485, -1859, -3880, 7011, 7305, -5229, -8863, 1280, 4722, -4241, -1802, 9208, 4646, -7710, -6983, 3703, 2786, -6023, 1188, 10768, 1599, -9915, -4652, 5855, 391, -6868, 4244, 11360, -1839, -11245, -1713, 6908, -2438, -6558, 7966, 10416, -5976, -11158, 2104, 6803, -5555, -5096, 11259, 8369, -9934, -9659, 5645, 5481, -8475, -2671, 14059, 5174, -13028, -6997, 8575, 2857, -10586, 1059, 15882, 884, -15316, -3217, 10663, -721, -11427, 5196, 16150, -3802, -16027, 1060, 11332, -4413, -10853, 9220, 14845, -8449, -15084, 5565, 10214, -8272, -8901, 13209, 12114, -12920, -12360, 9753, 7617, -11702, -5613, 16375, 8347, -16633, -8488, 13135, 3734, -14076, -1617, 18863, 3472, -19227, -3481, 15101, -834, -15246, 3404, 19822, -2253, -20342, 2293, 15471, -5948, -14814, 8784, 19197, -8697, -19539, 8559, 14042, -10933, -12927, 13933, 17035, -15183, -16467, 14314, 10788, -15495, -9420, 18891, 12470, -20490, -11487, 18783, 5717, -18697, -4370, 22207, 6256, -23915, -4427, 21529, 33, -20757, 1507, 23214, -1563, -24275, 3457, 21987, -6352, -20978, 7985, 22094, -9281, -22130, 11061, 20221, -13010, -19084, 14288, 18677, -15868, -17767, 17653, 16434, -19199, -15200, 19968, 13098, -20816, -11574, 22437, 10923, -24189, -9331, 24106, 6044, -23866, -4171, 25554, 3869, -27448, -1835, 25658, -1749, -24200, 3458, 26768, -4583, -28293, 6783, 24634, -9635, -22228, 11405, 25085, -13182, -26096, 15107, 21202, -16448, -18667, 18043, 21177, -20776, -20863, 21796, 15573, -21635, -13222, 23575, 14585, -26639, -13247, 26426, 8389, -25066, -6344, 27256, 6644, -30279, -4291, 28384, 178, -25774, 1215, 28326, -2329, -30838, 5371, 27235, -7702, -24353, 8928, 26804, -11379, -28010, 13700, 23822, -14617, -21051, 16169, 22956, -19628, -22786, 20923, 18191, -19979, -16071, 22026, 16964, -26071, -15453, 25985, 11135, -23812, -9359, 26294, 8837, -30347, -6106, 28374, 3024, -25323, -1714, 27747, -46, -30869, 3006, 27633, -4522, -24567, 5527, 27314, -9058, -28839, 11749, 24400, -11446, -21879, 12610, 24415, -17399, -24117, 19012, 19135, -16844, -17549, 18609, 19171, -23876, -17235, 23753, 12897, -20911, -11804, 23254, 12163, -27833, -9459, 26390, 6010, -23189, -5486, 26335, 4035, -30020, -665, 26798, -960, -23926, 1588, 27356, -4836, -29472, 7771, 25319, -7978, -22796, 9136, 25686, -13556, -26237, 15663, 21643, -14470, -19635, 16026, 21550, -20761, -20709, 21600, 16319, -19327, -14988, 21637, 15638, -26581, -13329, 25801, 9637, -22863, -8820, 25788, 8021, -30163, -4643, 27490, 2119, -23903, -1845, 27290, -894, -30348, 4432, 26120, -5038, -23000, 5590, 26093, -9334, -27591, 12345, 22552, -11149, -20336, 12052, 23191, -17548, -22201, 18878, 17219, -15820, -16468, 18108, 17762, -24066, -14773, 23071, 11048, -19278, -10984, 22432, 10381, -27644, -6418, 24848, 4321, -21131, -4946, 25175, 2362, -28796, 1835, 24048, -1807, -20912, 1280, 25442, -6113, -26886, 9449, 21184, -7062, -19447, 7181, 23752, -13583, -23008, 15451, 17232, -11270, -17125, 13000, 20026, -20104, -16970, 19448, 12495, -14545, -13714, 17725, 14582, -24048, -10331, 21371, 7409, -16223, -9817, 20749, 8909, -26212, -3869, 21803, 2755, -17785, -4900, 22560, 2485, -25896, 2000, 21346, -2006, -19197, 1328, 22454, -4465, -23191, 7158, 19985, -6874, -19153, 7225, 20484, -9753, -19851, 11283, 17781, -11611, -17071, 12696, 16599, -14194, -15433, 14771, 14699, -16089, -13552, 16961, 11542, -16307, -11183, 17398, 10845, -20107, -8241, 19163, 6354, -17075, -6851, 19477, 5569, -22323, -2470, 19600, 1888, -17044, -3213, 20574, 897, -22871, 2564, 18678, -2207, -16434, 1043, 20042, -3701, -21419, 6536, 16967, -5505, -15301, 4742, 18290, -7395, -19019, 9409, 14938, -7951, -13552, 7288, 16678, -10781, -16321, 12059, 12245, -9795, -12463, 10772, 14968, -14914, -12835, 14353, 9463, -11624, -10234, 13479, 11367, -16615, -9276, 14885, 7286, -12942, -7653, 14786, 7962, -16631, -6736, 15711, 4545, -14473, -4261, 16107, 4318, -17749, -2934, 16282, 1052, -14811, -991, 16682, 729, -18019, 662, 15476, -1411, -13888, 1433, 15749, -2131, -17072, 3596, 14412, -3716, -13288, 3631, 14766, -3897, -15437, 4472, 13343, -5398, -11945, 4976, 14162, -5588, -14275, 6174, 11732, -6814, -11119, 7217, 11612, -5972, -12618, 6094, 11876, -8482, -9875, 7966, 10131, -6059, -11771, 6963, 10527, -9726, -7955, 9057, 8222, -6321, -10673, 7454, 9682, -10461, -6655, 9225, 7092, -6461, -9886, 8108, 8692, -11572, -5079, 9920, 5341, -6126, -8852, 8233, 7654, -12175, -3343, 9794, 3885, -5821, -7907, 8328, 6855, -12988, -1789, 9810, 2487, -5006, -7125, 8031, 6174, -13802, 145, 9459, 568, -3496, -6407, 7461, 5133, -13983, 2407, 8614, -1841, -437, -6872, 6571, 4797, -13180, 2880, 7853, -3258, 1881, -7350, 6425, 3952, -12624, 3251, 7016, 10927, -6717, -6812, 3030, 4843, 5717, -11744, 287, 11943, -8397, -5814, 3357, 4395, 4857, -10713, 1165, 10945, -8895, -5117, 3419, 4821, 3500, -10924, 2709, 10475, -9604, -4582, 4039, 5132, 1367, -10277, 3959, 9459, -9304, -4549, 4329, 5584, -239, -10257, 5492, 8867, -9451, -4586, 5217, 5406, -2272, -9342, 6822, 7954, -10126, -3830, 5914, 4804, -3465, -7993, 7634, 6443, -10070, -3317, 6257, 4691, -5111, -7092, 8887, 5213, -10365, -2519, 7019, 4002, -6003, -5900, 9140, 3508, -9681, -1872, 6871, 3703, -6814, -4963, 9343, 2671, -9126, -1220, 6641, 2664, -6717, -3628, 9051, 1723, -9095, -306, 6438, 1299, -6628, -1663, 8941, -159, -8419, 997, 6010, -258, -6602, 325, 8472, -1640, -7688, 2101, 5423, -1755, -5956, 2142, 7548, -2895, -6806, 2796, 5154, -3065, -5544, 3740, 6552, -3953, -5793, 3717, 4095, -4278, -4355, 4606, 5785, -4399, -5277, 3945, 3073, -3875, -3363, 4452, 5320, -5025, -4859, 4226, 2794, -3771, -3306, 5124, 4494, -5921, -3743, 4702, 2485, -4549, -2852, 6027, 3405, -6536, -2563, 5180, 1544, -5199, -1765, 6659, 2030, -6741, -1558, 5577, 354, -5819, -58, 6814, 706, -6587, -220, 5356, -1996, -5129, 1973, 5988, 107, -6190, 270, 4096, -2798, -2934, 2434, 4809, -156, -5920, 404, 3451, -2358, -2323, 2268, 4364, -826, -5420, 672, 3585, -2223, -2455, 2543, 3784, -1263, -4812, 977, 3544, -2453, -2527, 2885, 3048, -1741, -3976, 1565, 3108, -3021, -1810, 3358, 2600, -2564, -3774, 2336, 2324, -3134, -693, 3631, 1389, -3540, -2564, 3173, 1492, -3166, 288, 3206, -145, -3636, -721, 3581, -56, -2753, 1012, 2377, -1056, -2885, 736, 2745, -1105, -1796, 1325, 1268, -1122, -1641, 1021, 1370, -1523, -548, 1279, 622, -548, -1251, 564, 491, -1022, 285, 706, 505, -328, -1416, 308, 770, -322, -185, 256, 574, -348, -1359, 537, 1156, -702, -593, 417, 770, -457, -1294, 879, 1138, -1054, -786, 537, 778, -494, -955, 1009, 614, -1331, -335, 947, 936, -1065, -1262, 1232, 292, -930, 268, 1356, -291, -2081, -137, 1678, 238, -577, 372, 119, -1113, -949, 1088, 1305, -226, -781, -151, 78, -734, -28, 1039, 436, -370, -545, 100, -74, -460, 184, 430, 235, -166, -253, 21, -145, -58, -21, 86, 250, -57, -114, -63, 71, -271, -345, 417, 493, -139, -246, -65, -251, -298, 157, 672, 162, -290, -355, -377, 13, 166, 431, 393, -149, -516, -598, 54, 482, 316, 59, 44, -309, -597, -151, 593, 476, -273, -147, -128, -182, -88, 336, 303, -281, -340, -17, 254, 130, -22, -149, -159, -141, 94, 314, 149, -145, -314, -167, 13, 181, 180, 45, -34, -130, -238, -56, 209, 110, -41, -41, 15, -132, -153, 171, 185, -150, -122, 100, -91, -102, 154, 259, -189, -328, 42, 82, 48, 158, 143, -216, -372, -109, 278, 265, 90, -113, -280, -194, -16, 266, 250, 18, -204, -286, -66, 120, 213, 83, -24, -158, -215, 3, 141, 176, 17, -122, -128, -68, 15, 121, 112, -35, -147, -89, 42, 40, 65, 24, -67, -65]
size = len(list)
sound = makeEmptySound(size,2000)
for i in range(0, size):
setSampleValueAt(sound,i,list[i])
play(sound)
###########################################################################
#################### END OF GAME SOUNDS AND WHEEL SPIN ####################
###########################################################################
###########################################################################
###################### BEGIN PHRASE HANDLING ##############################
###########################################################################
###################################################
# loads phrase into a sentence list of word lists #
# and returns it with a matching list of blanks #
# with non alpha characters left intact #
###################################################
def loadPhrase(phrase):
phraseLst = phrase.split() # split phrase into word list
sentenceLst = [] # sentence list to hold word lists
gameLst = [] # game list to hold blank lists
for i in range(0, len(phraseLst)):
wordLst = [] # single word list
blnkLst = [] # single blank list
wrd = phraseLst[i] # get word at current index
for j in range(0, len(wrd)):
wordLst.append(wrd[j:j+1]) # append each character into word list
if wrd[j:j+1].isalpha():
blnkLst.append('_') # add "blank" in place of alpha characters in blank list
else:
blnkLst.append(wrd[j:j+1]) # add non alpha characters if they exist
sentenceLst.append(wordLst) # append each word list to sentence list
gameLst.append(blnkLst) # append each blank list to sentence list
return sentenceLst, gameLst # return both lists
#####################################################
# returns phrase list or game list in sentence form #
#####################################################
def printList(phraseList):
prntList = copy.deepcopy(phraseList) # make deep copy so original does not get altered
lstSentence = ""
for i in range(0, len(prntList)):
wrd = prntList[i]
spc1 = " " # spaces between words
spc2 = " " # spaces between blanks
wrd.append(spc1) # add space to end of word
for j in range(0, len(wrd)):
wrdChar = str(wrd[j])
if (wrdChar == "_"): # if char is "blank"
if (lstSentence[len(lstSentence)-1:len(lstSentence)] != "_"): # if prev char is not "blank"
lstSentence += wrdChar # do not add space "blank"
else: # if prev char is "blank"
lstSentence += spc2 + wrdChar # add space to beginning of "blank"
else: # if char is not "blank"
lstSentence += wrdChar # add alpha and non-alpha characters
lstSentence = lstSentence.strip() # strip trailing space
return lstSentence
###########################################################################
######################### END OF PHRASE HANDLING ##########################
###########################################################################
# Initialize game quotes and sounds from random list
# Will return dialogString, clip, phraseList,
def quoteInitialize():
quotes = ["I had no idea you could milk a cat.", "There's no crying in baseball!", "What's a matter, Colonel Sandurz? CHICKEN"]
clips = [makeEmptySound(112400, 44100), makeEmptySound(229530, 44100), makeEmptySound(150811, 44100)]
phraseLists = [[["I", 20431, 25734],["had", 25734, 36500], ["no", 36500, 45000],["idea", 45000, 53426],["you", 53426, 66109],["could",66109, 77925],["milk", 77925, 89190],["a", 89190,95396],["cat", 95396, 112400]], [["There's", 132698, 143702],["no", 143702, 153574],["crying", 153574, 174245], ["in", 174245, 184940], ["baseball!", 184940, 229530]], [["What's", 252757, 257441], ["a", 257441, 267960], ["matter", 267960, 282749], ["Colonel", 282749, 296360], ["Sandurz?", 296360, 346606], ["CHICKEN", 346606, 403568]]]
posterFile = ["milkCat.png", "baseball.jpg", "chicken.png"]
# get random quote
quoteNum = random.randint(0, len(quotes)-1)
return (quotes[quoteNum], clips[quoteNum], phraseLists[quoteNum], posterFile[quoteNum])
#Start the game function
def pythonOfFortune():
#Player starting dollar amount initialized
playerDollars = 1000
global clip
global phraseList
global soundSource
initQuote = quoteInitialize()
dialogString = initQuote[0]
clip = initQuote[1]
phraseList = initQuote[2]
userGuesses = []
dialogs = loadPhrase(dialogString)
completeDialog = dialogs[0]
phraseState = dialogs[1]
#Welcome Screen
printNow("\n|======================|")
printNow("Welcome to the PYTHON OF FORTUNE!")
printNow("\n")
#Because we cannot set relative path in this itteration of JES
#we have to ask the player to load the game sound file
folder = ""
while folder.find("assets") < 0:
showInformation("Please select this folder to play the game:\n 'assets'")
folder = pickAFolder()
if folder == None:
printNow("\nSorry to see you go, goodbye!")
return
#assets = os.listdir(folder)
dialogFile = folder + str("CST205_FinalProject_MasterSoundFile_mixdown.wav")
soundSource = makeSound(dialogFile)
posterFile = dialogFile[0:dialogFile.index("CST205_FinalProject_MasterSoundFile_mixdown.wav", 0, len(dialogFile))] + initQuote[3]
userMenu(playerDollars, userGuesses, completeDialog, phraseState, posterFile)
#Player Menu
#You can type exit at any time to leave the game.
def userMenu(playerDollars, userGuesses, completeDialog, phraseState, posterFile):
#Show initial board state
printNow("Your goal is to complete the following movie quote ")
printNow("before you run out of money. Spin the wheel for a ")
printNow("random amount of money and guess a letter. If your ")
printNow("guess is correct, you earn that money for each copy of that")
printNow("letter in the quote. If the guess is incorrect, you")
printNow("lose that money. You begin with $" + str(playerDollars) + ".")
printNow("\nHere's your quote. Good luck!\n")
#Game menu options
printNow("\n[ " + printList(phraseState) + " ] \nPlayer total: $" + str(playerDollars))
printNow("\n---------------GAME MENU---------------")
printNow("Type one of the following options:")
printNow("[spin] - spin the wheel and guess a letter")
printNow("[play sound] - play the completed part of the puzzle")
printNow("[exit] - type at anytime to quit the game.\n")
#While loop to keep player in the game until they choose to leave
stillPlaying = true
choice = None
while stillPlaying:
printNow("Make your selection:")
choice = raw_input("")
if choice == None:
printNow("\nThat's not an option, please try again.")
stillPlaying = true
# if nothing entered
elif choice == "":
printNow("\nYou didn't enter anything, please try again.")
stillPlaying = true
else:
choice = choice.lower()
# exit the game
if choice == "exit":
printNow("\nSorry to see you go, goodbye!")
stillPlaying = false
return
# spin the wheel
elif choice == "spin":
spinResult = spinWheel()
newGuess = true
while newGuess == true:
guessLetter = raw_input("Please guess a letter: ")
if guessLetter == None:
printNow("\nThat's not an option, please try again.")
newGuess == true
elif guessLetter == "":
printNow("\nYou didn't enter anything, please try again.")
newGuess = true
else:
guessLetter = guessLetter.lower()
# if exit
if guessLetter == "exit":
printNow("\nSorry to see you go, goodbye!")
newGuess = false
return
# if more than one char entered
if len(guessLetter) > 1:
printNow("\nOne character only, please try again.")
newGuess = true
# if char is not alphabetic
elif not guessLetter.isalpha():
printNow("\nOnly alphabetic letter are allowed, please try again.")
newGuess = true
# if single letter entered, execute guess
else:
guessInfo = exeGuess(guessLetter, spinResult, playerDollars, userGuesses, completeDialog, phraseState, posterFile)
# update game variables
newGuess = guessInfo[0]
stillPlaying = guessInfo[1]
playerDollars = guessInfo[2]
userGuesses = guessInfo[3]
phraseState = guessInfo[4]
printNow("\n[ " + printList(phraseState) + " ] \nPlayer total: $" + str(playerDollars))
if stillPlaying and not newGuess:
printNow("\n---------------GAME MENU---------------")
printNow("Type one of the following options:")
printNow("[spin] - spin the wheel and guess a letter")
printNow("[play sound] - play the completed part of the puzzle")
printNow("[exit] - type at anytime to quit the game.\n")
# play sound
elif choice == "play sound":
playSound(phraseState)
printNow("\n[ " + printList(phraseState) + " ] \nPlayer total: $" + str(playerDollars))
printNow("\n---------------GAME MENU---------------")
printNow("Type one of the following options:")
printNow("[spin] - spin the wheel and guess a letter")
printNow("[play sound] - play the completed part of the puzzle")
printNow("[exit] - type at anytime to quit the game.\n")
else:
printNow("\nThat's not an option, please try again.")
stillPlaying = true
###########################################################################
# Begin Guess Handling
###########################################################################
# Takes guessed letter and processes gameboard, checks win/lose, adds/deducts money
# returns (newGuess, stillPlaying, playerDollars, userGuesses, phraseState)
def exeGuess(guessLetter, currentAmount, playerDollars, userGuesses, completeDialog, phraseState, posterFile):
# Check to see if letter has been guessed already
if guessLetter in userGuesses:
playBuzzer()
printNow("\nYou already guessed that letter. Please pick a new one.")
return (true, true, playerDollars, userGuesses, phraseState)
# If letter hasn't been guessed already
else:
userGuesses.append(guessLetter)
numLetters = 0
gameWon = true
gameLost = false
# Check quote for letter
for w in range(0, len(completeDialog)):
for l in range(0, len(completeDialog[w])):
# If letter exists in quote, count how many and put in phraseState
if completeDialog[w][l].lower() == guessLetter:
phraseState[w][l] = completeDialog[w][l]
numLetters += 1
# If there are still underscores in phraseState, game is not won
elif phraseState[w][l] == "_":
gameWon = false
# If letter is not in quote, deduct money, check for zero money
if numLetters == 0:
printNow("\nThere are zero '" + guessLetter.upper() + "'s. $" + str(currentAmount) + " deducted")
playerDollars -= currentAmount
if playerDollars <= 0:
gameLost = true
# If letter is in quote, add money
else:
playerDollars += currentAmount * numLetters
# If game is lost
if gameLost:
playWahWahWah()
printNow("\nYou ran out of money and lost.")
return (false, false, playerDollars, userGuesses, phraseState)
# If game is won
elif gameWon:
playTada()
printNow("\nPlayer Total: $" + str(playerDollars))
printNow("\nYou won! Congratulations!")
time.sleep(2) # delay the poster & quote audio
showPoster(posterFile, phraseState)
playSound(phraseState)
return (false, false, playerDollars, userGuesses, phraseState)
# If game is still in progress
else:
if numLetters == 1:
play3Ding()
printNow("\nThere is 1 '" + guessLetter.upper() + "', for $" + str(currentAmount))
elif numLetters > 1:
play3Ding()
printNow("\nThere are " + str(numLetters) + " '" + guessLetter.upper() + "'s, for $" + str(currentAmount*numLetters))
else:
play3Buzzer()
return (false, true, playerDollars, userGuesses, phraseState)
###########################################################################
# End Guess Handling
###########################################################################
# Show movie picture when won
def showPoster(posterFile, phraseState):
# congrats message
pic = makePicture(posterFile)
yStart = getHeight(pic) - 30
text = "Congratulations, You Won!"
style = makeStyle(sansSerif, bold + italic, 20)
# Quote selection for centering
oldText = printList(phraseState)
text = ""
for word in oldText.split(" "):
text += word + " "
if text[0] == "I":
xtStart = 64
xStart = 111
title = "Meet the Parents"
if text[0] == "T":
xtStart = 84
xStart = 80
title = "A League of Their Own"
if text[0] == "W":
xtStart = 27
xStart = 143
title = "Spaceballs"
# Display title on pic
addTextWithStyle(pic, xStart-1, yStart-1, title, style, blue)
addTextWithStyle(pic, xStart+1, yStart+1, title, style, blue)
addTextWithStyle(pic, xStart-1, yStart+1, title, style, blue)
addTextWithStyle(pic, xStart+1, yStart-1, title, style, blue)
addTextWithStyle(pic, xStart, yStart, title, style, white)
yStart = yStart + 20
style = makeStyle(sansSerif, bold, 15)
# Display quote on pic
addTextWithStyle(pic, xtStart-1, yStart-1, text, style, white)
addTextWithStyle(pic, xtStart+1, yStart+1, text, style, white)
addTextWithStyle(pic, xtStart-1, yStart+1, text, style, white)
addTextWithStyle(pic, xtStart+1, yStart-1, text, style, white)
addTextWithStyle(pic, xtStart, yStart, text, style, blue)
show(pic)
return pic
###########################################################################
# Begin playSound
###########################################################################
# Will play the quote with empty sound during incomplete words
def playSound(phraseState):
wordIndex = 0
clipSample = 0
clipEmpty = true
for word in phraseState:
wordComplete = true
for letter in word:
if letter == "_":
wordComplete = false
if wordComplete == true:
clipEmpty = false
for sample in range(phraseList[wordIndex][1], phraseList[wordIndex][2]):
value = getSampleValueAt(soundSource, sample)
setSampleValueAt(clip, clipSample, value)
clipSample = clipSample + 1
else:
for sample in range(phraseList[wordIndex][1], phraseList[wordIndex][2]):
value = getSampleValueAt(soundSource, sample)
setSampleValueAt(clip, clipSample, 0)
clipSample = clipSample + 1
wordIndex = wordIndex + 1
play(clip)
# If there are no completed words yet, notify player
if clipEmpty:
printNow("\nSound will only play when you have completed entire words.\n")
###########################################################################
# End PlaySound
###########################################################################
###########################################################################
###########################################################################
###########################################################################
########################## LETS PLAY THE GAME!!!!!#########################
###########################################################################
###########################################################################
###########################################################################
pythonOfFortune()