-
Notifications
You must be signed in to change notification settings - Fork 8
/
bundle.js
4838 lines (3506 loc) · 208 KB
/
bundle.js
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
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var dat = require('dat-gui')
module.exports = function(WAVEFORM) {
window.u = new WAVEFORM({
container: newDiv(),
waveform: [0.9285714285714286,0.7071428571428572,0.9714285714285714,0.7642857142857142,0.7785714285714286,0.9428571428571428,0.6857142857142857,0.85,0.8142857142857143,0.5714285714285714,0.9285714285714286,0.7071428571428572,0.9142857142857143,0.8428571428571429,0.7928571428571428,0.9142857142857143,0.7285714285714285,0.6714285714285714,0.9357142857142857,0.6285714285714286,0.9285714285714286,0.7214285714285714,0.7785714285714286,0.95,0.8071428571428572,0.9,0.7642857142857142,0.5142857142857142,0.9428571428571428,0.6642857142857143,0.9,0.75,0.7714285714285715,0.95,0.8142857142857143,0.8714285714285714,0.85,0.7642857142857142,0.9428571428571428,0.7,0.8142857142857143,0.8214285714285714,0.7642857142857142,0.9428571428571428,0.8285714285714286,0.7928571428571428,0.8928571428571429,0.6285714285714286,0.9357142857142857,0.7285714285714285,0.4642857142857143,0.9571428571428572,0.6928571428571428,0.9571428571428572,0.8285714285714286,0.6857142857142857,0.9428571428571428,0.6571428571428571,0.9142857142857143,0.7428571428571429,0.5285714285714286,0.95,0.6642857142857143,0.9642857142857143,0.7928571428571428,0.7714285714285715,0.9357142857142857,0.6928571428571428,0.85,0.7928571428571428,0.5571428571428572,0.9214285714285714,0.7142857142857143,0.9,0.8714285714285714,0.7928571428571428,0.9285714285714286,0.7142857142857143,0.8214285714285714,0.9285714285714286,0.6071428571428571,0.8857142857142857,0.7571428571428571,0.8071428571428572,0.95,0.7928571428571428,0.9214285714285714,0.7357142857142858,0.5214285714285715,0.95,0.6857142857142857,0.8928571428571429,0.7785714285714286,0.7714285714285715,0.9357142857142857,0.8071428571428572,0.8928571428571429,0.7642857142857142,0.5785714285714286,0.9357142857142857,0.6928571428571428,0.8,0.8571428571428571,0.7428571428571429,0.95,0.8142857142857143,0.7714285714285715,0.8928571428571429,0.6142857142857143,0.9071428571428571,0.7357142857142858,0.4857142857142857,0.9571428571428572,0.6928571428571428,0.9785714285714285,0.7928571428571428,0.6928571428571428,0.9785714285714285,0.6714285714285714,0.9714285714285714,0.7714285714285715,0.7642857142857142,0.9357142857142857,0.6928571428571428,0.9714285714285714,0.7714285714285715,0.7714285714285715,0.95,0.7071428571428572,0.8357142857142857,0.8357142857142857,0.6857142857142857,0.9285714285714286,0.7142857142857143,0.9142857142857143,0.85,0.7857142857142857,0.9142857142857143,0.7428571428571429,0.6142857142857143,0.9428571428571428,0.65,0.9214285714285714,0.7285714285714285,0.7785714285714286,0.9571428571428572,0.8,0.8928571428571429,0.8,0.5714285714285714,0.95,0.6714285714285714,0.9071428571428571,0.7571428571428571,0.7928571428571428,0.95,0.8214285714285714,0.8928571428571429,0.8142857142857143,0.7642857142857142,0.95,0.7428571428571429,0.8285714285714286,0.8285714285714286,0.8142857142857143,0.9428571428571428,0.8142857142857143,0.7642857142857142,0.9142857142857143,0.6785714285714286,0.9357142857142857,0.7285714285714285,0.5714285714285714,0.9571428571428572,0.7142857142857143,0.9642857142857143,0.8,0.7357142857142858,0.9428571428571428,0.6642857142857143,0.9071428571428571,0.75,0.5357142857142857,0.95,0.7571428571428571,0.9714285714285714,0.8,0.7857142857142857,0.9357142857142857,0.7142857142857143,0.8571428571428571,0.8,0.5857142857142857,0.9285714285714286,0.7642857142857142,0.9214285714285714,0.8857142857142857,0.8071428571428572,0.9214285714285714,0.7857142857142857,0.7928571428571428,0.9428571428571428,0.6785714285714286,0.9571428571428572,0.7785714285714286,0.85,0.95,0.8071428571428572,0.9142857142857143,0.7357142857142858,0.5214285714285715,0.95,0.6571428571428571,0.8785714285714286,0.7857142857142857,0.7714285714285715,0.9428571428571428,0.8142857142857143,0.8857142857142857,0.7785714285714286,0.5785714285714286,0.9357142857142857,0.6928571428571428,0.7857142857142857,0.8642857142857143,0.8285714285714286,0.9571428571428572,0.8142857142857143,0.75,0.9071428571428571,0.6071428571428571,0.9071428571428571,0.7357142857142858,0.4714285714285714,0.9571428571428572,0.7785714285714286,0.9857142857142858,0.7857142857142857,0.7142857142857143,0.95,0.6428571428571429,0.9642857142857143,0.7714285714285715,0.75,0.9357142857142857,0.75,0.9714285714285714,0.7642857142857142,0.7857142857142857,0.9357142857142857,0.6785714285714286,0.8714285714285714,0.8285714285714286,0.6857142857142857,0.9071428571428571,0.6928571428571428,0.8857142857142857,0.8357142857142857,0.7714285714285715,0.8857142857142857,0.7071428571428572,0.6785714285714286,0.9214285714285714,0.6857142857142857,0.8785714285714286,0.7071428571428572,0.7857142857142857,0.9071428571428571,0.7571428571428571,0.8428571428571429,0.7214285714285714,0.6214285714285714,0.9,0.6785714285714286,0.8285714285714286,0.7,0.7571428571428571,0.8857142857142857,0.7357142857142858,0.7642857142857142,0.8,0.6571428571428571,0.8571428571428571,0.6142857142857143,0.8142857142857143,0.7428571428571429,0.7071428571428572,0.85,0.7071428571428572,0.6142857142857143,0.8142857142857143,0.5428571428571428,0.8285714285714286,0.65,0.5285714285714286,0.8,0.5571428571428572,0.8214285714285714,0.7,0.5857142857142857,0.7642857142857142,0.5,0.7571428571428571,0.6928571428571428,0.5357142857142857,0.7357142857142858,0.6071428571428571,0.7714285714285715,0.7214285714285714,0.6571428571428571,0.7071428571428572,0.4785714285714286,0.7142857142857143,0.7571428571428571,0.6,0.6571428571428571,0.6071428571428571,0.7571428571428571,0.75,0.8214285714285714,0.7428571428571429,0.8,0.8785714285714286,0.8642857142857143,0.7714285714285715,0.8428571428571429,0.7785714285714286,0.7785714285714286,0.7785714285714286,0.7928571428571428,0.8071428571428572,0.8214285714285714,0.8,0.8142857142857143,0.7714285714285715,0.7142857142857143,0.6928571428571428,0.7357142857142858,0.7357142857142858,0.7285714285714285,0.8142857142857143,0.7857142857142857,0.7642857142857142,0.7428571428571429,0.7571428571428571,0.7,0.7071428571428572,0.7357142857142858,0.7357142857142858,0.7142857142857143,0.7714285714285715,0.8142857142857143,0.7785714285714286,0.7714285714285715,0.7642857142857142,0.75,0.7571428571428571,0.7,0.75,0.7285714285714285,0.7928571428571428,0.8,0.7785714285714286,0.7785714285714286,0.7642857142857142,0.6785714285714286,0.8071428571428572,0.7714285714285715,0.8071428571428572,0.7071428571428572,0.8071428571428572,0.7785714285714286,0.8214285714285714,0.7857142857142857,0.8071428571428572,0.7357142857142858,0.7714285714285715,0.7428571428571429,0.7642857142857142,0.7357142857142858,0.7571428571428571,0.7928571428571428,0.8142857142857143,0.7928571428571428,0.7928571428571428,0.7571428571428571,0.7428571428571429,0.7285714285714285,0.75,0.7357142857142858,0.7714285714285715,0.7785714285714286,0.7857142857142857,0.7642857142857142,0.7785714285714286,0.7642857142857142,0.7714285714285715,0.7357142857142858,0.7285714285714285,0.7214285714285714,0.7357142857142858,0.7285714285714285,0.7785714285714286,0.75,0.7714285714285715,0.7642857142857142,0.7071428571428572,0.8285714285714286,0.7928571428571428,0.7571428571428571,0.7857142857142857,0.7714285714285715,0.7357142857142858,0.8,0.7571428571428571,0.7714285714285715,0.7357142857142858,0.7285714285714285,0.7928571428571428,0.75,0.7428571428571429,0.7928571428571428,0.7214285714285714,0.8071428571428572,0.7714285714285715,0.7642857142857142,0.7642857142857142,0.7214285714285714,0.8071428571428572,0.7857142857142857,0.7357142857142858,0.8,0.7071428571428572,0.8071428571428572,0.7714285714285715,0.7642857142857142,0.8,0.75,0.8,0.8,0.75,0.7928571428571428,0.7214285714285714,0.7857142857142857,0.7714285714285715,0.75,0.7857142857142857,0.7571428571428571,0.7642857142857142,0.7857142857142857,0.7571428571428571,0.8071428571428572,0.7428571428571429,0.7785714285714286,0.8142857142857143,0.75,0.7785714285714286,0.7571428571428571,0.7857142857142857,0.8142857142857143,0.7428571428571429,0.7857142857142857,0.7571428571428571,0.75,0.7928571428571428,0.7571428571428571,0.7785714285714286,0.7642857142857142,0.7357142857142858,0.7928571428571428,0.75,0.7928571428571428,0.8,0.7428571428571429,0.8071428571428572,0.7714285714285715,0.8214285714285714,0.8428571428571429,0.7928571428571428,0.8357142857142857,0.8571428571428571,0.7428571428571429,0.8285714285714286,0.8071428571428572,0.8214285714285714,0.85,0.8357142857142857,0.7928571428571428,0.9285714285714286,0.85,0.9785714285714285,0.8071428571428572,0.8642857142857143,0.95,0.85,0.9142857142857143,0.8928571428571429,0.85,0.9642857142857143,0.8571428571428571,0.9,0.9071428571428571,0.8571428571428571,0.95,0.8714285714285714,0.8642857142857143,0.9642857142857143,0.8785714285714286,0.9642857142857143,0.8571428571428571,0.8928571428571429,0.9428571428571428,0.8142857142857143,0.9428571428571428,0.8428571428571429,0.8071428571428572,0.9428571428571428,0.8928571428571429,0.95,0.85,0.8714285714285714,0.95,0.85,0.9357142857142857,0.9071428571428571,0.8714285714285714,0.95,0.8642857142857143,0.9285714285714286,0.8857142857142857,0.8785714285714286,0.9642857142857143,0.7857142857142857,0.8214285714285714,0.9571428571428572,0.8642857142857143,0.9571428571428572,0.8571428571428571,0.8785714285714286,0.9571428571428572,0.8142857142857143,0.9571428571428572,0.8142857142857143,0.8357142857142857,0.9428571428571428,0.8214285714285714,0.9785714285714285,0.8357142857142857,0.8714285714285714,0.95,0.8642857142857143,0.9571428571428572,0.8214285714285714,0.8714285714285714,0.95,0.8785714285714286,0.95,0.9,0.8857142857142857,0.9357142857142857,0.8714285714285714,0.8928571428571429,0.9142857142857143,0.85,0.9642857142857143,0.8428571428571429,0.8857142857142857,0.9285714285714286,0.8857142857142857,0.9214285714285714,0.8714285714285714,0.9,0.95,0.7714285714285715,0.9642857142857143,0.8357142857142857,0.8357142857142857,0.95,0.85,0.95,0.8642857142857143,0.8571428571428571,0.95,0.8214285714285714,0.9357142857142857,0.85,0.8285714285714286,0.9571428571428572,0.85,0.9142857142857143,0.9214285714285714,0.8857142857142857,0.9714285714285714,0.7857142857142857,0.8285714285714286,0.95,0.8357142857142857,0.95,0.8642857142857143,0.8714285714285714,0.9357142857142857,0.85,0.9857142857142858,0.8,0.8785714285714286,0.95,0.8642857142857143,0.95,0.8571428571428571,0.8857142857142857,0.9285714285714286,0.8428571428571429,0.9642857142857143,0.8142857142857143,0.85,0.95,0.85,0.9285714285714286,0.8928571428571429,0.8857142857142857,0.9428571428571428,0.8428571428571429,0.8785714285714286,0.9214285714285714,0.8285714285714286,0.95,0.85,0.8142857142857143,0.9428571428571428,0.85,0.9714285714285714,0.8357142857142857,0.8714285714285714,0.9428571428571428,0.7928571428571428,0.9428571428571428,0.8428571428571429,0.8214285714285714,0.95,0.8785714285714286,0.95,0.8571428571428571,0.8714285714285714,0.95,0.85,0.9285714285714286,0.9214285714285714,0.8928571428571429,0.95,0.8714285714285714,0.9071428571428571,0.8785714285714286,0.8,0.95,0.8285714285714286,0.8571428571428571,0.95,0.8357142857142857,0.9571428571428572,0.8214285714285714,0.8642857142857143,0.95,0.7785714285714286,0.9928571428571429,0.8,0.8928571428571429,0.9357142857142857,0.8642857142857143,0.9571428571428572,0.8571428571428571,0.8642857142857143,0.9357142857142857,0.7714285714285715,0.95,0.8214285714285714,0.8714285714285714,0.9357142857142857,0.8571428571428571,0.9428571428571428,0.8714285714285714,0.8357142857142857,0.95,0.7857142857142857,0.8428571428571429,0.9285714285714286,0.8714285714285714,0.9571428571428572,0.8285714285714286,0.8714285714285714,0.9428571428571428,0.8714285714285714,0.9357142857142857,0.8,0.8357142857142857,0.9357142857142857,0.8571428571428571,0.9642857142857143,0.8285714285714286,0.8214285714285714,0.9571428571428572,0.8428571428571429,0.95,0.8571428571428571,0.8071428571428572,0.9642857142857143,0.8571428571428571,0.9428571428571428,0.8857142857142857,0.8642857142857143,0.9714285714285714,0.8571428571428571,0.8928571428571429,0.9071428571428571,0.7857142857142857,0.9714285714285714,0.8285714285714286,0.8214285714285714,0.9571428571428572,0.8285714285714286,0.95,0.8428571428571429,0.8428571428571429,0.95,0.7214285714285714,0.9928571428571429,0.7857142857142857,0.8857142857142857,0.95,0.8642857142857143,0.95,0.85,0.8642857142857143,0.9357142857142857,0.8,0.9571428571428572,0.8142857142857143,0.8571428571428571,0.95,0.8285714285714286,0.9,0.8928571428571429,0.8071428571428572,0.9571428571428572,0.7857142857142857,0.8428571428571429,0.9285714285714286,0.8571428571428571,0.9428571428571428,0.8285714285714286,0.7928571428571428,0.9428571428571428,0.8142857142857143,0.95,0.7785714285714286,0.8071428571428572,0.95,0.8285714285714286,0.9285714285714286,0.8142857142857143,0.7785714285714286,0.9571428571428572,0.7857142857142857,0.9214285714285714,0.7928571428571428,0.7857142857142857,0.9571428571428572,0.8214285714285714,0.8785714285714286,0.8714285714285714,0.8071428571428572,0.95,0.8071428571428572,0.8571428571428571,0.9,0.8,0.9571428571428572,0.8142857142857143,0.7642857142857142,0.9571428571428572,0.7642857142857142,0.9571428571428572,0.7785714285714286,0.6928571428571428,0.95,0.75,0.9642857142857143,0.7928571428571428,0.8142857142857143,0.95,0.7571428571428571,0.9428571428571428,0.8,0.7142857142857143,0.9428571428571428,0.7428571428571429,0.9357142857142857,0.8428571428571429,0.8214285714285714,0.9428571428571428,0.7785714285714286,0.8571428571428571,0.8857142857142857,0.7428571428571429,0.9571428571428572,0.7285714285714285,0.7071428571428572,0.4928571428571429,0.7357142857142858,0.7714285714285715,0.7857142857142857,0.8071428571428572,0.8285714285714286,0.8285714285714286,0.7857142857142857,0.7857142857142857,0.7714285714285715,0.7714285714285715,0.7928571428571428,0.8214285714285714,0.8214285714285714,0.8071428571428572,0.8071428571428572,0.7714285714285715,0.7071428571428572,0.7142857142857143,0.7285714285714285,0.7428571428571429,0.7,0.75,0.7285714285714285,0.7428571428571429,0.7428571428571429,0.7642857142857142,0.7,0.7357142857142858,0.7285714285714285,0.7214285714285714,0.7071428571428572,0.7714285714285715,0.8071428571428572,0.7785714285714286,0.7571428571428571,0.7642857142857142,0.7571428571428571,0.7571428571428571,0.7,0.75,0.7071428571428572,0.8,0.7785714285714286,0.7428571428571429,0.7571428571428571,0.7571428571428571,0.6714285714285714,0.7928571428571428,0.7642857142857142,0.8,0.7214285714285714,0.8,0.7857142857142857,0.8214285714285714,0.7857142857142857,0.8142857142857143,0.75,0.7571428571428571,0.7428571428571429,0.7642857142857142,0.75,0.7571428571428571,0.7857142857142857,0.8142857142857143,0.8,0.7928571428571428,0.7571428571428571,0.7357142857142858,0.7214285714285714,0.7571428571428571,0.7428571428571429,0.75,0.7785714285714286,0.7928571428571428,0.7642857142857142,0.7714285714285715,0.7642857142857142,0.7642857142857142,0.7428571428571429,0.7142857142857143,0.7357142857142858,0.7428571428571429,0.7571428571428571,0.7857142857142857,0.75,0.7785714285714286,0.7642857142857142,0.7,0.8214285714285714,0.7714285714285715,0.7857142857142857,0.7357142857142858,0.8357142857142857,0.8428571428571429,0.8428571428571429,0.8142857142857143,0.8285714285714286,0.7142857142857143,0.7857142857142857,0.7428571428571429,0.8071428571428572,0.6857142857142857,0.8,0.7714285714285715,0.8071428571428572,0.7714285714285715,0.7785714285714286,0.7285714285714285,0.7714285714285715,0.7357142857142858,0.7785714285714286,0.7142857142857143,0.8357142857142857,0.8214285714285714,0.8357142857142857,0.7785714285714286,0.8428571428571429,0.7714285714285715,0.8,0.7285714285714285,0.7857142857142857,0.7214285714285714,0.7785714285714286,0.8071428571428572,0.7785714285714286,0.7642857142857142,0.7785714285714286,0.6785714285714286,0.7214285714285714,0.7571428571428571,0.7785714285714286,0.75,0.7857142857142857,0.8214285714285714,0.8428571428571429,0.8214285714285714,0.8285714285714286,0.8071428571428572,0.7357142857142858,0.7785714285714286,0.7714285714285715,0.7857142857142857,0.7071428571428572,0.7785714285714286,0.8214285714285714,0.8142857142857143,0.8,0.7714285714285715,0.6928571428571428,0.8,0.7642857142857142,0.7857142857142857,0.7142857142857143,0.8428571428571429,0.8071428571428572,0.8142857142857143,0.7928571428571428,0.8214285714285714,0.7571428571428571,0.8,0.6785714285714286,0.8071428571428572,0.6857142857142857,0.8071428571428572,0.7571428571428571,0.7857142857142857,0.75,0.7857142857142857,0.7285714285714285,0.7785714285714286,0.7428571428571429,0.7857142857142857,0.8,0.8142857142857143,0.8142857142857143,0.85,0.8357142857142857,0.8714285714285714,0.7642857142857142,0.7857142857142857,0.7571428571428571,0.7857142857142857,0.8357142857142857,0.7928571428571428,0.75,0.8071428571428572,0.7714285714285715,0.85,0.7714285714285715,0.7857142857142857,0.7571428571428571,0.7785714285714286,0.8357142857142857,0.8142857142857143,0.8214285714285714,0.8428571428571429,0.8071428571428572,0.8642857142857143,0.7928571428571428,0.7642857142857142,0.7714285714285715,0.7357142857142858,0.85,0.7857142857142857,0.7642857142857142,0.7785714285714286,0.7714285714285715,0.8214285714285714,0.7642857142857142,0.6285714285714286,0.8071428571428572,0.7714285714285715,0.8428571428571429,0.7857142857142857,0.8285714285714286,0.8214285714285714,0.8357142857142857,0.8642857142857143,0.8357142857142857,0.7428571428571429,0.8,0.7428571428571429,0.8357142857142857,0.7857142857142857,0.7928571428571428,0.8,0.8285714285714286,0.85,0.8285714285714286,0.7714285714285715,0.8,0.75,0.8,0.8142857142857143,0.8285714285714286,0.8071428571428572,0.85,0.7714285714285715,0.8714285714285714,0.7714285714285715,0.7928571428571428,0.7428571428571429,0.7642857142857142,0.8285714285714286,0.7928571428571428,0.7714285714285715,0.7928571428571428,0.7642857142857142,0.8571428571428571,0.7785714285714286,0.75,0.7857142857142857,0.7714285714285715,0.8142857142857143,0.7928571428571428,0.75,0.7642857142857142,0.7928571428571428,0.8142857142857143,0.8,0.75,0.7571428571428571,0.7857142857142857,0.8142857142857143,0.7928571428571428,0.7714285714285715,0.7357142857142858,0.7857142857142857,0.8071428571428572,0.8142857142857143,0.7642857142857142,0.7642857142857142,0.7928571428571428,0.8214285714285714,0.8,0.7785714285714286,0.7642857142857142,0.8071428571428572,0.8142857142857143,0.8,0.8071428571428572,0.7785714285714286,0.8,0.8214285714285714,0.8285714285714286,0.8285714285714286,0.7857142857142857,0.8071428571428572,0.8142857142857143,0.8928571428571429,0.8214285714285714,0.7928571428571428,0.8285714285714286,0.8428571428571429,0.8714285714285714,0.8285714285714286,0.7714285714285715,0.85,0.8,0.8785714285714286,0.8214285714285714,0.8,0.8285714285714286,0.8071428571428572,0.8642857142857143,0.8285714285714286,0.8214285714285714,0.85,0.8142857142857143,0.8785714285714286,0.8071428571428572,0.85,0.8285714285714286,0.8357142857142857,0.8642857142857143,0.8285714285714286,0.8428571428571429,0.8142857142857143,0.8571428571428571,0.8714285714285714,0.8714285714285714,0.8642857142857143,0.8142857142857143,0.8642857142857143,0.8785714285714286,0.8642857142857143,0.8285714285714286,0.8785714285714286,0.8071428571428572,0.8857142857142857,0.8214285714285714,0.7285714285714285,0.9857142857142858,0.8571428571428571,0.9714285714285714,0.7928571428571428,0.85,0.95,0.8285714285714286,0.95,0.8285714285714286,0.8785714285714286,0.9642857142857143,0.8357142857142857,0.9571428571428572,0.8428571428571429,0.8214285714285714,0.9571428571428572,0.8357142857142857,0.9285714285714286,0.8428571428571429,0.8785714285714286,0.9428571428571428,0.8642857142857143,0.9357142857142857,0.8642857142857143,0.8357142857142857,0.9642857142857143,0.8357142857142857,0.8428571428571429,0.9357142857142857,0.8857142857142857,0.95,0.8571428571428571,0.8642857142857143,0.9357142857142857,0.8428571428571429,0.9571428571428572,0.8428571428571429,0.8571428571428571,0.9642857142857143,0.8785714285714286,0.9571428571428572,0.85,0.8714285714285714,0.9428571428571428,0.8,0.9428571428571428,0.8642857142857143,0.8714285714285714,0.9428571428571428,0.8714285714285714,0.9428571428571428,0.9,0.8428571428571429,0.9642857142857143,0.8071428571428572,0.8785714285714286,0.9,0.8571428571428571,0.9428571428571428,0.8857142857142857,0.8714285714285714,0.9428571428571428,0.85,0.9714285714285714,0.7857142857142857,0.8428571428571429,0.95,0.8785714285714286,0.9642857142857143,0.8285714285714286,0.8785714285714286,0.9214285714285714,0.8642857142857143,0.9714285714285714,0.7857142857142857,0.8857142857142857,0.95,0.8928571428571429,0.9285714285714286,0.8642857142857143,0.8714285714285714,0.9571428571428572,0.8785714285714286,0.9428571428571428,0.8857142857142857,0.8142857142857143,0.9428571428571428,0.8428571428571429,0.8214285714285714,0.9428571428571428,0.8642857142857143,0.9642857142857143,0.8571428571428571,0.8928571428571429,0.9428571428571428,0.8571428571428571,0.9642857142857143,0.8785714285714286,0.8642857142857143,0.9571428571428572,0.8642857142857143,0.9642857142857143,0.8571428571428571,0.8714285714285714,0.95,0.7928571428571428,0.9642857142857143,0.85,0.8142857142857143,0.95,0.8642857142857143,0.9214285714285714,0.8857142857142857,0.8571428571428571,0.9571428571428572,0.8214285714285714,0.8785714285714286,0.9428571428571428,0.85,0.9642857142857143,0.85,0.8785714285714286,0.9285714285714286,0.85,0.9714285714285714,0.7857142857142857,0.8357142857142857,0.95,0.8785714285714286,0.9642857142857143,0.8214285714285714,0.8785714285714286,0.9642857142857143,0.85,0.9785714285714285,0.8142857142857143,0.8642857142857143,0.9571428571428572,0.8714285714285714,0.9428571428571428,0.85,0.8428571428571429,0.9428571428571428,0.8714285714285714,0.9214285714285714,0.8785714285714286,0.85,0.9642857142857143,0.8428571428571429,0.85,0.9571428571428572,0.8857142857142857,0.9428571428571428,0.8714285714285714,0.8714285714285714,0.9285714285714286,0.8571428571428571,0.95,0.8642857142857143,0.8785714285714286,0.95,0.8857142857142857,0.95,0.8357142857142857,0.8071428571428572,0.9357142857142857,0.8357142857142857,0.95,0.8357142857142857,0.7928571428571428,0.9428571428571428,0.8428571428571429,0.9285714285714286,0.8928571428571429,0.7928571428571428,0.95,0.8142857142857143,0.8857142857142857,0.9357142857142857,0.85,0.9357142857142857,0.8428571428571429,0.8714285714285714,0.9285714285714286,0.7357142857142858,0.9714285714285714,0.7857142857142857,0.8571428571428571,0.95,0.8142857142857143,0.9285714285714286,0.8428571428571429,0.85,0.95,0.7928571428571428,0.9571428571428572,0.7785714285714286,0.9214285714285714,0.9357142857142857,0.8571428571428571,0.9,0.8857142857142857,0.8642857142857143,0.9428571428571428,0.7928571428571428,0.9,0.8714285714285714,0.8928571428571429,0.9571428571428572,0.8642857142857143,0.8428571428571429,0.9285714285714286,0.8714285714285714,0.9642857142857143,0.8214285714285714,0.8285714285714286,0.9285714285714286,0.8214285714285714,0.95,0.8428571428571429,0.85,0.9357142857142857,0.8714285714285714,0.9571428571428572,0.8285714285714286,0.7928571428571428,0.9428571428571428,0.8357142857142857,0.95,0.8428571428571429,0.7928571428571428,0.9428571428571428,0.8285714285714286,0.9142857142857143,0.8928571428571429,0.8,0.9428571428571428,0.8357142857142857,0.8714285714285714,0.9285714285714286,0.85,0.95,0.8285714285714286,0.8785714285714286,0.9285714285714286,0.8,0.9714285714285714,0.8142857142857143,0.8785714285714286,0.9428571428571428,0.8285714285714286,0.9285714285714286,0.8214285714285714,0.8142857142857143,0.9571428571428572,0.7857142857142857,0.9642857142857143,0.7928571428571428,0.8571428571428571,0.95,0.8071428571428572,0.9,0.8642857142857143,0.8,0.9357142857142857,0.7785714285714286,0.8857142857142857,0.9,0.8214285714285714,0.9571428571428572,0.7857142857142857,0.7857142857142857,0.9571428571428572,0.7785714285714286,0.9428571428571428,0.7571428571428571,0.7928571428571428,0.9357142857142857,0.8214285714285714,0.9428571428571428,0.7785714285714286,0.7857142857142857,0.9571428571428572,0.7928571428571428,0.95,0.7785714285714286,0.8285714285714286,0.9428571428571428,0.8214285714285714,0.9071428571428571,0.8285714285714286,0.7571428571428571,0.95,0.7714285714285715,0.8357142857142857,0.8785714285714286,0.8071428571428572,0.9571428571428572,0.8071428571428572,0.7714285714285715,0.9571428571428572,0.75,0.9428571428571428,0.7642857142857142,0.6857142857142857,0.9428571428571428,0.7642857142857142,0.9785714285714285,0.7857142857142857,0.7928571428571428,0.9642857142857143,0.7571428571428571,0.9357142857142857,0.8,0.75,0.9571428571428572,0.75,0.8,0.6785714285714286,0.8428571428571429,0.7714285714285715,0.8,0.8071428571428572,0.8285714285714286,0.7928571428571428,0.9214285714285714,0.7642857142857142,0.8785714285714286,0.9071428571428571,0.8,0.9214285714285714,0.7357142857142858,0.5714285714285714,0.9642857142857143,0.6071428571428571,0.9,0.75,0.7857142857142857,0.95,0.8214285714285714,0.8928571428571429,0.7642857142857142,0.55,0.95,0.6642857142857143,0.8785714285714286,0.7857142857142857,0.8357142857142857,0.9571428571428572,0.8214285714285714,0.85,0.8357142857142857,0.5714285714285714,0.9214285714285714,0.7142857142857143,0.7571428571428571,0.8785714285714286,0.8142857142857143,0.9642857142857143,0.8071428571428572,0.65,0.9571428571428572,0.6928571428571428,0.9642857142857143,0.7428571428571429,0.7714285714285715,0.9357142857142857,0.7642857142857142,0.9785714285714285,0.7857142857142857,0.7357142857142858,0.9428571428571428,0.6642857142857143,0.95,0.7714285714285715,0.6071428571428571,0.9357142857142857,0.6785714285714286,0.95,0.8,0.7857142857142857,0.9214285714285714,0.7214285714285714,0.8785714285714286,0.8571428571428571,0.5714285714285714,0.9285714285714286,0.75,0.8928571428571429,0.9214285714285714,0.8071428571428572,0.9071428571428571,0.75,0.4642857142857143,0.95,0.75,0.9071428571428571,0.75,0.85,0.95,0.8142857142857143,0.9,0.8214285714285714,0.7642857142857142,0.9428571428571428,0.6642857142857143,0.95,0.7714285714285715,0.8428571428571429,0.95,0.8214285714285714,0.8571428571428571,0.8428571428571429,0.5714285714285714,0.9285714285714286,0.7,0.7428571428571429,0.8857142857142857,0.7357142857142858,0.9642857142857143,0.8142857142857143,0.6642857142857143,0.95,0.6357142857142857,0.9142857142857143,0.7357142857142858,0.5071428571428571,0.9571428571428572,0.7571428571428571,0.9857142857142858,0.7928571428571428,0.75,0.9428571428571428,0.6785714285714286,0.8714285714285714,0.7714285714285715,0.5357142857142857,0.9357142857142857,0.7642857142857142,0.9642857142857143,0.8142857142857143,0.8,0.9285714285714286,0.7,0.8928571428571429,0.8642857142857143,0.7928571428571428,0.9071428571428571,0.7714285714285715,0.85,0.9357142857142857,0.8,0.9214285714285714,0.7285714285714285,0.7142857142857143,0.9642857142857143,0.6214285714285714,0.8928571428571429,0.75,0.7857142857142857,0.9428571428571428,0.8142857142857143,0.8928571428571429,0.7642857142857142,0.6857142857142857,0.9642857142857143,0.6714285714285714,0.8714285714285714,0.7928571428571428,0.8357142857142857,0.95,0.8214285714285714,0.8428571428571429,0.8357142857142857,0.5928571428571429,0.9214285714285714,0.75,0.7571428571428571,0.9142857142857143,0.8071428571428572,0.9785714285714285,0.8071428571428572,0.6642857142857143,0.9571428571428572,0.6785714285714286,0.9642857142857143,0.7428571428571429,0.7642857142857142,0.9285714285714286,0.6428571428571429,0.8857142857142857,0.75,0.4714285714285714,0.95,0.6642857142857143,0.8642857142857143,0.7857142857142857,0.4857142857142857,0.9357142857142857,0.6928571428571428,0.8285714285714286,0.8,0.5357142857142857,0.9142857142857143,0.7214285714285714,0.7428571428571429,0.8857142857142857,0.5571428571428572,0.9214285714285714,0.7214285714285714,0.5142857142857142,0.95,0.5857142857142857,0.8928571428571429,0.7571428571428571,0.4142857142857143,0.95,0.6214285714285714,0.9,0.7428571428571429,0.4642857142857143,0.95,0.6357142857142857,0.8714285714285714,0.7785714285714286,0.4857142857142857,0.9357142857142857,0.6714285714285714,0.95,0.7857142857142857,0.5285714285714286,0.9285714285714286,0.7,0.7928571428571428,0.85,0.5642857142857143,0.9285714285714286,0.7071428571428572,0.6785714285714286,0.9071428571428571,0.5857142857142857,0.9,0.7357142857142858,0.40714285714285714,0.95,0.6285714285714286,0.9071428571428571,0.7357142857142858,0.44285714285714284,0.9571428571428572,0.6428571428571429,0.8785714285714286,0.7714285714285715,0.4714285714285714,0.9428571428571428,0.6714285714285714,0.8571428571428571,0.7785714285714286,0.5142857142857142,0.9285714285714286,0.7,0.8214285714285714,0.8285714285714286,0.5428571428571428,0.9285714285714286,0.7071428571428572,0.75,0.8785714285714286,0.5785714285714286,0.9,0.7428571428571429,0.4714285714285714,0.9571428571428572,0.5928571428571429,0.9142857142857143,0.7357142857142858,0.42857142857142855,0.9571428571428572,0.6214285714285714,0.8857142857142857,0.7642857142857142,0.45714285714285713,0.9428571428571428,0.65,0.8785714285714286,0.7571428571428571,0.5071428571428571,0.9428571428571428,0.6714285714285714,0.8428571428571429,0.8142857142857143,0.5285714285714286,0.9357142857142857,0.6928571428571428,0.7714285714285715,0.8642857142857143,0.5714285714285714,0.9142857142857143,0.7214285714285714,0.5928571428571429,0.9357142857142857,0.6,0.9142857142857143,0.7214285714285714,0.40714285714285714,0.9642857142857143,0.6142857142857143,0.8857142857142857,0.75,0.7642857142857142,0.9357142857142857,0.6571428571428571,0.8857142857142857,0.7571428571428571,0.4857142857142857,0.95,0.6714285714285714,0.8571428571428571,0.7928571428571428,0.5071428571428571,0.9357142857142857,0.6928571428571428,0.8071428571428572,0.8214285714285714,0.5428571428571428,0.9071428571428571,0.7285714285714285,0.7214285714285714,0.8857142857142857,0.5714285714285714,0.9214285714285714,0.7214285714285714,0.40714285714285714,0.9642857142857143,0.5928571428571429,0.8928571428571429,0.7642857142857142,0.4357142857142857,0.95,0.6285714285714286,0.9,0.7428571428571429,0.4714285714285714,0.8214285714285714,0.42857142857142855,0.2785714285714286,0.40714285714285714,0.8142857142857143,0.7928571428571428,0.4857142857142857,0.2857142857142857,0.2857142857142857,0.29285714285714287,0.3,0.3,0.3,0.3,0.29285714285714287,0.29285714285714287,0.2857142857142857,0.2785714285714286],
height: 200,
width: 800,
lines: 100,
reflection: 0.3,
waveWidth: 2
})
window.a = new WAVEFORM({
container: newDiv(),
waveform: [0.9285714285714286,0.7071428571428572,0.9714285714285714,0.7642857142857142,0.7785714285714286,0.9428571428571428,0.6857142857142857,0.85,0.8142857142857143,0.5714285714285714,0.9285714285714286,0.7071428571428572,0.9142857142857143,0.8428571428571429,0.7928571428571428,0.9142857142857143,0.7285714285714285,0.6714285714285714,0.9357142857142857,0.6285714285714286,0.9285714285714286,0.7214285714285714,0.7785714285714286,0.95,0.8071428571428572,0.9,0.7642857142857142,0.5142857142857142,0.9428571428571428,0.6642857142857143,0.9,0.75,0.7714285714285715,0.95,0.8142857142857143,0.8714285714285714,0.85,0.7642857142857142,0.9428571428571428,0.7,0.8142857142857143,0.8214285714285714,0.7642857142857142,0.9428571428571428,0.8285714285714286,0.7928571428571428,0.8928571428571429,0.6285714285714286,0.9357142857142857,0.7285714285714285,0.4642857142857143,0.9571428571428572,0.6928571428571428,0.9571428571428572,0.8285714285714286,0.6857142857142857,0.9428571428571428,0.6571428571428571,0.9142857142857143,0.7428571428571429,0.5285714285714286,0.95,0.6642857142857143,0.9642857142857143,0.7928571428571428,0.7714285714285715,0.9357142857142857,0.6928571428571428,0.85,0.7928571428571428,0.5571428571428572,0.9214285714285714,0.7142857142857143,0.9,0.8714285714285714,0.7928571428571428,0.9285714285714286,0.7142857142857143,0.8214285714285714,0.9285714285714286,0.6071428571428571,0.8857142857142857,0.7571428571428571,0.8071428571428572,0.95,0.7928571428571428,0.9214285714285714,0.7357142857142858,0.5214285714285715,0.95,0.6857142857142857,0.8928571428571429,0.7785714285714286,0.7714285714285715,0.9357142857142857,0.8071428571428572,0.8928571428571429,0.7642857142857142,0.5785714285714286,0.9357142857142857,0.6928571428571428,0.8,0.8571428571428571,0.7428571428571429,0.95,0.8142857142857143,0.7714285714285715,0.8928571428571429,0.6142857142857143,0.9071428571428571,0.7357142857142858,0.4857142857142857,0.9571428571428572,0.6928571428571428,0.9785714285714285,0.7928571428571428,0.6928571428571428,0.9785714285714285,0.6714285714285714,0.9714285714285714,0.7714285714285715,0.7642857142857142,0.9357142857142857,0.6928571428571428,0.9714285714285714,0.7714285714285715,0.7714285714285715,0.95,0.7071428571428572,0.8357142857142857,0.8357142857142857,0.6857142857142857,0.9285714285714286,0.7142857142857143,0.9142857142857143,0.85,0.7857142857142857,0.9142857142857143,0.7428571428571429,0.6142857142857143,0.9428571428571428,0.65,0.9214285714285714,0.7285714285714285,0.7785714285714286,0.9571428571428572,0.8,0.8928571428571429,0.8,0.5714285714285714,0.95,0.6714285714285714,0.9071428571428571,0.7571428571428571,0.7928571428571428,0.95,0.8214285714285714,0.8928571428571429,0.8142857142857143,0.7642857142857142,0.95,0.7428571428571429,0.8285714285714286,0.8285714285714286,0.8142857142857143,0.9428571428571428,0.8142857142857143,0.7642857142857142,0.9142857142857143,0.6785714285714286,0.9357142857142857,0.7285714285714285,0.5714285714285714,0.9571428571428572,0.7142857142857143,0.9642857142857143,0.8,0.7357142857142858,0.9428571428571428,0.6642857142857143,0.9071428571428571,0.75,0.5357142857142857,0.95,0.7571428571428571,0.9714285714285714,0.8,0.7857142857142857,0.9357142857142857,0.7142857142857143,0.8571428571428571,0.8,0.5857142857142857,0.9285714285714286,0.7642857142857142,0.9214285714285714,0.8857142857142857,0.8071428571428572,0.9214285714285714,0.7857142857142857,0.7928571428571428,0.9428571428571428,0.6785714285714286,0.9571428571428572,0.7785714285714286,0.85,0.95,0.8071428571428572,0.9142857142857143,0.7357142857142858,0.5214285714285715,0.95,0.6571428571428571,0.8785714285714286,0.7857142857142857,0.7714285714285715,0.9428571428571428,0.8142857142857143,0.8857142857142857,0.7785714285714286,0.5785714285714286,0.9357142857142857,0.6928571428571428,0.7857142857142857,0.8642857142857143,0.8285714285714286,0.9571428571428572,0.8142857142857143,0.75,0.9071428571428571,0.6071428571428571,0.9071428571428571,0.7357142857142858,0.4714285714285714,0.9571428571428572,0.7785714285714286,0.9857142857142858,0.7857142857142857,0.7142857142857143,0.95,0.6428571428571429,0.9642857142857143,0.7714285714285715,0.75,0.9357142857142857,0.75,0.9714285714285714,0.7642857142857142,0.7857142857142857,0.9357142857142857,0.6785714285714286,0.8714285714285714,0.8285714285714286,0.6857142857142857,0.9071428571428571,0.6928571428571428,0.8857142857142857,0.8357142857142857,0.7714285714285715,0.8857142857142857,0.7071428571428572,0.6785714285714286,0.9214285714285714,0.6857142857142857,0.8785714285714286,0.7071428571428572,0.7857142857142857,0.9071428571428571,0.7571428571428571,0.8428571428571429,0.7214285714285714,0.6214285714285714,0.9,0.6785714285714286,0.8285714285714286,0.7,0.7571428571428571,0.8857142857142857,0.7357142857142858,0.7642857142857142,0.8,0.6571428571428571,0.8571428571428571,0.6142857142857143,0.8142857142857143,0.7428571428571429,0.7071428571428572,0.85,0.7071428571428572,0.6142857142857143,0.8142857142857143,0.5428571428571428,0.8285714285714286,0.65,0.5285714285714286,0.8,0.5571428571428572,0.8214285714285714,0.7,0.5857142857142857,0.7642857142857142,0.5,0.7571428571428571,0.6928571428571428,0.5357142857142857,0.7357142857142858,0.6071428571428571,0.7714285714285715,0.7214285714285714,0.6571428571428571,0.7071428571428572,0.4785714285714286,0.7142857142857143,0.7571428571428571,0.6,0.6571428571428571,0.6071428571428571,0.7571428571428571,0.75,0.8214285714285714,0.7428571428571429,0.8,0.8785714285714286,0.8642857142857143,0.7714285714285715,0.8428571428571429,0.7785714285714286,0.7785714285714286,0.7785714285714286,0.7928571428571428,0.8071428571428572,0.8214285714285714,0.8,0.8142857142857143,0.7714285714285715,0.7142857142857143,0.6928571428571428,0.7357142857142858,0.7357142857142858,0.7285714285714285,0.8142857142857143,0.7857142857142857,0.7642857142857142,0.7428571428571429,0.7571428571428571,0.7,0.7071428571428572,0.7357142857142858,0.7357142857142858,0.7142857142857143,0.7714285714285715,0.8142857142857143,0.7785714285714286,0.7714285714285715,0.7642857142857142,0.75,0.7571428571428571,0.7,0.75,0.7285714285714285,0.7928571428571428,0.8,0.7785714285714286,0.7785714285714286,0.7642857142857142,0.6785714285714286,0.8071428571428572,0.7714285714285715,0.8071428571428572,0.7071428571428572,0.8071428571428572,0.7785714285714286,0.8214285714285714,0.7857142857142857,0.8071428571428572,0.7357142857142858,0.7714285714285715,0.7428571428571429,0.7642857142857142,0.7357142857142858,0.7571428571428571,0.7928571428571428,0.8142857142857143,0.7928571428571428,0.7928571428571428,0.7571428571428571,0.7428571428571429,0.7285714285714285,0.75,0.7357142857142858,0.7714285714285715,0.7785714285714286,0.7857142857142857,0.7642857142857142,0.7785714285714286,0.7642857142857142,0.7714285714285715,0.7357142857142858,0.7285714285714285,0.7214285714285714,0.7357142857142858,0.7285714285714285,0.7785714285714286,0.75,0.7714285714285715,0.7642857142857142,0.7071428571428572,0.8285714285714286,0.7928571428571428,0.7571428571428571,0.7857142857142857,0.7714285714285715,0.7357142857142858,0.8,0.7571428571428571,0.7714285714285715,0.7357142857142858,0.7285714285714285,0.7928571428571428,0.75,0.7428571428571429,0.7928571428571428,0.7214285714285714,0.8071428571428572,0.7714285714285715,0.7642857142857142,0.7642857142857142,0.7214285714285714,0.8071428571428572,0.7857142857142857,0.7357142857142858,0.8,0.7071428571428572,0.8071428571428572,0.7714285714285715,0.7642857142857142,0.8,0.75,0.8,0.8,0.75,0.7928571428571428,0.7214285714285714,0.7857142857142857,0.7714285714285715,0.75,0.7857142857142857,0.7571428571428571,0.7642857142857142,0.7857142857142857,0.7571428571428571,0.8071428571428572,0.7428571428571429,0.7785714285714286,0.8142857142857143,0.75,0.7785714285714286,0.7571428571428571,0.7857142857142857,0.8142857142857143,0.7428571428571429,0.7857142857142857,0.7571428571428571,0.75,0.7928571428571428,0.7571428571428571,0.7785714285714286,0.7642857142857142,0.7357142857142858,0.7928571428571428,0.75,0.7928571428571428,0.8,0.7428571428571429,0.8071428571428572,0.7714285714285715,0.8214285714285714,0.8428571428571429,0.7928571428571428,0.8357142857142857,0.8571428571428571,0.7428571428571429,0.8285714285714286,0.8071428571428572,0.8214285714285714,0.85,0.8357142857142857,0.7928571428571428,0.9285714285714286,0.85,0.9785714285714285,0.8071428571428572,0.8642857142857143,0.95,0.85,0.9142857142857143,0.8928571428571429,0.85,0.9642857142857143,0.8571428571428571,0.9,0.9071428571428571,0.8571428571428571,0.95,0.8714285714285714,0.8642857142857143,0.9642857142857143,0.8785714285714286,0.9642857142857143,0.8571428571428571,0.8928571428571429,0.9428571428571428,0.8142857142857143,0.9428571428571428,0.8428571428571429,0.8071428571428572,0.9428571428571428,0.8928571428571429,0.95,0.85,0.8714285714285714,0.95,0.85,0.9357142857142857,0.9071428571428571,0.8714285714285714,0.95,0.8642857142857143,0.9285714285714286,0.8857142857142857,0.8785714285714286,0.9642857142857143,0.7857142857142857,0.8214285714285714,0.9571428571428572,0.8642857142857143,0.9571428571428572,0.8571428571428571,0.8785714285714286,0.9571428571428572,0.8142857142857143,0.9571428571428572,0.8142857142857143,0.8357142857142857,0.9428571428571428,0.8214285714285714,0.9785714285714285,0.8357142857142857,0.8714285714285714,0.95,0.8642857142857143,0.9571428571428572,0.8214285714285714,0.8714285714285714,0.95,0.8785714285714286,0.95,0.9,0.8857142857142857,0.9357142857142857,0.8714285714285714,0.8928571428571429,0.9142857142857143,0.85,0.9642857142857143,0.8428571428571429,0.8857142857142857,0.9285714285714286,0.8857142857142857,0.9214285714285714,0.8714285714285714,0.9,0.95,0.7714285714285715,0.9642857142857143,0.8357142857142857,0.8357142857142857,0.95,0.85,0.95,0.8642857142857143,0.8571428571428571,0.95,0.8214285714285714,0.9357142857142857,0.85,0.8285714285714286,0.9571428571428572,0.85,0.9142857142857143,0.9214285714285714,0.8857142857142857,0.9714285714285714,0.7857142857142857,0.8285714285714286,0.95,0.8357142857142857,0.95,0.8642857142857143,0.8714285714285714,0.9357142857142857,0.85,0.9857142857142858,0.8,0.8785714285714286,0.95,0.8642857142857143,0.95,0.8571428571428571,0.8857142857142857,0.9285714285714286,0.8428571428571429,0.9642857142857143,0.8142857142857143,0.85,0.95,0.85,0.9285714285714286,0.8928571428571429,0.8857142857142857,0.9428571428571428,0.8428571428571429,0.8785714285714286,0.9214285714285714,0.8285714285714286,0.95,0.85,0.8142857142857143,0.9428571428571428,0.85,0.9714285714285714,0.8357142857142857,0.8714285714285714,0.9428571428571428,0.7928571428571428,0.9428571428571428,0.8428571428571429,0.8214285714285714,0.95,0.8785714285714286,0.95,0.8571428571428571,0.8714285714285714,0.95,0.85,0.9285714285714286,0.9214285714285714,0.8928571428571429,0.95,0.8714285714285714,0.9071428571428571,0.8785714285714286,0.8,0.95,0.8285714285714286,0.8571428571428571,0.95,0.8357142857142857,0.9571428571428572,0.8214285714285714,0.8642857142857143,0.95,0.7785714285714286,0.9928571428571429,0.8,0.8928571428571429,0.9357142857142857,0.8642857142857143,0.9571428571428572,0.8571428571428571,0.8642857142857143,0.9357142857142857,0.7714285714285715,0.95,0.8214285714285714,0.8714285714285714,0.9357142857142857,0.8571428571428571,0.9428571428571428,0.8714285714285714,0.8357142857142857,0.95,0.7857142857142857,0.8428571428571429,0.9285714285714286,0.8714285714285714,0.9571428571428572,0.8285714285714286,0.8714285714285714,0.9428571428571428,0.8714285714285714,0.9357142857142857,0.8,0.8357142857142857,0.9357142857142857,0.8571428571428571,0.9642857142857143,0.8285714285714286,0.8214285714285714,0.9571428571428572,0.8428571428571429,0.95,0.8571428571428571,0.8071428571428572,0.9642857142857143,0.8571428571428571,0.9428571428571428,0.8857142857142857,0.8642857142857143,0.9714285714285714,0.8571428571428571,0.8928571428571429,0.9071428571428571,0.7857142857142857,0.9714285714285714,0.8285714285714286,0.8214285714285714,0.9571428571428572,0.8285714285714286,0.95,0.8428571428571429,0.8428571428571429,0.95,0.7214285714285714,0.9928571428571429,0.7857142857142857,0.8857142857142857,0.95,0.8642857142857143,0.95,0.85,0.8642857142857143,0.9357142857142857,0.8,0.9571428571428572,0.8142857142857143,0.8571428571428571,0.95,0.8285714285714286,0.9,0.8928571428571429,0.8071428571428572,0.9571428571428572,0.7857142857142857,0.8428571428571429,0.9285714285714286,0.8571428571428571,0.9428571428571428,0.8285714285714286,0.7928571428571428,0.9428571428571428,0.8142857142857143,0.95,0.7785714285714286,0.8071428571428572,0.95,0.8285714285714286,0.9285714285714286,0.8142857142857143,0.7785714285714286,0.9571428571428572,0.7857142857142857,0.9214285714285714,0.7928571428571428,0.7857142857142857,0.9571428571428572,0.8214285714285714,0.8785714285714286,0.8714285714285714,0.8071428571428572,0.95,0.8071428571428572,0.8571428571428571,0.9,0.8,0.9571428571428572,0.8142857142857143,0.7642857142857142,0.9571428571428572,0.7642857142857142,0.9571428571428572,0.7785714285714286,0.6928571428571428,0.95,0.75,0.9642857142857143,0.7928571428571428,0.8142857142857143,0.95,0.7571428571428571,0.9428571428571428,0.8,0.7142857142857143,0.9428571428571428,0.7428571428571429,0.9357142857142857,0.8428571428571429,0.8214285714285714,0.9428571428571428,0.7785714285714286,0.8571428571428571,0.8857142857142857,0.7428571428571429,0.9571428571428572,0.7285714285714285,0.7071428571428572,0.4928571428571429,0.7357142857142858,0.7714285714285715,0.7857142857142857,0.8071428571428572,0.8285714285714286,0.8285714285714286,0.7857142857142857,0.7857142857142857,0.7714285714285715,0.7714285714285715,0.7928571428571428,0.8214285714285714,0.8214285714285714,0.8071428571428572,0.8071428571428572,0.7714285714285715,0.7071428571428572,0.7142857142857143,0.7285714285714285,0.7428571428571429,0.7,0.75,0.7285714285714285,0.7428571428571429,0.7428571428571429,0.7642857142857142,0.7,0.7357142857142858,0.7285714285714285,0.7214285714285714,0.7071428571428572,0.7714285714285715,0.8071428571428572,0.7785714285714286,0.7571428571428571,0.7642857142857142,0.7571428571428571,0.7571428571428571,0.7,0.75,0.7071428571428572,0.8,0.7785714285714286,0.7428571428571429,0.7571428571428571,0.7571428571428571,0.6714285714285714,0.7928571428571428,0.7642857142857142,0.8,0.7214285714285714,0.8,0.7857142857142857,0.8214285714285714,0.7857142857142857,0.8142857142857143,0.75,0.7571428571428571,0.7428571428571429,0.7642857142857142,0.75,0.7571428571428571,0.7857142857142857,0.8142857142857143,0.8,0.7928571428571428,0.7571428571428571,0.7357142857142858,0.7214285714285714,0.7571428571428571,0.7428571428571429,0.75,0.7785714285714286,0.7928571428571428,0.7642857142857142,0.7714285714285715,0.7642857142857142,0.7642857142857142,0.7428571428571429,0.7142857142857143,0.7357142857142858,0.7428571428571429,0.7571428571428571,0.7857142857142857,0.75,0.7785714285714286,0.7642857142857142,0.7,0.8214285714285714,0.7714285714285715,0.7857142857142857,0.7357142857142858,0.8357142857142857,0.8428571428571429,0.8428571428571429,0.8142857142857143,0.8285714285714286,0.7142857142857143,0.7857142857142857,0.7428571428571429,0.8071428571428572,0.6857142857142857,0.8,0.7714285714285715,0.8071428571428572,0.7714285714285715,0.7785714285714286,0.7285714285714285,0.7714285714285715,0.7357142857142858,0.7785714285714286,0.7142857142857143,0.8357142857142857,0.8214285714285714,0.8357142857142857,0.7785714285714286,0.8428571428571429,0.7714285714285715,0.8,0.7285714285714285,0.7857142857142857,0.7214285714285714,0.7785714285714286,0.8071428571428572,0.7785714285714286,0.7642857142857142,0.7785714285714286,0.6785714285714286,0.7214285714285714,0.7571428571428571,0.7785714285714286,0.75,0.7857142857142857,0.8214285714285714,0.8428571428571429,0.8214285714285714,0.8285714285714286,0.8071428571428572,0.7357142857142858,0.7785714285714286,0.7714285714285715,0.7857142857142857,0.7071428571428572,0.7785714285714286,0.8214285714285714,0.8142857142857143,0.8,0.7714285714285715,0.6928571428571428,0.8,0.7642857142857142,0.7857142857142857,0.7142857142857143,0.8428571428571429,0.8071428571428572,0.8142857142857143,0.7928571428571428,0.8214285714285714,0.7571428571428571,0.8,0.6785714285714286,0.8071428571428572,0.6857142857142857,0.8071428571428572,0.7571428571428571,0.7857142857142857,0.75,0.7857142857142857,0.7285714285714285,0.7785714285714286,0.7428571428571429,0.7857142857142857,0.8,0.8142857142857143,0.8142857142857143,0.85,0.8357142857142857,0.8714285714285714,0.7642857142857142,0.7857142857142857,0.7571428571428571,0.7857142857142857,0.8357142857142857,0.7928571428571428,0.75,0.8071428571428572,0.7714285714285715,0.85,0.7714285714285715,0.7857142857142857,0.7571428571428571,0.7785714285714286,0.8357142857142857,0.8142857142857143,0.8214285714285714,0.8428571428571429,0.8071428571428572,0.8642857142857143,0.7928571428571428,0.7642857142857142,0.7714285714285715,0.7357142857142858,0.85,0.7857142857142857,0.7642857142857142,0.7785714285714286,0.7714285714285715,0.8214285714285714,0.7642857142857142,0.6285714285714286,0.8071428571428572,0.7714285714285715,0.8428571428571429,0.7857142857142857,0.8285714285714286,0.8214285714285714,0.8357142857142857,0.8642857142857143,0.8357142857142857,0.7428571428571429,0.8,0.7428571428571429,0.8357142857142857,0.7857142857142857,0.7928571428571428,0.8,0.8285714285714286,0.85,0.8285714285714286,0.7714285714285715,0.8,0.75,0.8,0.8142857142857143,0.8285714285714286,0.8071428571428572,0.85,0.7714285714285715,0.8714285714285714,0.7714285714285715,0.7928571428571428,0.7428571428571429,0.7642857142857142,0.8285714285714286,0.7928571428571428,0.7714285714285715,0.7928571428571428,0.7642857142857142,0.8571428571428571,0.7785714285714286,0.75,0.7857142857142857,0.7714285714285715,0.8142857142857143,0.7928571428571428,0.75,0.7642857142857142,0.7928571428571428,0.8142857142857143,0.8,0.75,0.7571428571428571,0.7857142857142857,0.8142857142857143,0.7928571428571428,0.7714285714285715,0.7357142857142858,0.7857142857142857,0.8071428571428572,0.8142857142857143,0.7642857142857142,0.7642857142857142,0.7928571428571428,0.8214285714285714,0.8,0.7785714285714286,0.7642857142857142,0.8071428571428572,0.8142857142857143,0.8,0.8071428571428572,0.7785714285714286,0.8,0.8214285714285714,0.8285714285714286,0.8285714285714286,0.7857142857142857,0.8071428571428572,0.8142857142857143,0.8928571428571429,0.8214285714285714,0.7928571428571428,0.8285714285714286,0.8428571428571429,0.8714285714285714,0.8285714285714286,0.7714285714285715,0.85,0.8,0.8785714285714286,0.8214285714285714,0.8,0.8285714285714286,0.8071428571428572,0.8642857142857143,0.8285714285714286,0.8214285714285714,0.85,0.8142857142857143,0.8785714285714286,0.8071428571428572,0.85,0.8285714285714286,0.8357142857142857,0.8642857142857143,0.8285714285714286,0.8428571428571429,0.8142857142857143,0.8571428571428571,0.8714285714285714,0.8714285714285714,0.8642857142857143,0.8142857142857143,0.8642857142857143,0.8785714285714286,0.8642857142857143,0.8285714285714286,0.8785714285714286,0.8071428571428572,0.8857142857142857,0.8214285714285714,0.7285714285714285,0.9857142857142858,0.8571428571428571,0.9714285714285714,0.7928571428571428,0.85,0.95,0.8285714285714286,0.95,0.8285714285714286,0.8785714285714286,0.9642857142857143,0.8357142857142857,0.9571428571428572,0.8428571428571429,0.8214285714285714,0.9571428571428572,0.8357142857142857,0.9285714285714286,0.8428571428571429,0.8785714285714286,0.9428571428571428,0.8642857142857143,0.9357142857142857,0.8642857142857143,0.8357142857142857,0.9642857142857143,0.8357142857142857,0.8428571428571429,0.9357142857142857,0.8857142857142857,0.95,0.8571428571428571,0.8642857142857143,0.9357142857142857,0.8428571428571429,0.9571428571428572,0.8428571428571429,0.8571428571428571,0.9642857142857143,0.8785714285714286,0.9571428571428572,0.85,0.8714285714285714,0.9428571428571428,0.8,0.9428571428571428,0.8642857142857143,0.8714285714285714,0.9428571428571428,0.8714285714285714,0.9428571428571428,0.9,0.8428571428571429,0.9642857142857143,0.8071428571428572,0.8785714285714286,0.9,0.8571428571428571,0.9428571428571428,0.8857142857142857,0.8714285714285714,0.9428571428571428,0.85,0.9714285714285714,0.7857142857142857,0.8428571428571429,0.95,0.8785714285714286,0.9642857142857143,0.8285714285714286,0.8785714285714286,0.9214285714285714,0.8642857142857143,0.9714285714285714,0.7857142857142857,0.8857142857142857,0.95,0.8928571428571429,0.9285714285714286,0.8642857142857143,0.8714285714285714,0.9571428571428572,0.8785714285714286,0.9428571428571428,0.8857142857142857,0.8142857142857143,0.9428571428571428,0.8428571428571429,0.8214285714285714,0.9428571428571428,0.8642857142857143,0.9642857142857143,0.8571428571428571,0.8928571428571429,0.9428571428571428,0.8571428571428571,0.9642857142857143,0.8785714285714286,0.8642857142857143,0.9571428571428572,0.8642857142857143,0.9642857142857143,0.8571428571428571,0.8714285714285714,0.95,0.7928571428571428,0.9642857142857143,0.85,0.8142857142857143,0.95,0.8642857142857143,0.9214285714285714,0.8857142857142857,0.8571428571428571,0.9571428571428572,0.8214285714285714,0.8785714285714286,0.9428571428571428,0.85,0.9642857142857143,0.85,0.8785714285714286,0.9285714285714286,0.85,0.9714285714285714,0.7857142857142857,0.8357142857142857,0.95,0.8785714285714286,0.9642857142857143,0.8214285714285714,0.8785714285714286,0.9642857142857143,0.85,0.9785714285714285,0.8142857142857143,0.8642857142857143,0.9571428571428572,0.8714285714285714,0.9428571428571428,0.85,0.8428571428571429,0.9428571428571428,0.8714285714285714,0.9214285714285714,0.8785714285714286,0.85,0.9642857142857143,0.8428571428571429,0.85,0.9571428571428572,0.8857142857142857,0.9428571428571428,0.8714285714285714,0.8714285714285714,0.9285714285714286,0.8571428571428571,0.95,0.8642857142857143,0.8785714285714286,0.95,0.8857142857142857,0.95,0.8357142857142857,0.8071428571428572,0.9357142857142857,0.8357142857142857,0.95,0.8357142857142857,0.7928571428571428,0.9428571428571428,0.8428571428571429,0.9285714285714286,0.8928571428571429,0.7928571428571428,0.95,0.8142857142857143,0.8857142857142857,0.9357142857142857,0.85,0.9357142857142857,0.8428571428571429,0.8714285714285714,0.9285714285714286,0.7357142857142858,0.9714285714285714,0.7857142857142857,0.8571428571428571,0.95,0.8142857142857143,0.9285714285714286,0.8428571428571429,0.85,0.95,0.7928571428571428,0.9571428571428572,0.7785714285714286,0.9214285714285714,0.9357142857142857,0.8571428571428571,0.9,0.8857142857142857,0.8642857142857143,0.9428571428571428,0.7928571428571428,0.9,0.8714285714285714,0.8928571428571429,0.9571428571428572,0.8642857142857143,0.8428571428571429,0.9285714285714286,0.8714285714285714,0.9642857142857143,0.8214285714285714,0.8285714285714286,0.9285714285714286,0.8214285714285714,0.95,0.8428571428571429,0.85,0.9357142857142857,0.8714285714285714,0.9571428571428572,0.8285714285714286,0.7928571428571428,0.9428571428571428,0.8357142857142857,0.95,0.8428571428571429,0.7928571428571428,0.9428571428571428,0.8285714285714286,0.9142857142857143,0.8928571428571429,0.8,0.9428571428571428,0.8357142857142857,0.8714285714285714,0.9285714285714286,0.85,0.95,0.8285714285714286,0.8785714285714286,0.9285714285714286,0.8,0.9714285714285714,0.8142857142857143,0.8785714285714286,0.9428571428571428,0.8285714285714286,0.9285714285714286,0.8214285714285714,0.8142857142857143,0.9571428571428572,0.7857142857142857,0.9642857142857143,0.7928571428571428,0.8571428571428571,0.95,0.8071428571428572,0.9,0.8642857142857143,0.8,0.9357142857142857,0.7785714285714286,0.8857142857142857,0.9,0.8214285714285714,0.9571428571428572,0.7857142857142857,0.7857142857142857,0.9571428571428572,0.7785714285714286,0.9428571428571428,0.7571428571428571,0.7928571428571428,0.9357142857142857,0.8214285714285714,0.9428571428571428,0.7785714285714286,0.7857142857142857,0.9571428571428572,0.7928571428571428,0.95,0.7785714285714286,0.8285714285714286,0.9428571428571428,0.8214285714285714,0.9071428571428571,0.8285714285714286,0.7571428571428571,0.95,0.7714285714285715,0.8357142857142857,0.8785714285714286,0.8071428571428572,0.9571428571428572,0.8071428571428572,0.7714285714285715,0.9571428571428572,0.75,0.9428571428571428,0.7642857142857142,0.6857142857142857,0.9428571428571428,0.7642857142857142,0.9785714285714285,0.7857142857142857,0.7928571428571428,0.9642857142857143,0.7571428571428571,0.9357142857142857,0.8,0.75,0.9571428571428572,0.75,0.8,0.6785714285714286,0.8428571428571429,0.7714285714285715,0.8,0.8071428571428572,0.8285714285714286,0.7928571428571428,0.9214285714285714,0.7642857142857142,0.8785714285714286,0.9071428571428571,0.8,0.9214285714285714,0.7357142857142858,0.5714285714285714,0.9642857142857143,0.6071428571428571,0.9,0.75,0.7857142857142857,0.95,0.8214285714285714,0.8928571428571429,0.7642857142857142,0.55,0.95,0.6642857142857143,0.8785714285714286,0.7857142857142857,0.8357142857142857,0.9571428571428572,0.8214285714285714,0.85,0.8357142857142857,0.5714285714285714,0.9214285714285714,0.7142857142857143,0.7571428571428571,0.8785714285714286,0.8142857142857143,0.9642857142857143,0.8071428571428572,0.65,0.9571428571428572,0.6928571428571428,0.9642857142857143,0.7428571428571429,0.7714285714285715,0.9357142857142857,0.7642857142857142,0.9785714285714285,0.7857142857142857,0.7357142857142858,0.9428571428571428,0.6642857142857143,0.95,0.7714285714285715,0.6071428571428571,0.9357142857142857,0.6785714285714286,0.95,0.8,0.7857142857142857,0.9214285714285714,0.7214285714285714,0.8785714285714286,0.8571428571428571,0.5714285714285714,0.9285714285714286,0.75,0.8928571428571429,0.9214285714285714,0.8071428571428572,0.9071428571428571,0.75,0.4642857142857143,0.95,0.75,0.9071428571428571,0.75,0.85,0.95,0.8142857142857143,0.9,0.8214285714285714,0.7642857142857142,0.9428571428571428,0.6642857142857143,0.95,0.7714285714285715,0.8428571428571429,0.95,0.8214285714285714,0.8571428571428571,0.8428571428571429,0.5714285714285714,0.9285714285714286,0.7,0.7428571428571429,0.8857142857142857,0.7357142857142858,0.9642857142857143,0.8142857142857143,0.6642857142857143,0.95,0.6357142857142857,0.9142857142857143,0.7357142857142858,0.5071428571428571,0.9571428571428572,0.7571428571428571,0.9857142857142858,0.7928571428571428,0.75,0.9428571428571428,0.6785714285714286,0.8714285714285714,0.7714285714285715,0.5357142857142857,0.9357142857142857,0.7642857142857142,0.9642857142857143,0.8142857142857143,0.8,0.9285714285714286,0.7,0.8928571428571429,0.8642857142857143,0.7928571428571428,0.9071428571428571,0.7714285714285715,0.85,0.9357142857142857,0.8,0.9214285714285714,0.7285714285714285,0.7142857142857143,0.9642857142857143,0.6214285714285714,0.8928571428571429,0.75,0.7857142857142857,0.9428571428571428,0.8142857142857143,0.8928571428571429,0.7642857142857142,0.6857142857142857,0.9642857142857143,0.6714285714285714,0.8714285714285714,0.7928571428571428,0.8357142857142857,0.95,0.8214285714285714,0.8428571428571429,0.8357142857142857,0.5928571428571429,0.9214285714285714,0.75,0.7571428571428571,0.9142857142857143,0.8071428571428572,0.9785714285714285,0.8071428571428572,0.6642857142857143,0.9571428571428572,0.6785714285714286,0.9642857142857143,0.7428571428571429,0.7642857142857142,0.9285714285714286,0.6428571428571429,0.8857142857142857,0.75,0.4714285714285714,0.95,0.6642857142857143,0.8642857142857143,0.7857142857142857,0.4857142857142857,0.9357142857142857,0.6928571428571428,0.8285714285714286,0.8,0.5357142857142857,0.9142857142857143,0.7214285714285714,0.7428571428571429,0.8857142857142857,0.5571428571428572,0.9214285714285714,0.7214285714285714,0.5142857142857142,0.95,0.5857142857142857,0.8928571428571429,0.7571428571428571,0.4142857142857143,0.95,0.6214285714285714,0.9,0.7428571428571429,0.4642857142857143,0.95,0.6357142857142857,0.8714285714285714,0.7785714285714286,0.4857142857142857,0.9357142857142857,0.6714285714285714,0.95,0.7857142857142857,0.5285714285714286,0.9285714285714286,0.7,0.7928571428571428,0.85,0.5642857142857143,0.9285714285714286,0.7071428571428572,0.6785714285714286,0.9071428571428571,0.5857142857142857,0.9,0.7357142857142858,0.40714285714285714,0.95,0.6285714285714286,0.9071428571428571,0.7357142857142858,0.44285714285714284,0.9571428571428572,0.6428571428571429,0.8785714285714286,0.7714285714285715,0.4714285714285714,0.9428571428571428,0.6714285714285714,0.8571428571428571,0.7785714285714286,0.5142857142857142,0.9285714285714286,0.7,0.8214285714285714,0.8285714285714286,0.5428571428571428,0.9285714285714286,0.7071428571428572,0.75,0.8785714285714286,0.5785714285714286,0.9,0.7428571428571429,0.4714285714285714,0.9571428571428572,0.5928571428571429,0.9142857142857143,0.7357142857142858,0.42857142857142855,0.9571428571428572,0.6214285714285714,0.8857142857142857,0.7642857142857142,0.45714285714285713,0.9428571428571428,0.65,0.8785714285714286,0.7571428571428571,0.5071428571428571,0.9428571428571428,0.6714285714285714,0.8428571428571429,0.8142857142857143,0.5285714285714286,0.9357142857142857,0.6928571428571428,0.7714285714285715,0.8642857142857143,0.5714285714285714,0.9142857142857143,0.7214285714285714,0.5928571428571429,0.9357142857142857,0.6,0.9142857142857143,0.7214285714285714,0.40714285714285714,0.9642857142857143,0.6142857142857143,0.8857142857142857,0.75,0.7642857142857142,0.9357142857142857,0.6571428571428571,0.8857142857142857,0.7571428571428571,0.4857142857142857,0.95,0.6714285714285714,0.8571428571428571,0.7928571428571428,0.5071428571428571,0.9357142857142857,0.6928571428571428,0.8071428571428572,0.8214285714285714,0.5428571428571428,0.9071428571428571,0.7285714285714285,0.7214285714285714,0.8857142857142857,0.5714285714285714,0.9214285714285714,0.7214285714285714,0.40714285714285714,0.9642857142857143,0.5928571428571429,0.8928571428571429,0.7642857142857142,0.4357142857142857,0.95,0.6285714285714286,0.9,0.7428571428571429,0.4714285714285714,0.8214285714285714,0.42857142857142855,0.2785714285714286,0.40714285714285714,0.8142857142857143,0.7928571428571428,0.4857142857142857,0.2857142857142857,0.2857142857142857,0.29285714285714287,0.3,0.3,0.3,0.3,0.29285714285714287,0.29285714285714287,0.2857142857142857,0.2785714285714286],
height: 200,
width: 800,
lines: 100,
reflection: 0.3,
waveWidth: 2
})
window.o = new WAVEFORM({
container: newDiv(),
waveform: [0.07857142857142857,0.35,0.6857142857142857,0.6428571428571429,0.5857142857142857,0.7785714285714286,0.4785714285714286,0.42142857142857143,0.4,0.3357142857142857,0.7714285714285715,0.5,0.42142857142857143,0.6571428571428571,0.6071428571428571,0.4642857142857143,0.40714285714285714,0.65,0.6785714285714286,0.65,0.42142857142857143,0.6,0.8,0.7571428571428571,0.7428571428571429,0.8142857142857143,0.6,0.5,0.4857142857142857,0.6857142857142857,0.6642857142857143,0.6,0.7714285714285715,0.5214285714285715,0.42857142857142855,0.40714285714285714,0.35,0.6214285714285714,0.6785714285714286,0.6214285714285714,0.6714285714285714,0.6785714285714286,0.45,0.35,0.6857142857142857,0.5357142857142857,0.7785714285714286,0.4357142857142857,0.5571428571428572,0.7071428571428572,0.8142857142857143,0.8214285714285714,0.5357142857142857,0.5785714285714286,0.6785714285714286,0.5714285714285714,0.8642857142857143,0.6785714285714286,0.5214285714285715,0.7428571428571429,0.5714285714285714,0.42857142857142855,0.39285714285714285,0.37857142857142856,0.6642857142857143,0.8071428571428572,0.7357142857142858,0.65,0.7357142857142858,0.4785714285714286,0.42142857142857143,0.65,0.39285714285714285,0.7642857142857142,0.5,0.4142857142857143,0.7285714285714285,0.7928571428571428,0.7571428571428571,0.75,0.7785714285714286,0.4714285714285714,0.5714285714285714,0.7571428571428571,0.7857142857142857,0.7071428571428572,0.7357142857142858,0.7,0.45714285714285713,0.42142857142857143,0.8642857142857143,0.7071428571428572,0.7714285714285715,0.5071428571428571,0.45,0.7357142857142858,0.5928571428571429,0.4857142857142857,0.45714285714285713,0.4785714285714286,0.7571428571428571,0.6714285714285714,0.5285714285714286,0.6142857142857143,0.5714285714285714,0.5357142857142857,0.5571428571428572,0.7928571428571428,0.7357142857142858,0.7,0.8214285714285714,0.8214285714285714,0.8857142857142857,0.9,0.7928571428571428,0.45714285714285713,0.5785714285714286,0.7,0.7357142857142858,0.7714285714285715,0.4785714285714286,0.42142857142857143,0.38571428571428573,0.5642857142857143,0.7928571428571428,0.7714285714285715,0.6928571428571428,0.7571428571428571,0.55,0.55,0.6571428571428571,0.6928571428571428,0.8285714285714286,0.8357142857142857,0.5928571428571429,0.7857142857142857,0.6142857142857143,0.7857142857142857,0.6714285714285714,0.9928571428571429,0.7571428571428571,0.2785714285714286,0.8071428571428572,0.44285714285714284,0.5642857142857143,0.6214285714285714,0.8357142857142857,0.8357142857142857,0.5428571428571428,0.5928571428571429,0.7571428571428571,0.5214285714285715,0.4357142857142857,0.35,0.6928571428571428,0.7357142857142858,0.6357142857142857,0.42857142857142855,0.5642857142857143,0.7642857142857142,0.6642857142857143,0.9071428571428571,0.6642857142857143,0.85,0.8142857142857143,0.4642857142857143,0.8857142857142857,0.6285714285714286,0.4357142857142857,0.7714285714285715,0.5,0.42142857142857143,0.4,0.34285714285714286,0.7357142857142858,0.7928571428571428,0.7142857142857143,0.7071428571428572,0.6642857142857143,0.4642857142857143,0.42142857142857143,0.65,0.37142857142857144,0.7785714285714286,0.45714285714285713,0.5357142857142857,0.7642857142857142,0.7714285714285715,0.7571428571428571,0.8071428571428572,0.6785714285714286,0.4357142857142857,0.5785714285714286,0.8928571428571429,0.7785714285714286,0.7,0.7857142857142857,0.65,0.5142857142857142,0.45714285714285713,0.8928571428571429,0.7714285714285715,0.6785714285714286,0.5142857142857142,0.44285714285714284,0.4357142857142857,0.75,0.8285714285714286,0.85,0.8714285714285714,0.8214285714285714,0.6857142857142857,0.7357142857142858,0.8285714285714286,0.6571428571428571,0.85,0.7571428571428571,0.8357142857142857,0.7428571428571429,0.85,0.7214285714285714,0.7,0.6857142857142857,0.7071428571428572,0.75,0.6642857142857143,0.45714285714285713,0.45,0.6214285714285714,0.8428571428571429,0.8,0.6714285714285714,0.7428571428571429,0.4928571428571429,0.45,0.7214285714285714,0.7071428571428572,0.8285714285714286,0.7,0.75,0.7928571428571428,0.8571428571428571,0.8928571428571429,0.7928571428571428,0.9785714285714285,0.6357142857142857,0.9214285714285714,0.8785714285714286,0.9642857142857143,0.75,0.6571428571428571,0.7928571428571428,0.6857142857142857,0.5142857142857142,0.4785714285714286,0.4714285714285714,0.8714285714285714,0.7785714285714286,0.8857142857142857,0.85,0.9642857142857143,0.9285714285714286,0.95,0.8357142857142857,0.8357142857142857,0.7357142857142858,0.8785714285714286,0.7142857142857143,0.8428571428571429,0.8571428571428571,0.8357142857142857,0.8571428571428571,0.8214285714285714,0.8,0.7928571428571428,0.7857142857142857,0.6714285714285714,0.4,0.8428571428571429,0.7928571428571428,0.7357142857142858,0.6357142857142857,0.44285714285714284,0.8857142857142857,0.7785714285714286,0.5071428571428571,0.7785714285714286,0.8428571428571429,0.5785714285714286,0.4,0.7785714285714286,0.7214285714285714,0.6071428571428571,0.8357142857142857,0.8285714285714286,0.5071428571428571,0.6571428571428571,0.9285714285714286,0.8571428571428571,0.6142857142857143,0.9142857142857143,0.7642857142857142,0.9857142857142858,0.8571428571428571,0.65,0.8642857142857143,0.8214285714285714,0.9071428571428571,0.7285714285714285,0.6214285714285714,0.8428571428571429,0.7785714285714286,0.8714285714285714,0.8857142857142857,0.8071428571428572,0.7928571428571428,0.5928571428571429,0.7642857142857142,0.5071428571428571,0.7571428571428571,0.6928571428571428,0.5428571428571428,0.8571428571428571,0.8642857142857143,0.8357142857142857,0.7785714285714286,0.8571428571428571,0.8142857142857143,0.7285714285714285,0.9357142857142857,0.9214285714285714,0.4642857142857143,0.4714285714285714,0.4785714285714286,0.5357142857142857,0.6071428571428571,0.5357142857142857,0.5142857142857142,0.4857142857142857,0.5,0.4785714285714286,0.42857142857142855,0.4,0.36428571428571427,0.40714285714285714,0.40714285714285714,0.4857142857142857,0.4714285714285714,0.6142857142857143,0.5428571428571428,0.5142857142857142,0.5071428571428571,0.4857142857142857,0.5,0.4642857142857143,0.4142857142857143,0.4142857142857143,0.39285714285714285,0.4142857142857143,0.44285714285714284,0.4857142857142857,0.5071428571428571,0.6214285714285714,0.5214285714285715,0.5214285714285715,0.5,0.4928571428571429,0.4857142857142857,0.42857142857142855,0.40714285714285714,0.37857142857142856,0.39285714285714285,0.40714285714285714,0.4785714285714286,0.4714285714285714,0.5714285714285714,0.5857142857142857,0.5142857142857142,0.6071428571428571,0.5642857142857143,0.9142857142857143,0.9,0.4785714285714286,0.7857142857142857,0.9785714285714285,0.6714285714285714,0.6714285714285714,0.4928571428571429,0.5071428571428571,0.5214285714285715,0.8571428571428571,0.6357142857142857,0.5285714285714286,0.8357142857142857,0.7928571428571428,0.5,0.4714285714285714,0.44285714285714284,0.5071428571428571,0.5,0.5357142857142857,0.4714285714285714,0.4857142857142857,0.7357142857142858,0.7928571428571428,0.5785714285714286,0.6571428571428571,0.85,0.6857142857142857,0.4785714285714286,0.45,0.4785714285714286,0.5142857142857142,0.45714285714285713,0.4785714285714286,0.8714285714285714,0.8142857142857143,0.5928571428571429,0.6142857142857143,0.6214285714285714,0.8357142857142857,0.8142857142857143,0.6142857142857143,0.6142857142857143,0.6,0.7285714285714285,0.8,0.5428571428571428,0.5428571428571428,0.40714285714285714,0.45714285714285713,0.5071428571428571,0.9071428571428571,0.8357142857142857,0.5714285714285714,0.75,0.7142857142857143,0.8642857142857143,0.7928571428571428,0.8428571428571429,0.7857142857142857,0.7857142857142857,0.8285714285714286,0.39285714285714285,0.8214285714285714,0.7142857142857143,0.5928571428571429,0.4857142857142857,0.45,0.7428571428571429,0.6714285714285714,0.7714285714285715,0.8857142857142857,0.7357142857142858,0.95,0.9,0.7142857142857143,0.7642857142857142,0.9071428571428571,0.7857142857142857,0.42142857142857143,0.7428571428571429,0.8857142857142857,0.7428571428571429,0.7214285714285714,0.6642857142857143,0.8571428571428571,0.7,0.8785714285714286,0.9714285714285714,0.6428571428571429,0.5928571428571429,0.65,0.5642857142857143,0.6285714285714286,0.5714285714285714,0.7071428571428572,0.7071428571428572,0.8428571428571429,0.85,0.8,0.6714285714285714,0.11428571428571428,0.7428571428571429,0.7857142857142857,0.8642857142857143,0.7857142857142857,0.4642857142857143,0.45714285714285713,0.5928571428571429,0.6642857142857143,0.7142857142857143,0.6785714285714286,0.8428571428571429,0.5714285714285714,0.6214285714285714,0.6714285714285714,0.8642857142857143,0.8785714285714286,0.44285714285714284,0.7857142857142857,0.5357142857142857,0.5714285714285714,0.7642857142857142,0.7928571428571428,0.75,0.8857142857142857,0.7142857142857143,0.6357142857142857,0.8928571428571429,0.8571428571428571,0.6214285714285714,0.6,0.7428571428571429,0.6,0.7214285714285714,0.7071428571428572,0.7428571428571429,0.65,0.7785714285714286,0.8,0.6857142857142857,0.6214285714285714,0.7357142857142858,0.7428571428571429,0.36428571428571427,0.10714285714285714,0.7428571428571429,0.4857142857142857,0.37142857142857144,0.6428571428571429,0.7214285714285714,0.8,0.8714285714285714,0.85,0.6071428571428571,0.8428571428571429,0.7928571428571428,0.6,0.8214285714285714,0.8428571428571429,0.7857142857142857,0.5928571428571429,0.11428571428571428,0.8928571428571429,0.7571428571428571,0.25,0.8285714285714286,0.8142857142857143,0.7428571428571429,0.7285714285714285,0.7214285714285714,0.7142857142857143,0.7071428571428572,0.75,0.6428571428571429,0.5928571428571429,0.5785714285714286,0.5714285714285714,0.65,0.7071428571428572,0.7357142857142858,0.7571428571428571,0.7142857142857143,0.65,0.7857142857142857,0.8928571428571429,0.7928571428571428,0.6714285714285714,0.45714285714285713,0.8142857142857143,0.8857142857142857,0.6428571428571429,0.75,0.6642857142857143,0.3357142857142857,0.6,0.9142857142857143,0.8928571428571429,0.5714285714285714,0.6142857142857143,0.6714285714285714,0.5142857142857142,0.6785714285714286,0.5,0.7357142857142858,0.7071428571428572,0.8642857142857143,0.85,0.8,0.7071428571428572,0.6714285714285714,0.5357142857142857,0.5142857142857142,0.5142857142857142,0.5214285714285715,0.4785714285714286,0.4142857142857143,0.37857142857142856,0.29285714285714287,0.2857142857142857,0.3,0.29285714285714287,0.2857142857142857,0.11428571428571428,0.40714285714285714,0.4928571428571429,0.2714285714285714,0.4785714285714286,0.45714285714285713,0.6,0.6928571428571428,0.6428571428571429,0.6785714285714286,0.7214285714285714,0.8785714285714286,0.7357142857142858,0.5214285714285715,0.11428571428571428,0.7357142857142858,0.6785714285714286,0.9,0.7714285714285715,0.45714285714285713,0.7071428571428572,0.8714285714285714,0.7857142857142857,0.6785714285714286,0.6857142857142857,0.5642857142857143,0.11428571428571428,0.85,1,0.6571428571428571,0.6,0.6,0.65,0.38571428571428573,0.7071428571428572,0.6857142857142857,0.6928571428571428,0.8,0.6714285714285714,0.6714285714285714,0.55,0.6857142857142857,0.6428571428571429,0.5428571428571428,0.5785714285714286,0.5214285714285715,0.5,0.5214285714285715,0.6642857142857143,0.7071428571428572,0.75,0.7642857142857142,0.7142857142857143,0.8142857142857143,0.8142857142857143,0.7214285714285714,0.5428571428571428,0.7285714285714285,0.7142857142857143,0.6214285714285714,0.2785714285714286,0.3,0.2642857142857143,0.75,0.7928571428571428,0.8357142857142857,0.8642857142857143,0.8142857142857143,0.65,0.7928571428571428,0.7285714285714285,0.42857142857142855,0.7428571428571429,0.7142857142857143,0.5285714285714286,0.5857142857142857,0.8214285714285714,0.5428571428571428,0.11428571428571428,0.7857142857142857,0.6357142857142857,0.1357142857142857,0.7571428571428571,0.95,0.7428571428571429,0.5357142857142857,0.5071428571428571,0.6714285714285714,0.45,0.6857142857142857,0.5857142857142857,0.7142857142857143,0.8,0.7,0.9,0.8142857142857143,0.8714285714285714,0.5285714285714286,0.44285714285714284,0.8071428571428572,0.6857142857142857,0.7357142857142858,0.5642857142857143,0.6142857142857143,0.7357142857142858,0.5357142857142857,0.7714285714285715,0.8142857142857143,0.7,0.5428571428571428,0.11428571428571428,0.11428571428571428,0.11428571428571428,0.11428571428571428,0.7642857142857142,0.5714285714285714,0.5857142857142857,0.55,0.7285714285714285,0.6714285714285714,0.8642857142857143,0.7,0.12857142857142856,0.85,0.9,0.7071428571428572,0.6142857142857143,0.5857142857142857,0.75,0.6285714285714286,0.7214285714285714,0.75,0.6928571428571428,0.7857142857142857,0.6714285714285714,0.8,0.65,0.6,0.8142857142857143,0.5714285714285714,0.12142857142857143,0.6642857142857143,0.5928571428571429,0.4785714285714286,0.12857142857142856,0.7357142857142858,0.7142857142857143,0.85,0.9142857142857143,0.7142857142857143,0.8071428571428572,0.7428571428571429,0.7,0.5928571428571429,0.8357142857142857,0.8857142857142857,0.7285714285714285,0.25,0.7857142857142857,0.7928571428571428,0.6428571428571429,0.12142857142857143,0.7571428571428571,0.8785714285714286,0.8285714285714286,0.8,0.8357142857142857,0.8857142857142857,0.8142857142857143,0.7642857142857142,0.5642857142857143,0.8071428571428572,0.6857142857142857,0.12857142857142856,0.7142857142857143,0.8,0.7928571428571428,0.6928571428571428,0.12857142857142856,0.7214285714285714,0.6642857142857143,0.9,0.7928571428571428,0.4785714285714286,0.65,0.8642857142857143,0.85,0.5642857142857143,0.7357142857142858,0.7928571428571428,0.8071428571428572,0.8428571428571429,0.6285714285714286,0.7928571428571428,0.8571428571428571,0.7,0.6928571428571428,0.4142857142857143,0.6928571428571428,0.6642857142857143,0.7,0.7928571428571428,0.7214285714285714,0.8928571428571429,0.7357142857142858,0.6714285714285714,0.4857142857142857,0.4714285714285714,0.5214285714285715,0.5928571428571429,0.5928571428571429,0.5285714285714286,0.8214285714285714,0.7428571428571429,0.8071428571428572,0.8357142857142857,0.7714285714285715,0.7214285714285714,0.4785714285714286,0.5428571428571428,0.8357142857142857,0.6714285714285714,0.12857142857142856,0.7571428571428571,0.4857142857142857,0.8357142857142857,0.7642857142857142,0.6785714285714286,0.6785714285714286,0.7428571428571429,0.8714285714285714,0.6928571428571428,0.17142857142857143,0.6714285714285714,0.7,0.8642857142857143,0.8214285714285714,0.5928571428571429,0.5071428571428571,0.8142857142857143,0.9,0.5285714285714286,0.7571428571428571,0.8142857142857143,0.7357142857142858,0.6285714285714286,0.9142857142857143,0.9214285714285714,0.5714285714285714,0.6214285714285714,0.8071428571428572,0.5928571428571429,0.7142857142857143,0.9428571428571428,0.7928571428571428,0.5714285714285714,0.5857142857142857,0.85,0.5785714285714286,0.6071428571428571,0.7928571428571428,0.7214285714285714,0.6,0.55,0.65,0.7928571428571428,0.7785714285714286,0.6142857142857143,0.5214285714285715,0.5071428571428571,0.45,0.4642857142857143,0.4,0.39285714285714285,0.4142857142857143,0.4714285714285714,0.4642857142857143,0.6,0.5071428571428571,0.5357142857142857,0.5642857142857143,0.4785714285714286,0.4714285714285714,0.5071428571428571,0.6071428571428571,0.5785714285714286,0.45714285714285713,0.4642857142857143,0.44285714285714284,0.5,0.6357142857142857,0.5714285714285714,0.4,0.4857142857142857,0.5071428571428571,0.45714285714285713,0.45714285714285713,0.6142857142857143,0.5857142857142857,0.5071428571428571,0.4357142857142857,0.6285714285714286,0.65,0.5,0.5428571428571428,0.5428571428571428,0.5214285714285715,0.44285714285714284,0.4,0.4857142857142857,0.4928571428571429,0.5571428571428572,0.5714285714285714,0.5785714285714286,0.5857142857142857,0.5428571428571428,0.4857142857142857,0.45714285714285713,0.45,0.5,0.5357142857142857,0.5642857142857143,0.5357142857142857,0.5,0.5857142857142857,0.4857142857142857,0.55,0.5714285714285714,0.5857142857142857,0.5928571428571429,0.5857142857142857,0.5214285714285715,0.5642857142857143,0.6428571428571429,0.5,0.7285714285714285,0.6928571428571428,0.6928571428571428,0.7142857142857143,0.8,0.85,0.6714285714285714,0.5571428571428572,0.7285714285714285,0.7214285714285714,0.8857142857142857,0.8214285714285714,0.6285714285714286,0.6714285714285714,0.85,0.8928571428571429,0.5714285714285714,0.7857142857142857,0.6642857142857143,0.5785714285714286,0.7642857142857142,0.9571428571428572,0.7928571428571428,0.6357142857142857,0.65,0.7071428571428572,0.5428571428571428,0.7357142857142858,0.6785714285714286,0.7,0.8071428571428572,0.6714285714285714,0.65,0.5714285714285714,0.5857142857142857,0.5714285714285714,0.5714285714285714,0.4714285714285714,0.4928571428571429,0.5142857142857142,0.5214285714285715,0.5214285714285715,0.45714285714285713,0.6428571428571429,0.5285714285714286,0.6285714285714286,0.6285714285714286,0.5714285714285714,0.6214285714285714,0.6285714285714286,0.8357142857142857,0.8428571428571429,0.7928571428571428,0.5857142857142857,0.5285714285714286,0.5214285714285715,0.5785714285714286,0.8214285714285714,0.8428571428571429,0.75,0.4857142857142857,0.4357142857142857,0.6357142857142857,0.7071428571428572,0.8785714285714286,0.7714285714285715,0.6928571428571428,0.4857142857142857,0.8,0.8928571428571429,0.6571428571428571,0.7571428571428571,0.6642857142857143,0.4642857142857143,0.5714285714285714,0.9,0.9571428571428572,0.6,0.6142857142857143,0.6857142857142857,0.5142857142857142,0.6714285714285714,0.5571428571428572,0.7214285714285714,0.65,0.8285714285714286,0.8785714285714286,0.6357142857142857,0.45,0.6928571428571428,0.8714285714285714,0.8071428571428572,0.8285714285714286,0.7142857142857143,0.5857142857142857,0.6357142857142857,0.7357142857142858,0.6214285714285714,0.7714285714285715,0.6428571428571429,0.8571428571428571,0.6357142857142857,0.5785714285714286,0.5857142857142857,0.5571428571428572,0.4785714285714286,0.7285714285714285,0.7,0.5928571428571429,0.5785714285714286,0.7214285714285714,0.7285714285714285,0.85,0.7642857142857142,0.5642857142857143,0.8,0.8785714285714286,0.8357142857142857,0.6428571428571429,0.6214285714285714,0.75,0.6571428571428571,0.7428571428571429,0.7142857142857143,0.7428571428571429,0.7571428571428571,0.6857142857142857,0.8071428571428572,0.6928571428571428,0.6428571428571429,0.8142857142857143,0.6785714285714286,0.5857142857142857,0.5571428571428572,0.7642857142857142,0.5928571428571429,0.6142857142857143,0.7071428571428572,0.7214285714285714,0.7928571428571428,0.9214285714285714,0.8,0.7642857142857142,0.7714285714285715,0.7928571428571428,0.6071428571428571,0.8285714285714286,0.9214285714285714,0.7,0.7071428571428572,0.6071428571428571,0.4785714285714286,0.6714285714285714,0.6214285714285714,0.6357142857142857,0.5714285714285714,0.5928571428571429,0.5785714285714286,0.6571428571428571,0.6785714285714286,0.5785714285714286,0.65,0.55,0.5571428571428572,0.5571428571428572,0.5857142857142857,0.5857142857142857,0.5357142857142857,0.6214285714285714,0.5571428571428572,0.4714285714285714,0.5428571428571428,0.4928571428571429,0.6071428571428571,0.6142857142857143,0.4785714285714286,0.5142857142857142,0.5142857142857142,0.5428571428571428,0.5,0.6428571428571429,0.5857142857142857,0.4928571428571429,0.5857142857142857,0.6214285714285714,0.6,0.5071428571428571,0.5428571428571428,0.5857142857142857,0.45714285714285713,0.5428571428571428,0.55,0.5357142857142857,0.6071428571428571,0.5428571428571428,0.65,0.6928571428571428,0.7214285714285714,0.65,0.5857142857142857,0.5928571428571429,0.65,0.6214285714285714,0.5785714285714286,0.5857142857142857,0.5714285714285714,0.5857142857142857,0.5571428571428572,0.5714285714285714,0.6214285714285714,0.6428571428571429,0.6642857142857143,0.6285714285714286,0.6071428571428571,0.55,0.6357142857142857,0.6,0.6785714285714286,0.6785714285714286,0.7,0.6642857142857143,0.6928571428571428,0.7714285714285715,0.8928571428571429,0.7428571428571429,0.6,0.6285714285714286,0.7571428571428571,0.8214285714285714,0.8428571428571429,0.7571428571428571,0.6357142857142857,0.7785714285714286,0.8928571428571429,0.7928571428571428,0.7714285714285715,0.6857142857142857,0.6285714285714286,0.6,0.9071428571428571,0.9714285714285714,0.6714285714285714,0.6571428571428571,0.6928571428571428,0.5785714285714286,0.6571428571428571,0.6928571428571428,0.7214285714285714,0.6928571428571428,0.8428571428571429,0.6642857142857143,0.5928571428571429,0.6142857142857143,0.6214285714285714,0.6071428571428571,0.6,0.5642857142857143,0.5642857142857143,0.5428571428571428,0.5285714285714286,0.5142857142857142,0.5285714285714286,0.5714285714285714,0.5214285714285715,0.6071428571428571,0.6285714285714286,0.6642857142857143,0.6785714285714286,0.7142857142857143,0.7571428571428571,0.6857142857142857,0.8285714285714286,0.7142857142857143,0.7214285714285714,0.7928571428571428,0.7642857142857142,0.7714285714285715,0.8714285714285714,0.8071428571428572,0.9142857142857143,0.9571428571428572,0.7857142857142857,0.7142857142857143,0.8428571428571429,0.8857142857142857,0.6357142857142857,0.7071428571428572,0.8642857142857143,0.8642857142857143,0.6,0.8071428571428572,0.6714285714285714,0.6,0.8214285714285714,0.9714285714285714,0.7142857142857143,0.6357142857142857,0.6142857142857143,0.7214285714285714,0.5714285714285714,0.7142857142857143,0.6785714285714286,0.7214285714285714,0.6071428571428571,0.5571428571428572,0.8357142857142857,0.8142857142857143,0.8214285714285714,0.7285714285714285,0.8071428571428572,0.8142857142857143,0.8285714285714286,0.6714285714285714,0.6571428571428571,0.6357142857142857,0.7571428571428571,0.6357142857142857,0.7928571428571428,0.8428571428571429,0.6714285714285714,0.6142857142857143,0.5928571428571429,0.6,0.5714285714285714,0.5428571428571428,0.8071428571428572,0.6214285714285714,0.6,0.6928571428571428,0.75,0.75,0.7071428571428572,0.8642857142857143,0.7714285714285715,0.9071428571428571,0.9071428571428571,0.7142857142857143,0.6785714285714286,0.6785714285714286,0.7714285714285715,0.7285714285714285,0.75,0.7571428571428571,0.7214285714285714,0.8214285714285714,0.7928571428571428,0.7285714285714285,0.6785714285714286,0.6785714285714286,0.8642857142857143,0.6642857142857143,0.6357142857142857,0.7642857142857142,0.6214285714285714,0.6571428571428571,0.6428571428571429,0.7785714285714286,0.7,0.8642857142857143,0.9,0.7214285714285714,0.8428571428571429,0.8,0.6571428571428571,0.7714285714285715,0.7571428571428571,0.9,0.7142857142857143,0.55,0.8642857142857143,0.7642857142857142,0.6285714285714286,0.5285714285714286,0.6,0.5928571428571429,0.6071428571428571,0.5642857142857143,0.5285714285714286,0.5214285714285715,0.7071428571428572,0.7214285714285714,0.5357142857142857,0.5428571428571428,0.75,0.6714285714285714,0.75,0.8928571428571429,0.7357142857142858,0.5785714285714286,0.4142857142857143,0.7571428571428571,0.7428571428571429,0.9,0.7714285714285715,0.4785714285714286,0.7071428571428572,0.85,0.7928571428571428,0.7,0.6928571428571428,0.5642857142857143,0.40714285714285714,0.8428571428571429,0.9214285714285714,0.6428571428571429,0.5928571428571429,0.6357142857142857,0.65,0.4714285714285714,0.7214285714285714,0.7071428571428572,0.6928571428571428,0.8142857142857143,0.7571428571428571,0.9142857142857143,0.8357142857142857,0.8357142857142857,0.7928571428571428,0.7571428571428571,0.7214285714285714,0.8285714285714286,0.7214285714285714,0.7928571428571428,0.6857142857142857,0.8,0.7714285714285715,0.7714285714285715,0.7857142857142857,0.7357142857142858,0.7714285714285715,0.85,0.7428571428571429,0.6214285714285714,0.5285714285714286,0.8,0.5285714285714286,0.8571428571428571,0.7785714285714286,0.7142857142857143,0.7214285714285714,0.7928571428571428,0.8428571428571429,0.6928571428571428,0.5642857142857143,0.75,0.7142857142857143,0.8642857142857143,0.8285714285714286,0.6142857142857143,0.6714285714285714,0.8428571428571429,0.8857142857142857,0.5785714285714286,0.7857142857142857,0.8571428571428571,0.7642857142857142,0.7857142857142857,0.9357142857142857,0.8857142857142857,0.6714285714285714,0.6428571428571429,0.8785714285714286,0.7,0.8357142857142857,0.9642857142857143,0.7357142857142858,0.6428571428571429,0.5857142857142857,0.8642857142857143,0.7714285714285715,0.7642857142857142,0.6071428571428571,0.8214285714285714,0.75,0.8642857142857143,0.8642857142857143,0.75,0.7428571428571429,0.6428571428571429,0.6357142857142857,0.6642857142857143,0.75,0.7071428571428572,0.6071428571428571,0.5928571428571429,0.6214285714285714,0.5857142857142857,0.6571428571428571,0.6571428571428571,0.8142857142857143,0.7214285714285714,0.7071428571428572,0.7071428571428572,0.7928571428571428,0.7285714285714285,0.7857142857142857,0.8928571428571429,0.7571428571428571,0.9714285714285714,0.8857142857142857,0.7285714285714285,0.7857142857142857,0.9071428571428571,0.75,0.6285714285714286,0.8071428571428572,0.8928571428571429,0.7357142857142858,0.7785714285714286,0.6928571428571428,0.6071428571428571,0.65,0.9071428571428571,0.9142857142857143,0.65,0.65,0.7071428571428572,0.6071428571428571,0.6928571428571428,0.6,0.7357142857142858,0.6928571428571428,0.9,0.9428571428571428,0.7571428571428571,0.6928571428571428,0.6428571428571429,0.8142857142857143,0.75,0.7785714285714286,0.7571428571428571,0.6428571428571429,0.6642857142857143,0.75,0.65,0.7571428571428571,0.6642857142857143,0.8571428571428571,0.65,0.5714285714285714,0.5928571428571429,0.5642857142857143,0.4928571428571429,0.6714285714285714,0.75,0.5714285714285714,0.5928571428571429,0.8142857142857143,0.5928571428571429,0.7571428571428571,0.8714285714285714,0.7714285714285715,0.85,0.8642857142857143,0.8214285714285714,0.6714285714285714,0.6428571428571429,0.7571428571428571,0.6642857142857143,0.7285714285714285,0.7,0.7428571428571429,0.7285714285714285,0.7357142857142858,0.8,0.7071428571428572,0.6785714285714286,0.8214285714285714,0.6928571428571428,0.5857142857142857,0.5642857142857143,0.7571428571428571,0.5928571428571429,0.6214285714285714,0.7071428571428572,0.7285714285714285,0.7714285714285715,0.9142857142857143,0.7857142857142857,0.7285714285714285,0.8357142857142857,0.7857142857142857,0.6142857142857143,0.8214285714285714,0.8571428571428571,0.7714285714285715,0.7071428571428572,0.5642857142857143,0.6142857142857143,0.5928571428571429,0.5357142857142857,0.5642857142857143,0.5714285714285714,0.6,0.6785714285714286,0.7,0.5285714285714286,0.5214285714285715,0.7857142857142857,0.5285714285714286,0.55,0.6714285714285714,0.6928571428571428,0.7,0.75,0.8642857142857143,0.6642857142857143,0.4642857142857143,0.6642857142857143,0.6857142857142857,0.8642857142857143,0.8285714285714286,0.5642857142857143,0.5357142857142857,0.8214285714285714,0.8928571428571429,0.5428571428571428,0.7571428571428571,0.65,0.42857142857142855,0.6642857142857143,0.9357142857142857,0.8214285714285714,0.5428571428571428,0.5857142857142857,0.6785714285714286,0.4714285714285714,0.6785714285714286,0.5357142857142857,0.7214285714285714,0.7857142857142857,0.7142857142857143,0.8357142857142857,0.8857142857142857,0.85,0.8357142857142857,0.8,0.7785714285714286,0.75,0.7928571428571428,0.7142857142857143,0.7785714285714286,0.7714285714285715,0.7357142857142858,0.7857142857142857,0.7071428571428572,0.6928571428571428,0.7285714285714285,0.6642857142857143,0.7928571428571428,0.6714285714285714,0.5214285714285715,0.7857142857142857,0.7785714285714286,0.7785714285714286,0.75,0.7214285714285714,0.7,0.7428571428571429,0.8071428571428572,0.7642857142857142,0.6857142857142857,0.6928571428571428,0.7,0.6571428571428571,0.6285714285714286,0.8,0.6857142857142857,0.7214285714285714,0.7214285714285714,0.6928571428571428,0.7928571428571428,0.7214285714285714,0.7642857142857142,0.7285714285714285,0.7571428571428571,0.7571428571428571,0.7571428571428571,0.7285714285714285,0.7357142857142858,0.7357142857142858,0.7214285714285714,0.7214285714285714,0.7214285714285714,0.7428571428571429,0.6714285714285714,0.6714285714285714,0.6428571428571429,0.6428571428571429,0.6357142857142857,0.6428571428571429,0.6285714285714286,0.5928571428571429,0.7857142857142857,0.6,0.6071428571428571,0.6714285714285714,0.9214285714285714,0.8571428571428571,0.5714285714285714,0.6285714285714286,0.5857142857142857,0.6,0.7142857142857143,0.5928571428571429,0.5214285714285715,0.5071428571428571,0.6571428571428571,0.4857142857142857,0.5071428571428571,0.5214285714285715,0.5071428571428571,0.5428571428571428,0.5785714285714286,0.5928571428571429,0.6214285714285714,0.6214285714285714,0.5142857142857142,0.42857142857142855,0.6285714285714286,0.7285714285714285,0.5357142857142857,0.6357142857142857,0.8571428571428571,0.8714285714285714,0.42142857142857143,0.7785714285714286,0.6285714285714286,0.4142857142857143,0.7714285714285715,0.9642857142857143,0.7571428571428571,0.7571428571428571,0.6,0.6,0.6857142857142857,0.4642857142857143,0.7,0.65,0.6928571428571428,0.8071428571428572,0.65,0.9071428571428571,0.7857142857142857,0.8714285714285714,0.5571428571428572,0.4714285714285714,0.8,0.7785714285714286,0.85,0.8214285714285714,0.7857142857142857,0.8,0.6142857142857143,0.7857142857142857,0.8,0.7,0.8285714285714286,0.7,0.8857142857142857,0.5357142857142857,0.8214285714285714,0.7857142857142857,0.6,0.5928571428571429,0.6142857142857143,0.7428571428571429,0.6857142857142857,0.5785714285714286,0.8428571428571429,0.8,0.9,0.8714285714285714,0.6571428571428571,0.6214285714285714,0.5285714285714286,0.75,0.6928571428571428,0.7285714285714285,0.75,0.6928571428571428,0.7571428571428571,0.7857142857142857,0.7571428571428571,0.7285714285714285,0.5714285714285714,0.8785714285714286,0.8785714285714286,0.6642857142857143,0.6857142857142857,0.4642857142857143,0.42142857142857143,0.45,0.4642857142857143,0.42857142857142855,0.4357142857142857,0.45,0.45,0.4357142857142857,0.42857142857142855,0.42857142857142855,0.4142857142857143,0.42857142857142855,0.42857142857142855,0.4,0.39285714285714285,0.40714285714285714,0.37857142857142856,0.38571428571428573,0.36428571428571427,0.35714285714285715,0.35,0.35,0.35,0.34285714285714286,0.3357142857142857,0.3357142857142857,0.32142857142857145,0.3142857142857143,0.30714285714285716,0.3,0.3,0.29285714285714287,0.2857142857142857,0.2857142857142857,0.2714285714285714,0.2714285714285714,0.2714285714285714,0.2642857142857143,0.2571428571428571,0.2571428571428571,0.25,0.24285714285714285,0.2357142857142857,0.2357142857142857,0.22857142857142856,0.22857142857142856,0.22142857142857142,0.21428571428571427,0.22142857142857142,0.20714285714285716,0.2,0.20714285714285716,0.20714285714285716,0.19285714285714287,0.17857142857142858,0.18571428571428572,0.17857142857142858,0.17857142857142858,0.17857142857142858,0.17857142857142858,0.19285714285714287,0.17142857142857143,0.16428571428571428,0.15714285714285714,0.17142857142857143,0.16428571428571428,0.16428571428571428,0.14285714285714285,0.1357142857142857,0.12857142857142856],
height: 200,
width: 800,
lines: 100,
reflection: 0.3,
waveWidth: 2
})
window.u.init()
window.a.init()
window.o.init()
var derp = document.querySelectorAll('canvas')
for(var i=0; i<derp.length; i++) {
derp[i].style.border = 'solid 1px #d1d1d1'
}
datGui()
}
function newDiv() {
div = document.createElement('div')
document.body.appendChild(div)
return div
}
var gui_ = function() {
this.width = 800;
this.heigth = 200;
this.gutterWidth = 1;
this.waveWidth = 2;
this.reflection = 0;
}
function datGui() {
var text = new gui_()
var gui = new dat.GUI()
var width = gui.add(text, 'width', 0, 1800).step(10)
var height = gui.add(text, 'heigth', 0, 300).step(1)
var gutterWidth = gui.add(text, 'gutterWidth', 0, 10).step(1)
var waveWidth = gui.add(text, 'waveWidth', 0, 50).step(1)
var reflection = gui.add(text, 'reflection', 0, 0.5)
width.onChange(function(value) {
window.o.update({width: value})
})
height.onChange(function(value) {
window.o.update({height: value})
})
gutterWidth.onChange(function(value) {
window.o.update({gutterWidth: value})
})
waveWidth.onChange(function(value) {
window.o.update({waveWidth: value})
})
reflection.onChange(function(value) {
window.o.update({reflection: value})
})
}
},{"dat-gui":3}],2:[function(require,module,exports){
var WAVEFORM = function(options) {
if(!options.container) {
throw new Error('waveform needs a container')
}
this.container = options.container
this.height = options.height || 100
this.width = options.width || 300
this.waveform = options.waveform
this.reflection = options.reflection || 0
this.colors = {}
this.gutterWidth = options.gutterWidth || 1
this.waveWidth = options.waveWidth || 3
// unique ID
this.id = Math.floor((Math.random() * 10000) + 1);
// canvas node
this.canvas = document.createElement('canvas')
// active = highlighted section of track
this.active = -1
// slected = dimmer highlighted slections
this.selected = -1
// mouse dragging
this.isDragging = false
// is playing
this.isPlaying = false
// is in focus
this.isFocus = false
}
WAVEFORM.prototype.init = function() {
//console.log(this.id + ' init')
// set ID
this.canvas.setAttribute('data-waveform-id', this.id)
// set canvas height and width
this.canvas.width = this.width
this.canvas.height = this.height
// get canvas context
this.ctx = this.canvas.getContext('2d')
// append canvas
this.container.appendChild(this.canvas)
//bind event handlers
this.bindEventHandlers()
//parse waveform
this.cache()
//render
this.draw()
}
WAVEFORM.prototype.destroy = function() {
//todo
}
WAVEFORM.prototype.bindEventHandlers = function() {
this.canvas.addEventListener('mousedown', this.onMouseDown.bind(this))
this.canvas.addEventListener('mousemove', this.onMouseOver.bind(this))
this.canvas.addEventListener('mouseout', this.onMouseOut.bind(this))
this.canvas.addEventListener('mouseup', this.onMouseUp.bind(this))
}
WAVEFORM.prototype.onMouseOut = function(e) {
this.selected = -1
this.draw()
}
WAVEFORM.prototype.onMouseUp = function(e) {
this.isDragging = false
}
WAVEFORM.prototype.onMouseOver = function(e) {
var x = e.x - this.canvas.offsetLeft
var y = e.y - this.canvas.offsetTop
var waveClicked = Math.round( x / (this.waveWidth + this.gutterWidth) )
if(this.isDragging === true) {
this.selected = -1
this.active = waveClicked
}
else {
this.selected = waveClicked
}
this.draw()
}
WAVEFORM.prototype.onMouseDown = function(e) {
this.isDragging = true
var x = e.x - this.canvas.offsetLeft
var y = e.y - this.canvas.offsetTop
var waveClicked = Math.round( x / (this.waveWidth + this.gutterWidth) )
this.active = waveClicked
this.draw()
}
WAVEFORM.prototype.update = function(options) {
//console.log(this.id + ' update')
if(options) {
if(options.gutterWidth) {
this.gutterWidth = options.gutterWidth
}
if(options.waveWidth) {
this.waveWidth = options.waveWidth
}
if(options.width) {
this.width = options.width
this.canvas.width = this.width
}
if(options.height) {
this.height = options.height
this.canvas.height = this.height
}
if(options.reflection == 0 || options.reflection) {
this.reflection = options.reflection
}
// if 1 or more of these is actived, recalc and cache
if(options.gutterWidth || options.waveWidth || options.width || options.height || (options.reflection || options.reflection === 0)) {
this.cache()
}
}
//render
this.draw()
}
// 'experimental'
WAVEFORM.prototype.setGradient = function(name, colors) {
var gradient = this.ctx.createLinearGradient(0,this.waveOffset,0,0)
for(var i=0; i<colors.length; i+=2) {
gradient.addColorStop(colors[i+1], colors[i])
}
this.colors[name] = gradient
}
WAVEFORM.prototype.setColor = function(name, color) {
this.colors[name] = color
}
WAVEFORM.prototype.addColors = function() {
//default colors
this.setColor('wave-focus', '#333333')
this.setGradient('wave', ['#666666', 0, '#868686', 1])
this.setGradient('wave-active', ['#FF3300', 0, '#FF5100', 1])
this.setGradient('wave-selected', ['#993016', 0, '#973C15', 1])
this.setGradient('gutter', ['#6B6B6B', 0, '#c9c9c9', 1])
this.setGradient('gutter-active', ['#FF3704', 0, '#FF8F63', 1])
this.setGradient('gutter-selected', ['#9A371E', 0, '#CE9E8A', 1])
this.setColor('reflection', '#999999')
this.setColor('reflection-active', '#FFC0A0')
}
WAVEFORM.prototype.draw = function() {
//console.log(this.id + ' draw')
var gutter, xPos, yPos
xPos = 0
yPos = this.waveOffset
// clear canvas for redraw
this.ctx.clearRect ( 0 , 0 , this.width , this.height );
// itterate waves
for(var i=0; i<this.waves.length; i+=1) {
// wave
// if is hovered
if(this.selected > 0 && (this.selected < i && i < this.active) || (this.selected > i && i >= this.active)) {
this.ctx.fillStyle = this.colors['wave-selected']
}
// if is active
else if(this.active > i) {
this.ctx.fillStyle = this.colors['wave-active']
}
// default
else {
this.ctx.fillStyle = this.colors['wave-focus']
}
// draw wave
this.ctx.fillRect(xPos, yPos, this.waveWidth, this.waves[i])
// gutter
// if is hovered
if(this.selected > 0 && (this.selected < i && i < this.active) || (this.selected > i && i >= this.active)) {
this.ctx.fillStyle = this.colors['gutter-selected']
}
// if is active
else if(this.active > i) {
this.ctx.fillStyle = this.colors['gutter-active']
}
// default
else {
this.ctx.fillStyle = this.colors['gutter']
}
// smallest wave between butter is gutters height
// note: Math.max because wave values are negative
gutterX = Math.max(this.waves[i],this.waves[i+1])
// draw gutter
this.ctx.fillRect(xPos + this.waveWidth, yPos, this.gutterWidth, gutterX)
// reflection wave
if(this.reflection > 0) {
var reflectionHeight = (Math.abs(this.waves[i]) / (1 - this.reflection) ) * this.reflection
if(this.active > i) this.ctx.fillStyle = this.colors['reflection-active']
else this.ctx.fillStyle = this.colors['reflection']
// draw reflection
this.ctx.fillRect(xPos, yPos, this.waveWidth, reflectionHeight)
}
xPos += this.waveWidth + this.gutterWidth
}
}
//TODO refactor
// parse and cache array of points
WAVEFORM.prototype.cache = function() {
var wavesPerWave, waves, wave, i, waveCount
this.waveOffset = Math.floor( this.height - (this.height * this.reflection) )
this.reflectionHeight = Math.floor( this.height - this.waveOffset )
this.waveHeight = Math.floor( this.height - this.reflectionHeight )
this.addColors()
// console.log('waveOffset: ' + this.waveOffset )
// console.log(' waveHeight: ' + this.waveHeight + ' reflectionHeight: ' + this.reflectionHeight + ' = ' + (this.waveHeight + this.reflectionHeight) )
waveCount = (this.width / (this.gutterWidth + this.waveWidth) )
wavesPerWave = (this.waveform.length / waveCount)
waves = []
wave = 0
for(i=0; i<this.waveform.length; i+=1) {
wave += this.waveform[i]
if(i%wavesPerWave === 0 && i !== 0) {
wave = (wave/wavesPerWave)
wave = Math.floor(-Math.abs(wave * this.waveHeight))
waves.push(wave)
wave = 0
}
}
return this.waves = waves
}
var example = require('./example')(WAVEFORM)
},{"./example":1}],3:[function(require,module,exports){
module.exports = require('./vendor/dat.gui')
module.exports.color = require('./vendor/dat.color')
},{"./vendor/dat.color":4,"./vendor/dat.gui":5}],4:[function(require,module,exports){
/**
* dat-gui JavaScript Controller Library
* http://code.google.com/p/dat-gui
*
* Copyright 2011 Data Arts Team, Google Creative Lab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
/** @namespace */
var dat = module.exports = dat || {};
/** @namespace */
dat.color = dat.color || {};
/** @namespace */
dat.utils = dat.utils || {};
dat.utils.common = (function () {
var ARR_EACH = Array.prototype.forEach;
var ARR_SLICE = Array.prototype.slice;
/**
* Band-aid methods for things that should be a lot easier in JavaScript.
* Implementation and structure inspired by underscore.js
* http://documentcloud.github.com/underscore/
*/
return {
BREAK: {},
extend: function(target) {
this.each(ARR_SLICE.call(arguments, 1), function(obj) {
for (var key in obj)
if (!this.isUndefined(obj[key]))
target[key] = obj[key];
}, this);
return target;
},
defaults: function(target) {
this.each(ARR_SLICE.call(arguments, 1), function(obj) {
for (var key in obj)
if (this.isUndefined(target[key]))
target[key] = obj[key];
}, this);
return target;
},
compose: function() {
var toCall = ARR_SLICE.call(arguments);
return function() {
var args = ARR_SLICE.call(arguments);
for (var i = toCall.length -1; i >= 0; i--) {
args = [toCall[i].apply(this, args)];
}
return args[0];
}
},
each: function(obj, itr, scope) {
if (ARR_EACH && obj.forEach === ARR_EACH) {
obj.forEach(itr, scope);
} else if (obj.length === obj.length + 0) { // Is number but not NaN
for (var key = 0, l = obj.length; key < l; key++)
if (key in obj && itr.call(scope, obj[key], key) === this.BREAK)
return;
} else {
for (var key in obj)
if (itr.call(scope, obj[key], key) === this.BREAK)
return;
}
},
defer: function(fnc) {
setTimeout(fnc, 0);
},
toArray: function(obj) {
if (obj.toArray) return obj.toArray();
return ARR_SLICE.call(obj);
},
isUndefined: function(obj) {
return obj === undefined;
},
isNull: function(obj) {
return obj === null;
},
isNaN: function(obj) {
return obj !== obj;
},
isArray: Array.isArray || function(obj) {
return obj.constructor === Array;
},
isObject: function(obj) {
return obj === Object(obj);
},
isNumber: function(obj) {
return obj === obj+0;
},
isString: function(obj) {
return obj === obj+'';
},
isBoolean: function(obj) {
return obj === false || obj === true;
},
isFunction: function(obj) {
return Object.prototype.toString.call(obj) === '[object Function]';
}
};
})();
dat.color.toString = (function (common) {
return function(color) {
if (color.a == 1 || common.isUndefined(color.a)) {
var s = color.hex.toString(16);
while (s.length < 6) {
s = '0' + s;
}
return '#' + s;
} else {
return 'rgba(' + Math.round(color.r) + ',' + Math.round(color.g) + ',' + Math.round(color.b) + ',' + color.a + ')';
}
}
})(dat.utils.common);
dat.Color = dat.color.Color = (function (interpret, math, toString, common) {
var Color = function() {
this.__state = interpret.apply(this, arguments);
if (this.__state === false) {
throw 'Failed to interpret color arguments';
}
this.__state.a = this.__state.a || 1;
};
Color.COMPONENTS = ['r','g','b','h','s','v','hex','a'];
common.extend(Color.prototype, {
toString: function() {
return toString(this);
},
toOriginal: function() {
return this.__state.conversion.write(this);
}
});
defineRGBComponent(Color.prototype, 'r', 2);
defineRGBComponent(Color.prototype, 'g', 1);
defineRGBComponent(Color.prototype, 'b', 0);
defineHSVComponent(Color.prototype, 'h');
defineHSVComponent(Color.prototype, 's');
defineHSVComponent(Color.prototype, 'v');
Object.defineProperty(Color.prototype, 'a', {
get: function() {
return this.__state.a;
},
set: function(v) {
this.__state.a = v;
}
});
Object.defineProperty(Color.prototype, 'hex', {
get: function() {
if (!this.__state.space !== 'HEX') {
this.__state.hex = math.rgb_to_hex(this.r, this.g, this.b);
}
return this.__state.hex;
},
set: function(v) {
this.__state.space = 'HEX';
this.__state.hex = v;
}
});
function defineRGBComponent(target, component, componentHexIndex) {
Object.defineProperty(target, component, {
get: function() {
if (this.__state.space === 'RGB') {
return this.__state[component];
}
recalculateRGB(this, component, componentHexIndex);
return this.__state[component];
},
set: function(v) {
if (this.__state.space !== 'RGB') {
recalculateRGB(this, component, componentHexIndex);
this.__state.space = 'RGB';
}
this.__state[component] = v;
}
});
}
function defineHSVComponent(target, component) {
Object.defineProperty(target, component, {
get: function() {
if (this.__state.space === 'HSV')
return this.__state[component];
recalculateHSV(this);
return this.__state[component];
},
set: function(v) {
if (this.__state.space !== 'HSV') {
recalculateHSV(this);
this.__state.space = 'HSV';
}
this.__state[component] = v;
}
});
}
function recalculateRGB(color, component, componentHexIndex) {
if (color.__state.space === 'HEX') {
color.__state[component] = math.component_from_hex(color.__state.hex, componentHexIndex);
} else if (color.__state.space === 'HSV') {
common.extend(color.__state, math.hsv_to_rgb(color.__state.h, color.__state.s, color.__state.v));
} else {
throw 'Corrupted color state';
}
}
function recalculateHSV(color) {
var result = math.rgb_to_hsv(color.r, color.g, color.b);
common.extend(color.__state,
{
s: result.s,
v: result.v
}
);
if (!common.isNaN(result.h)) {
color.__state.h = result.h;
} else if (common.isUndefined(color.__state.h)) {
color.__state.h = 0;
}
}
return Color;
})(dat.color.interpret = (function (toString, common) {
var result, toReturn;
var interpret = function() {
toReturn = false;
var original = arguments.length > 1 ? common.toArray(arguments) : arguments[0];
common.each(INTERPRETATIONS, function(family) {
if (family.litmus(original)) {
common.each(family.conversions, function(conversion, conversionName) {
result = conversion.read(original);
if (toReturn === false && result !== false) {
toReturn = result;
result.conversionName = conversionName;
result.conversion = conversion;
return common.BREAK;
}
});
return common.BREAK;
}
});
return toReturn;
};
var INTERPRETATIONS = [
// Strings
{
litmus: common.isString,
conversions: {
THREE_CHAR_HEX: {
read: function(original) {
var test = original.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);
if (test === null) return false;
return {
space: 'HEX',
hex: parseInt(
'0x' +
test[1].toString() + test[1].toString() +
test[2].toString() + test[2].toString() +
test[3].toString() + test[3].toString())
};
},
write: toString
},
SIX_CHAR_HEX: {
read: function(original) {
var test = original.match(/^#([A-F0-9]{6})$/i);
if (test === null) return false;
return {
space: 'HEX',
hex: parseInt('0x' + test[1].toString())
};
},
write: toString
},
CSS_RGB: {
read: function(original) {
var test = original.match(/^rgb\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);
if (test === null) return false;
return {
space: 'RGB',
r: parseFloat(test[1]),
g: parseFloat(test[2]),
b: parseFloat(test[3])
};
},
write: toString
},
CSS_RGBA: {
read: function(original) {
var test = original.match(/^rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\,\s*(.+)\s*\)/);
if (test === null) return false;
return {
space: 'RGB',
r: parseFloat(test[1]),
g: parseFloat(test[2]),
b: parseFloat(test[3]),
a: parseFloat(test[4])
};
},
write: toString
}
}
},
// Numbers
{
litmus: common.isNumber,
conversions: {
HEX: {
read: function(original) {
return {
space: 'HEX',
hex: original,
conversionName: 'HEX'
}
},
write: function(color) {
return color.hex;
}
}
}
},
// Arrays
{
litmus: common.isArray,
conversions: {
RGB_ARRAY: {
read: function(original) {
if (original.length != 3) return false;
return {
space: 'RGB',
r: original[0],
g: original[1],
b: original[2]
};
},
write: function(color) {
return [color.r, color.g, color.b];
}
},
RGBA_ARRAY: {
read: function(original) {
if (original.length != 4) return false;
return {
space: 'RGB',
r: original[0],
g: original[1],
b: original[2],
a: original[3]
};
},
write: function(color) {
return [color.r, color.g, color.b, color.a];
}
}
}
},
// Objects
{
litmus: common.isObject,
conversions: {
RGBA_OBJ: {
read: function(original) {
if (common.isNumber(original.r) &&
common.isNumber(original.g) &&
common.isNumber(original.b) &&
common.isNumber(original.a)) {
return {
space: 'RGB',
r: original.r,
g: original.g,
b: original.b,
a: original.a
}
}
return false;
},
write: function(color) {
return {
r: color.r,
g: color.g,
b: color.b,
a: color.a
}
}
},