-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
1060 lines (952 loc) · 86 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>AudioMoth Play</title>
<link rel="icon" type="image/png" href="assets/favicon.png">
<link rel="stylesheet" href="css/external/bootstrap.min.css">
<link rel="stylesheet" href="css/external/bootstrap-slider.css">
<link rel="stylesheet" href="css/loadingAnimation.css">
<link rel="stylesheet" href="css/index.css">
<script src="scripts/external/jspdf.umd.min.js"></script>
<script src="scripts/external/FreeSans-normal.js"></script>
<script src="scripts/external/complex.min.js"></script>
<script src="scripts/external/ffmpeg-worker-mp4.js"></script>
<script src="scripts/external/jquery-3.6.0.slim.min.js"></script>
<script src="scripts/external/bootstrap.bundle.min.js"></script>
<script src="scripts/external/bootstrap-slider.min.js"></script>
</head>
<body class="body-no-select" style="font-size: 10pt;">
<div class="container-fluid" style="padding: 11px; margin-left: 0px; margin-right: 0px;">
<!-- Title -->
<div class="row justify-content-md-center">
<div class="col total-width">
<h3 style="margin-bottom: 5px; display: inline-block;">AudioMoth Play</h3>
<a href="#" id="launch-app-link" style="margin-left: 10px;">Launch as app</a>
</div>
</div>
<!-- File selection description -->
<div id="file-selection-title-div" class="row justify-content-md-center" style="margin-top: 0px;">
<div class="col total-width">
<span id="file-selection-title-span">Select an AudioMoth WAV file:</span>
<span id="browser-error-span" style="color: rgb(52, 93, 164); display: none;">Switch to Google Chrome or Microsoft Edge to load your own recordings or select one of the <a href="#examples">example</a> files.</span>
<span id="browser-error-span-app" style="color: rgb(52, 93, 164); display: none;">Switch to Google Chrome or Microsoft Edge to load your own recordings or load an <a href="#" id="app-example-link">example</a> file.</span>
</div>
</div>
<!-- File selection -->
<div id="file-selection-div" class="row justify-content-md-center" style="margin-top: 5px;">
<div class="col total-width">
<button class="btn btn-primary" id="file-button" style="vertical-align: middle; display: none;" disabled>Select File</button>
<button class="btn btn-primary" id="disabled-file-button" style="vertical-align: middle;" disabled>Select File</button>
<span id="file-span" style="margin-left: 10px; vertical-align: middle; display: none;"></span>
<span id="slice-reselect-span" style="margin-left: 2px; vertical-align: middle; display: none;">(<a href="#" id="slice-reselect-link">00:00:00 - 00:00:00</a>)</span>
<a href="#" id="file-information-link" style="margin-left: 10px; vertical-align: middle; display: none;" data-toggle="modal" data-target="#information-modal">Show file information</a>
<a href="#" id="file-information-link" style="margin-left: 10px; vertical-align: middle; display: none;">Show file information</a>
<span class="loading" id="loading-span" style="margin-left: 10px; vertical-align: middle;">Loading</span>
<span id="resampled-span" style="color: blue; vertical-align: middle; margin-left: 10px; display: none;"></span>
<span id="error-span" style="color: red; vertical-align: middle; margin-left: 10px; display: none;"></span>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 10px;">
<div class="col plot-width" style="padding: 0px;">
<!-- Movement buttons -->
<div class="wrapper" style="width: 793px;">
<div class="row">
<div class="col" style="text-align: left; padding-right: 0px;">
<button class="btn btn-success nav-button" id="waveform-home-button" disabled>
<img class="button-icon" src="./assets/house.svg" alt="Bootstrap">
</button>
<button class="btn btn-primary nav-button" id="waveform-zoom-in-button" disabled>
<img class="button-icon" src="./assets/zoom-in.svg" alt="Bootstrap">
</button>
<button class="btn btn-primary nav-button" id="waveform-zoom-out-button" disabled>
<img class="button-icon" src="./assets/zoom-out.svg" alt="Bootstrap">
</button>
<select class="custom-select" id="amplitude-threshold-scale-select" style="vertical-align: middle; height: 35px; width: 120px; font-size: 10pt;">
<option value="1">16-Bit</option>
<option value="2">Decibel</option>
<option value="0" selected>Percentage</option>
</select>
</div>
<div class="col" style="text-align: right; padding-left: 0px;">
<button class="btn btn-success nav-button" id="home-button" disabled>
<img class="button-icon" src="./assets/house.svg" alt="Bootstrap">
</button>
<button class="btn btn-primary nav-button" id="zoom-in-button" disabled>
<img class="button-icon" src="./assets/zoom-in.svg" alt="Bootstrap">
</button>
<button class="btn btn-primary nav-button" id="zoom-out-button" disabled>
<img class="button-icon" src="./assets/zoom-out.svg" alt="Bootstrap">
</button>
<button class="btn btn-secondary nav-button" id="pan-left-button" style="display: inline-flex; align-items: center;" disabled>
<img class="button-icon" src="./assets/chevron-left.svg" alt="Bootstrap" id="pan-left-icon">
<img class="button-icon" src="./assets/chevron-double-left.svg" alt="Bootstrap" id="pan-double-left-icon" style="display: none;">
</button>
<button class="btn btn-secondary nav-button" id="pan-right-button" style="display: inline-flex; align-items: center;" disabled>
<img class="button-icon" src="./assets/chevron-right.svg" alt="Bootstrap" id="pan-right-icon">
<img class="button-icon" src="./assets/chevron-double-right.svg" alt="Bootstrap" id="pan-double-right-icon" style="display: none;">
</button>
</div>
</div>
</div>
</div>
<div class="col control-width control-margin" style="padding-left: 0px;"></div>
</div>
<div class="row justify-content-md-center">
<div class="col plot-width">
<!-- Plots -->
<!-- Waveform plot -->
<div id="waveform-holder" class="row" style="margin-top: 0px; height: 238px; text-align: center;">
<span style="text-align: center; width: 748px; margin-left: 45px;">Waveform</span>
<div class="wrapper" style="width: 793px; height: 238px;">
<svg class="label-canvas" id="waveform-label-svg" width="45" height="238" style="padding: 0%;"></svg>
<canvas class="plot-canvas" id="waveform-canvas" width="748" height="238" style="padding: 0%;"></canvas>
<canvas class="plot-canvas" id="waveform-threshold-canvas" width="748" height="238"></canvas>
<svg class="plot-canvas" id="waveform-threshold-line-svg" width="748" height="238"></svg>
<canvas class="plot-canvas" id="waveform-playback-canvas" width="748" height="238"></canvas>
<svg class="plot-canvas" id="waveform-loading-svg" width="750" height="238"></svg>
<svg class="plot-canvas" id="waveform-border-svg" width="748" height="238" style="padding: 0%;"></svg>
<!-- Drag canvas must be on top or it's not draggable -->
<canvas class="plot-canvas" id="waveform-drag-canvas" width="748" height="238"></canvas>
</div>
</div>
<!-- Goertzel response plot -->
<div id="goertzel-canvas-holder" class="row" style="margin-top: 0px; height: 238px; text-align: center; display: none;">
<span style="text-align: center; width: 748px; margin-left: 45px; height: 20px;">Frequency Response</span>
<div class="wrapper" style="width: 793px; height: 238px;">
<svg class="label-canvas" id="goertzel-label-svg" width="45" height="238" style="padding: 0%;"></svg>
<canvas class="plot-canvas" id="goertzel-canvas" width="748" height="238" style="padding: 0%;"></canvas>
<canvas class="plot-canvas" id="goertzel-threshold-canvas" width="748" height="238"></canvas>
<svg class="plot-canvas" id="goertzel-threshold-line-svg" width="748" height="238"></svg>
<canvas class="plot-canvas" id="goertzel-playback-canvas" width="748" height="238"></canvas>
<svg class="plot-canvas" id="goertzel-loading-svg" width="750" height="238"></svg>
<svg class="plot-canvas" id="goertzel-border-svg" width="748" height="238" style="padding: 0%;"></svg>
<!-- Drag canvas must be on top or it's not draggable -->
<canvas class="plot-canvas" id="goertzel-drag-canvas" width="748" height="238"></canvas>
</div>
</div>
<!-- Spectrogram plot -->
<div class="row" style="margin-top: 20px; height: 275px; text-align: center;">
<span style="text-align: center; width: 748px; margin-left: 45px; height: 20px;">Spectrogram</span>
<div class="wrapper" style="width: 793px; height: 255px;">
<svg class="label-canvas" id="spectrogram-label-svg" width="45" height="255" style="padding: 0%;"></svg>
<canvas class="plot-canvas" id="spectrogram-canvas" width="748" height="255" style="padding: 0%;"></canvas>
<canvas class="plot-canvas" id="spectrogram-threshold-canvas" width="748" height="255"></canvas>
<canvas class="plot-canvas" id="spectrogram-goertzel-canvas" width="748" height="255" style="display: none;"></canvas>
<svg class="plot-canvas" id="spectrogram-goertzel-line-svg" width="748" height="255" style="display: none;"></svg>
<canvas class="plot-canvas" id="spectrogram-playback-canvas" width="748" height="255"></canvas>
<svg class="plot-canvas" id="spectrogram-loading-svg" width="750" height="255"></svg>
<svg class="plot-canvas" id="spectrogram-border-svg" width="748" height="255" style="padding: 0%;"></svg>
<!-- Drag canvas must be on top or it's not draggable -->
<canvas class="plot-canvas" id="spectrogram-drag-canvas" width="748" height="255"></canvas>
</div>
</div>
<!-- Time axis -->
<div class="row" style="margin-top: 0%; text-align: center;">
<svg id="time-axis-label-svg" width="810" height="20" style="padding: 0%; margin-left: 0px;"></svg>
</div>
<!-- Time axis heading -->
<div class="row" style="margin-top: 0%; text-align: center;">
<svg id="time-axis-heading-svg" width="780" height="20" style="padding: 0%; margin-left: 30px;"></svg>
</div>
</div>
<div class="col control-width control-margin" style="padding: 0px;">
<!-- Sample rate selection -->
<div id="sample-rate-holder" style="border: #cdcdcd thin solid; width: 100%; margin-top: 20px; display: none;">
<div class="row" style="margin-top: 8px;">
<div class="col-12">
<div style="margin-left: 5px; margin-right: 4px">
<table class="table" style="margin-bottom: 8px;">
<tr class="settings-text" style="font-size: 12px;" title="Sample rate used when making recordings.">
<td align="center" style="padding: 0px; padding-left: 0px;"></td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="sample-rate-label">8</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="sample-rate-label">16</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="sample-rate-label">32</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="sample-rate-label">48</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="sample-rate-label">96</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="sample-rate-label">192</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="sample-rate-label">250</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="sample-rate-label">384</td>
</tr>
<tr class="settings-text" title="Sample rate used when making recordings.">
<td align="left" style="padding-top: 0px; padding-bottom: 0px;">Sample rate (kHz):</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="0" name="sample-rate-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="1" name="sample-rate-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="2" name="sample-rate-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="3" name="sample-rate-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="4" name="sample-rate-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="5" name="sample-rate-radio" checked>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="6" name="sample-rate-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="7" name="sample-rate-radio">
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div id="disabled-sample-rate-holder" style="border: #cdcdcd thin solid; width: 100%; margin-top: 20px;">
<div class="row" style="margin-top: 8px;">
<div class="col-12">
<div style="margin-left: 5px; margin-right: 4px">
<table class="table" style="margin-bottom: 8px;">
<tr class="settings-text grey" style="font-size: 12px;" title="Sample rate used when making recordings.">
<td align="center" style="padding: 0px; padding-left: 0px;"></td>
<td align="center" style="padding: 0px; padding-left: 0px;">8</td>
<td align="center" style="padding: 0px; padding-left: 0px;">16</td>
<td align="center" style="padding: 0px; padding-left: 0px;">32</td>
<td align="center" style="padding: 0px; padding-left: 0px;">48</td>
<td align="center" style="padding: 0px; padding-left: 0px;">96</td>
<td align="center" style="padding: 0px; padding-left: 0px;">192</td>
<td align="center" style="padding: 0px; padding-left: 0px;">250</td>
<td align="center" style="padding: 0px; padding-left: 0px;">384</td>
</tr>
<tr class="settings-text grey" title="Sample rate used when making recordings.">
<td align="left" style="padding-top: 0px; padding-bottom: 0px;">Sample rate (kHz):</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="0" name="disabled-sample-rate-radio" disabled>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="1" name="disabled-sample-rate-radio" disabled>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="2" name="disabled-sample-rate-radio" disabled>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="3" name="disabled-sample-rate-radio" disabled>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="4" name="disabled-sample-rate-radio" disabled>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="5" name="disabled-sample-rate-radio" checked disabled>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="6" name="disabled-sample-rate-radio" disabled>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" value="7" name="disabled-sample-rate-radio" disabled>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<!-- Threshold selection -->
<div class="row" style="margin-top: 8px;">
<div class="col-12">
<div style="border: #cdcdcd thin solid; width: 100%; margin-top: 0px; ">
<div class="row" style="margin-top: 8px; margin-bottom: 4px;">
<div class="col-12">
<div style="margin-left: 5px; margin-right: 4px">
<table class="table" style="margin-bottom: 4px;" title="Type of threshold." id="threshold-type-table">
<tr class="settings-text" style="font-size: 12px;">
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px" name="threshold-radio-label">None</td>
<td align="center" style="padding: 0px" name="threshold-radio-label">Amplitude</td>
<td align="center" style="padding: 0px" name="threshold-radio-label">Frequency</td>
</tr>
<tr class="settings-text">
<td align="left" style="padding-top: 0px; padding-bottom: 0px;" id="threshold-type-label">Trigger type:</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px"></td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px"></td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px"></td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px"></td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px"></td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input type="radio" value="0" name="threshold-type-radio" checked>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input type="radio" value="1" name="threshold-type-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input type="radio" value="2" name="threshold-type-radio">
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Filtering -->
<div id="filter-holder" class="row">
<div class="col-12" style="margin-top: 8px;">
<div style="border: #cdcdcd thin solid; width: 100%;">
<div class="row" style="margin-top: 8px;">
<div class="col-12">
<div style="margin-left: 5px; margin-right: 4px">
<table class="table" style="margin-bottom: 4px;" title="Type of filter." id="filter-type-table">
<tr class="settings-text" style="font-size: 12px;">
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px"></td>
<td align="center" style="padding: 0px" name="filter-radio-label">None</td>
<td align="center" style="padding: 0px" name="filter-radio-label">Low</td>
<td align="center" style="padding: 0px" name="filter-radio-label">Band</td>
<td align="center" style="padding: 0px" name="filter-radio-label">High</td>
</tr>
<tr class="settings-text">
<td align="left" style="padding-top: 0px; padding-bottom: 0px;" id="filter-type-label">Filter type:</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px"></td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px"></td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px"></td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px"></td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input type="radio" value="3" name="filter-radio" checked>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input type="radio" value="0" name="filter-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input type="radio" value="1" name="filter-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input type="radio" value="2" name="filter-radio">
</td>
</tr>
</table>
</div>
</div>
</div>
<!-- Disabled filter -->
<div class="row grey" id="disabled-row" style="margin-top: 8px; margin-bottom: 8px; display: flex; align-items: center;">
<div class="col-2" style="text-align: left; padding-right: 0px;">
<span class="settings-text" id="disabled-filter-min-label" style="margin-left: 16px; font-weight: bold;">0kHz</span>
</div>
<div id="disabled-filter-slider-holder" class="col-8 config-slider" title="The low and high cut-off frequencies of the disabled filter." style="padding-left: 0px; padding-right: 0px;">
<input id="disabled-filter-slider" data-slider-id="disabled-filter-slider" type="text" class="span2" data-slider-value="0" style="width: 370px;">
</div>
<div class="col-2" style="text-align: right;">
<span class="settings-text" id="disabled-filter-max-label" style="font-weight: bold; padding-right: 18px;">24kHz</span>
</div>
</div>
<!-- High-pass filter -->
<div class="row" id="high-pass-row" style="margin-top: 8px; margin-bottom: 8px; display: none; align-items: center;">
<div class="col-2" style="text-align: left; padding-right: 0px;">
<span class="settings-text" id="high-pass-min-label" style="margin-left: 16px; font-weight: bold;">0kHz</span>
</div>
<div id="high-pass-filter-slider-holder" class="col-8 config-slider" title="The cut-off frequency of the high-pass filter." style="padding-left: 0px; padding-right: 0px;">
<input id="high-pass-filter-slider" data-slider-id="high-pass-filter-slider" type="text" class="span2" value="" data-slider-min="0" data-slider-max="24000" data-slider-step="100" data-slider-value="18000" data-slider-selection="after" style="width: 370px;">
</div>
<div class="col-2" style="text-align: right;">
<span class="settings-text" id="high-pass-filter-max-label" style="font-weight: bold; padding-right: 18px;">24kHz</span>
</div>
</div>
<!-- Low-pass filter -->
<div class="row" id="low-pass-row" style="margin-top: 8px; margin-bottom: 8px; display: none; align-items: center;">
<div class="col-2" style="text-align: left; padding-right: 0px;">
<span class="settings-text" id="low-pass-filter-min-label" style="margin-left: 16px; font-weight: bold;">0kHz</span>
</div>
<div id="low-pass-filter-slider-holder" class="col-8 config-slider" title="The cut-off frequency of the low-pass filter." style="padding-left: 0px; padding-right: 0px;">
<input id="low-pass-filter-slider" data-slider-id="low-pass-filter-slider" type="text" class="span2" value="" data-slider-min="0" data-slider-max="24000" data-slider-step="100" data-slider-value="6000" data-slider-selection="before" style="width: 370px;">
</div>
<div class="col-2" style="text-align: right;">
<span class="settings-text" id="low-pass-filter-max-label" style="font-weight: bold; padding-right: 18px;">24kHz</span>
</div>
</div>
<!-- Band-pass filter -->
<div class="row" id="band-pass-row" style="margin-top: 8px; margin-bottom: 8px; display: none; align-items: center;">
<div class="col-2" style="text-align: left; padding-right: 0px;">
<span class="settings-text" id="band-pass-filter-min-label" style="margin-left: 16px; font-weight: bold;">0kHz</span>
</div>
<div id="band-pass-filter-slider-holder" class="col-8 config-slider" title="The low and high cut-off frequencies of the band-pass filter." style="padding-left: 0px; padding-right: 0px;">
<input id="band-pass-filter-slider" data-slider-id="band-pass-filter-slider" type="text" class="span2" value="" data-slider-min="0" data-slider-max="24000" data-slider-step="100" data-slider-value="[6000,18000]" data-slider-selection="before" style="width: 370px;">
</div>
<div class="col-2" style="text-align: right;">
<span class="settings-text" id="band-pass-filter-max-label" style="font-weight: bold; padding-right: 18px;">24kHz</span>
</div>
</div>
<div class="row" style="margin-top: 8px;">
<div class="col-12" style="margin-left: 16px;">
<label class="settings-text" id="filter-label" style="width: 100%; resize:none; text-align: left; font-weight: normal;">Recordings will not be filtered.</label>
</div>
</div>
</div>
</div>
</div>
<div id="threshold-holder" class="row" style="margin-top: 8px;">
<div class="col-12">
<div style="border: #cdcdcd thin solid; width: 100%;">
<!-- Amplitude threshold -->
<div id="amplitude-threshold-holder" style="margin-bottom: 8px;">
<div class="row" style="margin-top: 8px; margin-bottom: 8px;">
<div class="col-12">
<div style="margin-left: 5px; margin-right: 4px">
<table class="table" style="margin-bottom: 4px;" id="amplitude-threshold-duration-table">
<tr class="settings-text" style="font-size: 12px;" title="Minimum trigger length.">
<td align="center" style="padding: 0px; padding-left: 0px;"></td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="amplitude-threshold-duration-radio-label">0</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="amplitude-threshold-duration-radio-label">1</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="amplitude-threshold-duration-radio-label">2</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="amplitude-threshold-duration-radio-label">5</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="amplitude-threshold-duration-radio-label">10</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="amplitude-threshold-duration-radio-label">15</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="amplitude-threshold-duration-radio-label">30</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="amplitude-threshold-duration-radio-label">60</td>
</tr>
<tr class="settings-text" title="Minimum trigger length.">
<td align="left" style="padding-top: 0px; padding-bottom: 0px;">Minimum trigger duration (s):</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="amplitude-threshold-duration-radio0" value="0" name="amplitude-threshold-duration-radio" checked>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="amplitude-threshold-duration-radio1" value="1" name="amplitude-threshold-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="amplitude-threshold-duration-radio2" value="2" name="amplitude-threshold-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="amplitude-threshold-duration-radio3" value="3" name="amplitude-threshold-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="amplitude-threshold-duration-radio4" value="4" name="amplitude-threshold-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="amplitude-threshold-duration-radio5" value="5" name="amplitude-threshold-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="amplitude-threshold-duration-radio6" value="6" name="amplitude-threshold-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="amplitude-threshold-duration-radio7" value="7" name="amplitude-threshold-duration-radio">
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="row" id="amplitude-threshold-slider-row" style="margin-top: 8px; margin-bottom: 12px; display: flex; align-items: center;">
<div class="col-2" style="text-align: left; padding-right: 0px;">
<span class="settings-text" id="amplitude-threshold-min-label" style="margin-left: 16px; font-weight: bold;">0.001%</span>
</div>
<div id="amplitude-threshold-slider-holder" class="col-8 config-slider" style="padding-left: 0%; padding-right: 0%;" title="The amplitude threshold below which audio is not written to the SD card.">
<input class="settings-inputs" id="amplitude-threshold-slider" data-slider-id="amplitude-threshold-slider" type="text" class="span2" value="" data-slider-min="0" data-slider-max="10000" data-slider-step="1" data-slider-value="0" data-slider-selection="after" style="width: 370px;">
</div>
<div class="col-2" style="text-align: right;">
<span class="settings-text" id="amplitude-threshold-max-label" style="font-weight: bold; text-align: right; padding-right: 18px;">100%</span>
</div>
</div>
</div>
<!-- Goertzel filter -->
<div id="goertzel-filter-threshold-holder" style="margin-bottom: 8px;">
<div class="row" style="margin-top: 8px; margin-bottom: 8px;">
<div class="col-12">
<div style="margin-left: 5px; margin-right: 4px">
<table class="table" style="margin-bottom: 4px;" id="goertzel-filter-window-table">
<tr class="settings-text" style="font-size: 12px;" title="Window length of the Goertzel filter.">
<td align="center" style="padding: 0px; padding-left: 0px;"></td>
<td align="center" style="padding: 0px; padding-left: 0px; width: 50px;"></td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-filter-window-radio-label">16</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-filter-window-radio-label">32</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-filter-window-radio-label">64</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-filter-window-radio-label">128</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-filter-window-radio-label">256</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-filter-window-radio-label">512</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-filter-window-radio-label">1024</td>
</tr>
<tr class="settings-text" title="Window length.">
<td align="left" style="padding-top: 0px; padding-bottom: 0px; width: 204px;">Window length (samples):</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px; width: 13px;">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-filter-window-radio1" value="0" name="goertzel-filter-window-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-filter-window-radio2" value="1" name="goertzel-filter-window-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-filter-window-radio3" value="2" name="goertzel-filter-window-radio" checked>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-filter-window-radio4" value="3" name="goertzel-filter-window-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-filter-window-radio5" value="4" name="goertzel-filter-window-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-filter-window-radio6" value="5" name="goertzel-filter-window-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-filter-window-radio7" value="6" name="goertzel-filter-window-radio">
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="row" id="goertzel-filter-row" style="margin-top: 8px; margin-bottom: 8px; display: flex; align-items: center;">
<div class="col-2" style="text-align: left; padding-right: 0px;">
<span class="settings-text" id="goertzel-filter-min-label" style="margin-left: 16px; font-weight: bold;">0kHz</span>
</div>
<div id="goertzel-filter-slider-holder" class="col-8 config-slider" title="The centre frequency of the Goertzel filter." style="padding-left: 0px; padding-right: 0px;">
<input id="goertzel-filter-slider" data-slider-id="goertzel-filter-slider" type="text" class="span2" value="" data-slider-min="0" data-slider-max="24000" data-slider-step="100" data-slider-value="12000" data-slider-selection="none" style="width: 370px;">
</div>
<div class="col-2" style="text-align: right;">
<span class="settings-text" id="goertzel-filter-max-label" style="font-weight: bold; padding-right: 18px;">24kHz</span>
</div>
</div>
<!-- Filter status -->
<div class="row" style="margin-top: 8px;">
<div class="col-12" style="margin-left: 16px;">
<label class="settings-text" id="goertzel-filter-label" style="width: 100%; resize:none; text-align: left; font-weight: normal;">A centre frequency of XXXkHz will be used by the frequency trigger.</label>
</div>
</div>
<div class="row" style="margin-top: 18px; margin-bottom: 8px;">
<div class="col-12">
<div style="margin-left: 5px; margin-right: 4px">
<table class="table" style="margin-bottom: 4px;" id="goertzel-duration-table">
<tr class="settings-text" style="font-size: 12px;" title="Minimum trigger length.">
<td align="center" style="padding: 0px; padding-left: 0px;"></td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-duration-radio-label">0</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-duration-radio-label">1</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-duration-radio-label">2</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-duration-radio-label">5</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-duration-radio-label">10</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-duration-radio-label">15</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-duration-radio-label">30</td>
<td align="center" style="padding: 0px; padding-left: 0px;" name="goertzel-duration-radio-label">60</td>
</tr>
<tr class="settings-text" title="Minimum trigger length.">
<td align="left" style="padding-top: 0px; padding-bottom: 0px;">Minimum trigger duration (s):</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-duration-radio0" value="0" name="goertzel-duration-radio" checked>
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-duration-radio1" value="1" name="goertzel-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-duration-radio2" value="2" name="goertzel-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-duration-radio3" value="3" name="goertzel-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-duration-radio4" value="4" name="goertzel-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-duration-radio5" value="5" name="goertzel-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-duration-radio6" value="6" name="goertzel-duration-radio">
</td>
<td align="center" style="padding-top: 0px; padding-bottom: 0px">
<input class="settings-inputs" type="radio" id="goertzel-duration-radio7" value="7" name="goertzel-duration-radio">
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="row" id="goertzel-threshold-row" style="margin-top: 8px; margin-bottom: 12px; display: flex; align-items: center;">
<div class="col-2" style="text-align: left; padding-right: 0px;">
<span class="settings-text" id="goertzel-threshold-min-label" style="margin-left: 16px; font-weight: bold;">0.001%</span>
</div>
<div id="goertzel-threshold-slider-holder" class="col-8 config-slider" style="padding-left: 0%; padding-right: 0%;">
<input class="settings-inputs" id="goertzel-threshold-slider" data-slider-id="goertzel-threshold-slider" type="text" class="span2" value="" data-slider-min="0" data-slider-max="10000" data-slider-step="1" data-slider-value="0" data-slider-selection="after" style="width: 370px;">
</div>
<div class="col-2" style="text-align: right;">
<span class="settings-text" id="goertzel-threshold-max-label" style="font-weight: bold; text-align: right; padding-right: 18px;">100%</span>
</div>
</div>
</div>
<!-- Threshold status -->
<div class="row">
<div class="col-12" style="margin-left: 16px;">
<label class="settings-text" id="threshold-label" style="width: 100%; resize:none; text-align: left; font-weight: normal;">All audio will be written to a WAV file.</label>
</div>
</div>
</div>
</div>
</div>
<div style="border: #cdcdcd thin solid; margin-top: 10px;">
<div class="row" style="margin-top: 5px; margin-bottom: 5px;">
<div class="col-12">
<div style="display: table-cell; vertical-align: middle; width: 543px; height: 58px; text-align: center;">
<label class="grey" id="size-information-panel" style="width: 100%; resize:none; text-align: center; font-weight: normal;">No WAV file selected.</label>
</div>
</div>
</div>
</div>
<div style="position: absolute; bottom: 40px;">
<div class="row control-width" style="margin-top: 15px; margin-left: 0px; margin-right: 0px;">
<div class="col-6" style="padding-left: 0%;">
<button class="btn btn-primary" id="reset-button" style="width: 100%;" disabled>Reset</button>
</div>
<div class="col-6" style="padding-right: 0%;">
<button class="btn btn-success" id="export-button" style="width: 100%;" disabled>Export Configuration</button>
</div>
</div>
</div>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 10px;">
<div class="col plot-width" style="padding: 0px;">
<div class="wrapper" style="width: 793px;">
<div class="row">
<div class="col-11">
<button class="btn btn-success nav-button" id="play-button" disabled style="margin-left: 0px;">
<img id="play-icon" class="button-icon" src="./assets/play.svg" alt="Bootstrap">
<img id='stop-icon' class="button-icon" src="./assets/stop.svg" alt="Bootstrap" style="display: none;">
</button>
<button id="export-video-button" class="btn btn-success nav-button" disabled>
<img id="video-icon" class="button-icon" src="./assets/camera-video.svg" alt="Bootstrap">
<div class="d-flex justify-content-center">
<div id="video-spinner" class="spinner-border spinner-border-sm" role="status" style="display: none;">
<span class="sr-only">Loading...</spa>
</div>
</div>
</button>
<select class="custom-select" id="playback-speed-select" style="vertical-align: middle; width: 120px; height: 35px; font-size: 10pt;">
<option id="playback-speed-option-2" value="2">Speed: ×2</option>
<option id="playback-speed-option-1" value="1" selected="selected">Speed: ×1</option>
<option id="playback-speed-option-1-2" value="0.5">Speed: ÷2</option>
<option id="playback-speed-option-1-4" value="0.25">Speed: ÷4</option>
<option id="playback-speed-option-1-8" value="0.125">Speed: ÷8</option>
<option id="playback-speed-option-1-16" value="0.0625">Speed: ÷16</option>
</select>
<select class="custom-select" id="volume-select" style="vertical-align: middle; width: 120px; height: 35px; font-size: 10pt;">
<option id="volume-option-1-2" value="0.5">Volume: ÷2</option>
<option id="volume-option-1" value="1" selected="selected">Volume: ×1</option>
<option id="volume-option-2" value="2">Volume: ×2</option>
<option id="volume-option-4" value="4">Volume: ×4</option>
<option id="volume-option-8" value="8">Volume: ×8</option>
<option id="volume-option-16" value="16">Volume: ×16</option>
</select>
<button id="export-audio-button" class="btn btn-warning nav-button" style="margin-left: 20px;" disabled>
<img id="download-icon" class="button-icon" src="./assets/download.svg" alt="Bootstrap">
</button>
<button class="btn btn-warning nav-button" id="export-modal-button" data-toggle="modal" data-target="#export-modal" disabled>
<img id="camera-icon" class="button-icon" src="./assets/camera.svg" alt="Bootstrap">
</button>
<select class="custom-select" id="playback-mode-select" style="vertical-align: middle; width: 170px; height: 35px; font-size: 10pt; margin-left: 20px;">
<option id="playback-mode-option-all" value="0" selected="selected">Regular WAV file</option>
<option id="playback-mode-option-mute" value="1">Triggered T.WAV file</option>
<option id="playback-mode-option-skip" value="2">Expanded T.WAV file</option>
</select>
</div>
<div class="col-1">
<button class="btn btn-secondary nav-button" id="settings-modal-button">
<img id="gear-icon" class="button-icon" src="./assets/gear.svg" alt="Bootstrap">
</button>
</div>
</div>
</div>
</div>
<div class="col control-width control-margin" style="padding-left: 0px;"></div>
</div>
<div class="modal fade" id="settings-modal" tabindex="-1" role="dialog" aria-labelledby="settingsModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="settingsModalLabel">Settings</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<input type="checkbox" id="settings-file-time-checkbox" style="vertical-align: middle;">
<label for="settings-file-time-checkbox" id="settings-file-time-label">Display real time on x axis</label>
<br>
<input type="checkbox" id="settings-video-line-checkbox" style="vertical-align: middle;">
<label for="settings-video-line-checkbox" id="settings-video-line-label">Enable tracking line on exported video</label>
<br>
<input type="checkbox" id="settings-video-fixed-fps-checkbox" style="vertical-align: middle;">
<label for="settings-video-fixed-fps-checkbox" id="settings-video-fixed-fps-label">Favour frame rate over file size when generating videos</label>
<hr>
<label for="settings-monochrome-select" id="settings-monochrome-label" style="margin-right: 5px; margin-top: 3px;">Colour palette:</label>
<select id="settings-monochrome-select">
<option value="0">Default</option>
<option value="1">Monochrome</option>
<option value="2">Inverse monochrome</option>
</select>
<br>
<input type="checkbox" id="settings-dynamic-colours-checkbox" style="vertical-align: middle;">
<label for="settings-dynamic-colours-checkbox" id="settings-dynamic-colours-label">Use dynamic spectrogram colouring</label>
</div>
<div class="modal-footer">
<button id="settings-cancel-button" type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button id="settings-apply-button" type="button" class="btn btn-success">Apply</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="export-modal" tabindex="-1" role="dialog" aria-labelledby="exportModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exportModalLabel">Export Image</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" id="export-close-button">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
The current view can be downloaded as a PNG or PDF file.
</div>
<div class="modal-footer">
<button id="export-png-button" type="button" class="btn btn-success">PNG</button>
<button id="export-jpg-button" type="button" class="btn btn-success">JPG</button>
<button id="export-pdf-button" type="button" class="btn btn-success">PDF</button>
<button id="export-all-button" type="button" class="btn btn-primary">All</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="information-modal" tabindex="-1" role="dialog" aria-labelledby="commentModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document" id="information-modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="commentModalLabel">File Information</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" id="information-modal-close-button">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="comment-text">
<span id="artist-span" style="margin-bottom: 5px; float: left; clear: left; font-weight: bold;">AudioMoth</span>
<span id="comment-span" style="float: left; clear: left; margin-bottom: 10px;">-</span>
<div id="guano-holder" style="float: left; clear: left;"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="information-download-button">Download</button>
<button type="button" class="btn btn-primary" id="information-clipboard-button">Copy to Clipboard</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="slice-modal" tabindex="-1" role="dialog" aria-labelledby="slice-modal-label" aria-hidden="true">
<div class="modal-dialog" role="document" style="max-width: 820px;">
<!-- Loading UI -->
<div class="modal-content" id="slice-loading-content">
<div class="modal-header">
<h5 class="modal-title">Select part of chosen file</h5>
</div>
<div class="modal-body">
File length exceeds 60 seconds. Loading interval selection.
</div>
<div class="modal-body" id="slice-text" style="padding: 0px; height: 210px;">
<div class="wrapper" style="width: 100%; height: 170px;">
<svg class="slice-canvas" id="slice-loading-border-svg" width="720" height="170" style="padding: 0%;"></svg>
<svg class="slice-canvas" id="slice-loading-SVG" width="720" height="170" style="padding: 0%; z-index: 1;"></svg>
<svg class="slice-canvas" id="slice-loading-fill-SVG" width="720" height="170" style="padding: 0%; z-index: 0;"></svg>
</div>
</div>
<div class="modal-body" style="padding-left: 0px; padding-right: 0px;">
<div class="row">
<div class="col-6">
<button type="button" class="btn btn-secondary" style="margin-left: 50px;" disabled><</button>
<button type="button" class="btn btn-secondary" style="margin-right: 5px;" disabled>></button>
</div>
<div class="col-6" style="text-align: right;">
<button type="button" class="btn btn-secondary" style="margin-left: 5px;" disabled><</button>
<button type="button" class="btn btn-secondary" style="margin-right: 50px;" disabled>></button>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" id="slice-loading-cancel-button">Cancel</button>
<button type="button" class="btn btn-primary" disabled>Select</button>
</div>
</div>
<!-- Preview UI -->
<div class="modal-content" style="display: none;" id="slice-content">
<div class="modal-header">
<h5 class="modal-title" id="slice-modal-label">Select part of chosen file</h5>
</div>
<div class="modal-body">
File length exceeds 60 seconds. Select a 60 second interval.
</div>
<div class="modal-body" id="slice-text" style="padding: 0px;">
<div class="wrapper" style="width: 100%; height: 170px;">
<canvas class="slice-canvas" id="slice-canvas" width="720" height="170" style="padding: 0%;"></canvas>
<svg class="slice-canvas" id="slice-border-svg" width="720" height="170" style="padding: 0%;"></svg>
<canvas class="slice-canvas" id="slice-hover-canvas" width="720" height="170" style="padding: 0%;"></canvas>
<canvas class="slice-canvas" id="slice-selection-canvas" width="720" height="170" style="padding: 0%;"></canvas>
</div>
<div class="wrapper" style="width: 100%; height: 20px;">
<!-- Time axis -->
<div class="row" style="margin-top: 0%; text-align: center;">
<svg class="slice-axis" id="slice-time-axis-svg" width="760px" height="20px"></svg>
</div>
</div>
<div class="wrapper" style="width: 100%; height: 20px;">
<!-- Time axis heading -->
<div class="row" style="margin-top: 0%; text-align: center;">
<svg class="slice-axis" id="slice-time-axis-label-svg" width="760px" height="20px"></svg>
</div>
</div>
</div>
<div class="modal-body" style="padding-left: 0px; padding-right: 0px;">
<div class="row">
<div class="col-6">
<button type="button" class="btn btn-secondary" id="slice-selection-left-button" style="margin-left: 50px;" disabled><</button>
<button type="button" class="btn btn-secondary" id="slice-selection-right-button" style="margin-right: 5px;">></button>
<span id="slice-selection-span">00:00:00 - 00:01:00</span>
</div>
<div class="col-6" style="text-align: right;">
<span id="slice-page-span">Page 1 of 1</span>
<button type="button" class="btn btn-secondary" id="slice-page-left-button" style="margin-left: 5px;" disabled><</button>
<button type="button" class="btn btn-secondary" id="slice-page-right-button" style="margin-right: 50px;" disabled>></button>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" id="slice-close-button">Cancel</button>
<button type="button" class="btn btn-primary" id="slice-select-button">Select</button>
</div>
</div>
</div>
</div>
<div id="instructions-content" style="display: none;">
<div class="row justify-content-md-center" style="margin-top: 15px;">
<div class="col total-width">
<h3 id="instructions">Instructions</h3>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 15px;">
<div class="col total-width">
<p>AudioMoth Play allows you to explore filter and trigger settings on existing AudioMoth WAV files before applying them in the files.</p>
<p>Select a .WAV recording. Files longer than 60 seconds will open as a preview, allowing you to select a 60 second section to load. Once the file has loaded, you can navigate through your recording using the buttons above the plot, or by clicking and dragging to select the area you wish to see in detail. You can also double click on either plot to zoom in and centre on specific features of interest.</p>
<p>Add a low, high, or band pass filter using the controls on the right; selecting a radio button besides "None" to add a filter and then dragging the sliders to set the required filter frequency. The plots update in real time to show the effect of the filter.</p>
<p>Apply an amplitude threshold trigger by clicking the corresponding radio button on the right and then dragging the slider to set the threshold. The threshold will be drawn onto the waveform plot to show you which parts of the signal will trigger. You can change the units used to display this threshold using the drop-down menu at the top left of the plots. Once a threshold has been set, the plot will automatically grey out parts of the recording which fall below the threshold.</p>
<p>Selecting the frequency trigger will change the waveform to a frequency response plot. Use the radio buttons and slider to set the frequency band shown on this plot. Once you've chosen a band, drag the lower slider to set the frequency response threshold.</p>
<p>Selecting either the amplitude trigger or no trigger will allow you to add a low, high, or band pass filter; tick the checkbox to enable the filter and then drag the sliders to set the required filter frequency. The plots update in real time to show the effect of the filter.</p>
<p>Once you are happy with the filter and amplitude threshold settings, click <b>Export Configuration</b> to download a .config which can be loaded in the AudioMoth Configuration App (version 1.6.0 onwards).</p>
<p>You can use the controls beneath the plots to export WAV sound files, PNG, JPG, and PDF images, and MP4 videos of your AudioMoth recordings.</p>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 10px;">
<div class="col total-width">
<h3>Example files</h3>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 5px;">
<div id="examples" class="col total-width">
<p>You can use these example files to explore settings if you do not currently have an AudioMoth file to use.</p>
<ul>
<li><a href="#" id="example-link1">Example 1</a> - Bat</li>
<li><a href="#" id="example-link2">Example 2</a> - Frequency sweep</li>
<li><a href="#" id="example-link3">Example 3</a> - Metronome</li>
</ul>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 10px;">
<div class="col total-width">
<h3 id="faqs">FAQs</h3>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 15px;">
<div class="col total-width">
<h5>Why won't my file load?</h5>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 5px;">
<div class="col total-width">
AudioMoth Play will open any 16-bit PCM WAV files recorded at a sample rate supported by AudioMoth (8, 16, 32, 48, 96, 192, 250, and 384 kHz). Files recorded at 44.1, 125, 312.5 and 576 kHz will be automatically resampled to 48, 192, and 384 kHz respectively.
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 15px;">
<div class="col total-width">
<h5>What is "amplitude threshold triggered recording"?</h5>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 5px;">
<div class="col total-width">
Amplitude threshold triggered recording is a recording mode where an AudioMoth will only collect samples when their amplitude exceeds a certain value. Once a threshold has been selected, these samples are saved to SD card, as well as the lengths of the gaps between each acoustic event.
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 15px;">
<div class="col total-width">
<h5>What is "frequency triggered recording"?</h5>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 5px;">
<div class="col total-width">
Frequency triggered recording is a recording mode where an AudioMoth will only collect samples when the response of a chosen frequency band exceeds a certain value. Once a threshold has been selected, these samples are saved to SD card, as well as the lengths of the gaps between each acoustic event.
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 15px;">
<div class="col total-width">
<h5>What does "window length" change when configuring a frequency trigger?</h5>
</div>
</div>
<div class="row justify-content-md-center" style="margin-top: 5px;">
<div class="col total-width">