-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
1293 lines (1246 loc) · 105 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 lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-eval' 'unsafe-inline'; worker-src 'self' 'unsafe-inline' 'unsafe-eval' "-->
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' https:">
<!-- Bootstrap & CSS-->
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css" />
<script defer src="./node_modules/@popperjs/core/dist/umd/popper.min.js"></script>
<script defer src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Additional JavaScript & CSS -->
<link rel="stylesheet" href="css/style.css" />
<script defer src="./node_modules/@easepick/bundle/dist/index.umd.js"></script>
<script defer src="./node_modules/chart.js/dist/chart.umd.js"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>
<script>
function goFullscreen(){
const container = document.getElementById('chart-week');
container.requestFullscreen();
}
</script>
<!-- App title -->
<title>Chirpity Bird Call Detection</title>
</head>
<body>
<!-- Loading Spinner Overlay -->
<div id="loadingOverlay" class="overlay d-none">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<!-- The modal for the tour -->
<div class="modal modal-lg modal-fade" id="tourModal" tabindex="-1" aria-labelledby="tourModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body">
<div id="carouselExample" class="carousel carousel-dark slide" data-bs-ride="false"
data-bs-wrap="false">
<!-- Carousel indicators -->
<ol class="carousel-indicators">
<li data-bs-target="#carouselExample" data-bs-slide-to="0" class="active"></li>
<li data-bs-target="#carouselExample" data-bs-slide-to="1"></li>
<li data-bs-target="#carouselExample" data-bs-slide-to="2"></li>
<li data-bs-target="#carouselExample" data-bs-slide-to="3"></li>
<li data-bs-target="#carouselExample" data-bs-slide-to="4"></li>
<!-- Add more indicators as needed -->
</ol>
<div class="carousel-inner" style="min-height: 400px;">
<!-- Carousel items -->
<div class="carousel-item active">
<img src="img/logo/chirpity_logo2.png" class="w-100 rounded pb-4" alt="Chiprity Nocmig">
<div class="text-center pb-4">
<h5>Welcome to Chirpity Nocmig</h5>
<p>This tour will highlight a few of the key features of the application. Click the right arrow for the next item</p>
</div>
</div>
<div class="carousel-item" data-element-selector="#navbarSettings">
<img src="img/logo/chirpity_logo2.png" class="w-100 rounded pb-4" alt="Chiprity Nocmig">
<div class="text-start pb-4 ms-3">
<h5 class="text-center">Getting Started</h5>
<ol class="ps-5 ms-5">
<li>First off, set your location in the settings menu.</li>
<li>Next, consider which model best suits your needs:</li>
<ul>
<li><b>Chirpity</b> is tuned for nocturnal migration,<br> but only has birds on the British list</li>
<li><b>BirdNET</b> is trained on global bird species</li>
</ul>
</ol>
</div>
</div>
<div class="carousel-item" data-element-selector="#filter-panel">
<img src="img/logo/chirpity_logo2.png" class="w-100 rounded pb-4" alt="Chiprity Nocmig">
<div class="text-center pb-4">
<h5>Quick access settings panel</h5>
<p>The icons here allow you to qucikly toggle some frequently used settings.
These include:
<div class="w-75 ms-5">
<ol class="text-start ps-5">
<li>Nocmig mode
<li>Audio filters
<li>Context-aware mode
<li>Fullscreen mode for the spectrogram
<li>Which detection list to use
<li>And the confidence threshold.
</ol>
</div>
Explanations for each of these settings can be found under "Settings" in the Help menu.
</p>
</div>
</div>
<div class="carousel-item" data-element-selector="#fileContainer">
<img src="img/logo/chirpity_logo2.png" class="w-100 rounded pb-4" alt="Chiprity Nocmig">
<div class="text-center pb-4">
<h5>Context Menus</h5>
<p>Most of the tools can be accessed within context menus. These pop up when you
right-click the mouse.
There are context menus for detections, selected regions on the spectrogram and
the filename.
</p>
</div>
</div>
<div class="carousel-item" data-element-selector="#navbarRecords">
<img src="img/logo/chirpity_logo2.png" class="w-100 rounded pb-4" alt="Chiprity Nocmig">
<div class="text-center pb-4">
<h5>Saved Records</h5>
<p>You can save records for future reference from the Records menu. Here you will
also find the Chart and Explore
sections of the Application. These allow you to revisit the detections you have
saved and view charts of species'
occurance over time </p>
</div>
</div>
<!-- Add more carousel items as needed -->
</div>
<!-- Carousel navigation controls -->
<a class="carousel-control-prev" href="#carouselExample" role="button" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExample" role="button" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</a>
</div>
</div>
<div class="modal-footer justify-content-center">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Navigation bar -->
<div id="navPadding" class="position-absolute top-0 w-100">
<nav class="navbar navbar-expand-md navbar-dark bg-dark" id="primary_nav_wrap">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#main_nav"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main_nav">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" data-bs-toggle="dropdown">
File
</a>
<ul class="dropdown-menu">
<li><a id="open" class="dropdown-item" href="#">
<span class="material-symbols-outlined">file_open</span> Open Audio
File(s) <span class="shortcut float-end">Ctrl+O</span></a>
</li>
<hr class="dropdown-divider">
<li><a class="dropdown-item disabled" id="saveCSV" href="#">
<span class="material-symbols-outlined">ios_share</span> Export Results
to CSV</a>
</li>
<li><a class="dropdown-item disabled" id="export-audio" href="#">
<span class="material-symbols-outlined">music_note</span> Export Selected
Audio <span class="shortcut float-end">Ctrl+E</span></a>
</li>
<li><a class="dropdown-item disabled" id="saveLabels" href="#">
<span class="material-symbols-outlined">label</span> Save Audacity
Labels</a>
</li>
<hr class="dropdown-divider">
<li><a class="dropdown-item" href="#" id="exit">
<span class="material-symbols-outlined">highlight_off</span> Exit</a>
</li>
</ul>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarRecords" role="button"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Records
</a>
<ul class="dropdown-menu" aria-labelledby="navbarRecords">
<li class="dropdown-item disabled" id="save2db">
<span class="material-symbols-outlined">archive</span> Save to Archive
<span class="shortcut float-end">Ctrl+S</span>
</li>
<li class="dropdown-item" id="export2audio">
<span class="material-symbols-outlined">music_note</span> Export Audio Clips
</li>
<li class="dropdown-divider"></li>
<li class="dropdown-item disabled" id="charts">
<span class="material-symbols-outlined">assessment</span> View charts
</li>
<li class="dropdown-item disabled" id="explore">
<span class="material-symbols-outlined">explore</span> Explore Archive
</li>
<li class="dropdown-divider"></li>
<li class="dropdown-item" id="purge-file">
<span class="material-symbols-outlined">unarchive</span> Remove Current File From
Archive
</li>
<li class="dropdown-item d-none" id="dataset">
<span class="material-symbols-outlined">dataset</span> Create Dataset
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarAnalysis" role="button"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Analysis
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item text-danger" href="#" id="warmup">Model Warming up
<div class="spinner-grow spinner-grow-sm" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</a></li>
<li><a class="dropdown-item disabled" href="#" id="analyse">
<span class="material-symbols-outlined">search</span> Analyse File
<span class="shortcut float-end">Ctrl+A</span> </a></li>
<li><a class="dropdown-item disabled" href="#" id="analyseSelection">
<span class="material-symbols-outlined">manage_search</span> Analyse Selected
Interval</a></li>
<li><a class="dropdown-item disabled" href="#" id="analyseAll">
<span class="material-symbols-outlined">search</span> Analyse All Open
Files <span class="shortcut float-end">Ctrl+Shift+A</span></a>
</li>
<li class="dropdown-divider"></li>
<li><a class="dropdown-item disabled" href="#" id="reanalyse">
<span class="material-symbols-outlined">youtube_searched_for</span> Re-analyse
File</a></li>
<li><a class="dropdown-item disabled" href="#" id="reanalyseAll">
<span class="material-symbols-outlined">youtube_searched_for</span> Re-analyse All
Open Files</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" id="navbarSettings" onclick="placeMap('settingsMap')"
data-bs-toggle="dropdown" data-bs-auto-close="false">Settings</a>
<ul id="settingsMenu" class="nav-item dropdown-menu">
<li>
<form id="settingsForm" class="fs-6">
<div class="row">
<div class="col-6 pe-0">
<fieldset class="border rounded m-2 p-1">
<legend style="font-size: large">Predictions</legend>
<div class="form-group rounded p-2 mb-2 bg-light"><span
class="circle"
title="Determines the minimum confidence required for results to be returned">?</span>
<label for="confidence">Set confidence threshold:</label>
<div class="input-group">
<input type="range" class="form-control-range"
id="confidence" min="5" max="100" step="5">
<div class="input-group-append">
<span class="input-group-text"
id="confidence-value">50%</span>
</div>
</div>
</div>
<div class="form-group rounded p-2 mb-2 bg-light">
<span class="circle"
title="Filters the detections returned in results.">?</span>
<div class="row pe-3">
<label class="col-auto ps-0" for="list-to-use">List:</label>
<select class="form-select col" id="list-to-use">
<option value="location">Local Birds</option>
<option value="migrants">Nocturnal Birds</option>
<option value="birds">Birds</option>
<option value="everything">Everything</option>
</select>
</div>
</div>
<div class="form-group rounded p-2 mb-2 bg-light" id="species-threshold-el">
<div class="row">
<div class="input-group col">
<span class="input-group-text pe-2">Threshold:</span>
<input id="species-frequency-threshold" type="number"
class="form-control ps-2 rounded-3 w-25" value="0.005" step="0.001" min="0.001" max="1" value="0.03"
aria-label="species frequency threshold" aria-describedby="species-frequency-threshold">
<span class="circle"
title="Set the minimum eBird checklist frequency for a bird to be included">?</span>
</div>
</div>
</div>
<div class="form-group rounded p-2 mb-2 bg-light">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox"
role="switch" id="nocmig">
<label class="form-check-label" for="nocmig">Nocmig
mode</label>
<span class="circle"
title="When enabled, Nocmig mode only searches for detections at night">?</span>
</div>
</div>
</fieldset>
<fieldset class="border rounded m-2 p-1">
<legend style="font-size: large">Default Location <span
class="circle me-2"
title="Location is used to determine dawn and dusk times for recordings">?</span>
</legend>
<div class="form-group rounded p-2 mb-2 bg-light">
<div class="row">
<div class="input-group col">
<span class="input-group-text pe-2">Lat:</span>
<input id="latitude" type="text"
class="form-control ps-2 " placeholder="0.0"
aria-label="Latitude" aria-describedby="latitude">
<span class="input-group-text pe-2">Lon:</span>
<input id="longitude" type="text"
class="form-control ps-2" placeholder="0.0"
aria-label="Longitude" aria-describedby="longitude">
</div>
</div>
<div id="settingsMap" class="mt-2 border border-secondary rounded" style="height: 200px;"></div>
<div class="mt-2" id="place"></div>
</div>
</fieldset>
</div>
<div class="col-6 ps-0">
<fieldset class="border rounded m-2 p-1 bg-warning">
<legend style="font-size: large"><span
class="material-symbols-outlined align-middle"
title="Experimental">science</span> Experimental features
</legend>
<div class="form-group rounded p-2 mb-2 bg-light">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox"
role="switch" id="context">
<label class="form-check-label" for="context">
Context mode
</label>
<span class="circle"
title="When enabled, context mode adapts predictions by analyzing the surrounding context.">?</span>
</div>
</div>
<div class="col me-auto">
<div class="form-group rounded p-2 mb-2 bg-light">
<span class="circle"
title="Ignore samples with just background noise. Value is the minimum signal strength to look at.">?</span>
<label for="snrValue" class="form-label">
SNR filter:
</label>
<div class="input-group">
<input type="range" class="form-control-range" min="0"
max="10" step="0.5" id="snrValue">
<div class="input-group-append">
<span class="input-group-text"
id="SNR-threshold">0</span>
</div>
</div>
</div>
</div>
<div class="col me-auto">
<div class="form-group rounded p-2 mb-2 bg-light">
<span class="circle"
title="When enabled, removes low frequency noise below the threshold.">?</span>
<label for="HighPassFrequency" class="form-label">
High Pass filter:
</label>
<div class="input-group me-0 p-0">
<input type="range" class="form-control-range" min="0"
max="2500" step="25" id="HighPassFrequency">
<div class="input-group-append">
<span class="input-group-text"
id="HP-threshold">0</span>
</div>
</div>
</div>
<div class="form-group rounded p-2 mb-2 bg-light">
<span class="circle"
title="When used, attenuates low frequency noise below the frequency thresshold.">?</span>
<label for="lowShelfFrequency" class="form-label">
Low Shelf filter:
</label>
<div class="input-group me-0 p-0">
<input type="range" class="form-control-range" min="0"
max="2500" step="100" id="lowShelfFrequency">
<div class="input-group-append">
<span class="input-group-text"
id="LowShelf-threshold">0</span>
</div>
</div>
<div class="row pe-3 mt-2">
<label for="attenuation" class="form-label col">
Attenuation:
</label>
<div class="input-group me-0 col">
<input type="range" class="form-control-range"
min="0" max="50" id="attenuation">
<div class="input-group-append">
<span class="input-group-text"
id="attenuation-threshold">0 dB</span>
</div>
</div>
</div>
</div>
</div>
</fieldset>
<fieldset class="border rounded m-2 p-1">
<legend style="font-size: large">Spectrogram</legend>
<div class="form-group rounded p-2 mb-2 bg-light">
<div class="row pe-3">
<label class="col" for="colourmap">Colourmap:</label>
<select class="form-select col" id="colourmap">
<option value="greys">Greyscale</option>
<option value="bone">Bone</option>
<option value="turbidity">Turbidity</option>
<option value="chlorophyll">Chlorophyll</option>
<option value="viridis">Viridis</option>
<option value="cdom">CDom</option>
<option value="temperature">Temperature</option>
<!-- <option value="density">Density</option>-->
<!-- <option value="oxygen">Oxygen</option>-->
<!-- <option value="copper">Copper</option>-->
<!-- <option value="earth">Earth</option>-->
<option value="inferno">Inferno</option>
<option value="magma">Magma</option>
<option value="plasma">Plasma</option>
<option value="hot">Hot</option>
<!-- <option value="cubehelix">CubeHelix</option>-->
<!-- <option value="phase">Phase</option>-->
<!-- <option value="YlOrRd">Yellow/red</option>-->
<!-- <option value="picnic">Picnic</option>-->
<!-- <option value="electric">Electric</option>-->
<!-- <option value="bluered">BlueRed</option>-->
<!-- <option value="blackbody">Blackbody</option>-->
<!-- <option value="rainbow">Rainbow</option>-->
<!-- <option value="rainbow-soft">Rainbow</option>-->
</select>
</div>
</div>
<div class="form-group rounded p-2 mb-2 bg-light">
<div class="row pe-3">
<label class="col" for="timelineSetting">Timeline:</label>
<select class="form-select col" id="timelineSetting">
<option value="timecode">Timecode</option>
<option value="timeOfDay">Time of day</option>
</select>
</div>
</div>
</fieldset>
</div>
</div>
<fieldset class="border rounded m-2 p-1">
<legend style="font-size: large">System</legend>
<div class="container">
<div class="row">
<div class="col ps-0">
<div class="form-group rounded p-2 mb-2 bg-light">
<div class="row pe-3">
<label class="col">Backend:</label><br>
<div class="col">
<div class="form-check">
<input class="form-check-input" type="radio"
name="backend" id="tensorflow"
value="tensorflow" checked>
<label class="form-check-label" for="tensorflow">
CPU
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio"
name="backend" id="webgl" value="webgl">
<label class="form-check-label" for="webgl">
GPU
</label>
</div>
<!-- <div class="form-check">
<input class="form-check-input" type="radio"
name="backend" id="webgpu" value="webgpu">
<label class="form-check-label" for="webgpu">
WebGPU
</label>
</div> -->
</div>
<div class="col"><span class="circle"
title="The GPU backend may speed up processing if you have a dedicated graphics card.">?</span>
</div>
</div>
</div>
</div>
<div class="col pe-0">
<div class="form-group rounded p-2 mb-2 bg-light">
<span class="circle"
title="The number of parallel predictions to run">?</span>
<label for="thread-slider">Threads:</label>
<div class="input-group">
<input type="range" class="form-control-range"
id="thread-slider" min="1" max="24">
<div class="input-group-append">
<span class="input-group-text"
id="threads-value">12</span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col ps-0">
<div class="form-group rounded p-2 mb-2 bg-light">
<div class="row pe-3">
<label class="col" for="model-to-use">Model:</label>
<select class="form-select col" id="model-to-use">
<option value="v2">Chirpity</option>
<option value="v2.4">BirdNet</option>
<!-- <option value="v4">Test chirp</option> -->
</select>
</div>
</div>
</div>
<div class="col pe-0">
<div class="form-group rounded p-2 mb-2 bg-light">
<span class="circle"
title="Optimising the batch size can increase processing speed on longer files. If it is too large, Chirpity may run out of memory and crash when predicting. If that happens, reduce batch size.">?</span>
<label for="batch-size">Batch Size:</label>
<div class="input-group">
<input type="range" class="form-control-range"
id="batch-size" min="0" max="7">
<div class="input-group-append">
<span class="input-group-text"
id="batch-size-value">2</span>
</div>
</div>
</div>
</div>
</div>
</div>
</fieldset>
<fieldset class="border rounded m-2 p-1">
<legend style="font-size: large">Audio Export</legend>
<div class="container">
<div class="row">
<div class="col ps-0">
<div class="form-group rounded p-2 mb-2 bg-light">
<div class="row pe-3">
<label class="col" for="format">Format:</label>
<select class="form-select col" id="format">
<option value="wav">WAV</option>
<option value="flac">FLAC</option>
<option value="mp3">MP3</option>
<!-- <option value="m4a">M4A</option> -->
<option value="opus">Opus</option>
</select>
</div>
</div>
</div>
<div class="col pe-0">
<div class="form-group rounded p-2 pe-0 mb-2 bg-light">
<div class="row pe-3">
<label class="col">Decorators:</label>
<div class="col">
<div class="form-check">
<input class="form-check-input" type="checkbox"
id="padding" value="2" checked>
<label class="form-check-label" for="padding">
Pad
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox"
id="fade" disabled value="1">
<label class="form-check-label" for="fade">
Fade
</label>
</div>
</div>
<div class="col"><span class="circle" title="'Pad' adds 2 seconds before and after a selection to the exported audio.
'Fade' adds a 1 second fade effect to the start and end of the audio">?</span></div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col ps-0">
<div class="form-group rounded p-2 mb-2 bg-light">
<div id="bitrate-container" class="row pe-3 ease">
<label class="col" for="bitrate">Bitrate:</label>
<select class="form-select col" id="bitrate">
<option value="320">320 kbps</option>
<option value="192">192 kbps</option>
<option value="160">160 kbps</option>
<option value="128">128 kbps</option>
<option value="96">96 kbps</option>
</select>
</div>
<div id="quality-container" class="row pe-3 ease">
<label class="col-2" for="quality">Compression
Level:</label>
<select class="form-select col" id="quality">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
</div>
</div>
<div class="col pe-0">
<div class="form-group rounded p-2 mb-2 bg-light">
<span class="circle me-2"
title="When enabled, stereo audio will be downmixed to mono">?</span>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox"
role="switch" id="downmix">
<label class="form-check-label" for="downmix">Convert to
mono</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col pe-0">
<div class="form-group rounded p-2 mb-2 text-bg-danger">
<span class="circle me-2"
title="Enter debug mode (requires Chirpity relaunch to take effect)">?</span>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox"
role="switch" id="debug-mode">
<label class="form-check-label" for="debug-mode">Debug mode</label>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</form>
</li>
</ul>
</li>
<li class="nav-item dropdown active">
<a class="nav-link dropdown-toggle" href="#" id="help" role="button"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Help
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" id="usage" href="#">
<span class="material-symbols-outlined">help</span> Using Chirpity</a>
</li>
<li>
<a class="dropdown-item" id="settings" href="#">
<span class="material-symbols-outlined">help</span> Settings
</a>
</li>
<li><a class="dropdown-item" id="keyboard" href="#">
<span class="material-symbols-outlined">help</span> Keyboard Shortcuts
</a>
</li>
<li><a class="dropdown-item" id="diagnostics" href="#">
<span class="material-symbols-outlined">insights</span> Diagnostics
</a>
</li>
<li>
<a class="dropdown-item" id="startTour" href="#">
<span class="material-symbols-outlined">tour</span> Show Tour
</a>
</li>
<li>
<a class="dropdown-item" id="bugs" href="#">
<span class="material-symbols-outlined">bug_report</span> Issues, queries or bugs?
</a>
</li>
<div class="dropdown-divider"></div>
<h6 class="fs-6 ps-3">FAQs</h6>
<li>
<a class="dropdown-item" id="species" href="#">
<span class="material-symbols-outlined">help</span> What species are detected?
</a>
</li>
</ul>
</li>
</ul>
</div>
<!-- navbar-collapse.// -->
<img src="img/logo/chirpity_logo2.png" alt="Chirpity bird calls: Identifying birds by sound"
height="40" />
</div>
<!-- container-fluid.// -->
</nav>
</div>
<!-- Content wrapper -->
<div id="contentWrapper">
<!-- DIV to Hold the bird list -->
<div id="allSpecies" class="d-none"></div>
<div id="seenSpecies" class="d-none"></div>
<!-- Diagnostic Modal -->
<div class="modal fade" id="diagnosticsModal" tabindex="-1" aria-labelledby="diagnosticsModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header justify-content-center">
<h5 class="modal-title" id="diagnosticsModalLabel">Diagnostic Information</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div id="diagnosticsModalBody" class="modal-body"></div>
<div class="modal-footer justify-content-center">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Record Entry Modal -->
<div class="modal fade" id="record-entry-modal" tabindex="-1" aria-labelledby="record-entry-modal-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header justify-content-center">
<h5 class="modal-title" id="record-entry-modal-label">Edit Record</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form id="record-entry-form">
<div id="record-entry-modal-body" class="modal-body">
<div class="row">
<div class="col-8" id="record-entry-birdlist"></div>
<div class="col hide-in-batch">
<div class="form-floating mb-3">
<input type="number" id="call-count" class="form-control" min="1">
<label for="call-count">Call Count</label>
</div>
</div>
</div>
<fieldset class="border ps-3 pt-1">
<label for="record-label" class="text-muted" style="font-size: .75em">Call Type</label><br>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="record-label" id="label-local" value="Local">
<label class="form-check-label" for="label-local">Local</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="record-label" id="label-nocmig" value="Nocmig">
<label class="form-check-label" for="label-nocmig">Nocmig</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="record-label" id="label-unknown" value="">
<label class="form-check-label" for="label-unknown">Not specified</label>
</div>
</fieldset>
<div class="form-floating mt-3 hide-in-batch">
<textarea class="form-control" id="record-comment" style="height: 200px"></textarea>
<label for="record-comment">Comments</label>
<input type='hidden' id='DBmode'>
<input type='hidden' id='batch-mode'>
<input type='hidden' id='original-id'>
</div>
</div>
<div class="modal-footer justify-content-center">
<button id="record-add" type="submit" class="btn btn-success">Add</button>
<button id="record-dismiss" type="button" class="btn btn-danger" data-bs-dismiss="modal">Dismiss</button>
</div>
</form>
</div>
</div>
</div>
<!-- Help Modal -->
<div class="modal fade" id="helpModal" tabindex="-1" aria-labelledby="helpModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header justify-content-center">
<h5 class="modal-title" id="helpModalLabel">Help</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div id="helpModalBody" class="modal-body"></div>
<div class="modal-footer justify-content-center">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Species Modal -->
<div class="modal fade" id="speciesModal" tabindex="-1" aria-labelledby="speciesModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered ">
<div class="modal-content">
<div class="modal-header justify-content-center">
<h5 class="modal-title" id="speciesModalLabel">Current Species List</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div id="speciesModalBody" class="modal-body"></div>
<div class="modal-footer justify-content-center">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Analyse selection modal -->
<div class="modal fade" id="detectionsModal" tabindex="-1" aria-labelledby="detectionsModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header justify-content-center text-bg-dark">
<h5 class="modal-title" id="detectionsModalLabel">Audio Selection Analysis</h5>
</div>
<div id="detectionsModalBody" class="modal-body p-0 ">
<table id='selectionResults' class="text-center table w-100 align-middle">
<thead id="selectionResultsHead">
<tr class="text-bg-dark">
<th class="text-start timeOfDay">Time</th>
<th class="text-start timestamp">Position</th>
<th class="text-start">Species</th>
</tr>
</thead>
<tbody class="text-dark" id="selectionResultTableBody">
</tbody>
</table>
</div>
<div class="modal-footer justify-content-center">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Goto Modal -->
<div class="modal fade" id="gotoModal" tabindex="-1" aria-labelledby="gotoModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-sm">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="gotoModalLabel">Go to Position</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="gotoForm">
<div class="mb-3">
<label for="timeInput" class="form-label">
<input type="text" class="form-control" id="timeInput" name="timeInput"
placeholder="Enter timecode">
<small id="gotoHelp" class="form-text text-muted">Accepts seconds, mm:ss and
hh:mm:ss.</small>
</label>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="go">Go</button>
</div>
</div>
</div>
</div>
<!-- Location Modal -->
<div class="modal fade" id="locationModal" tabindex="-1" aria-labelledby="locationModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="locationModalLabel">Set Location</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form id="locationForm" class="fs-6">
<div class="modal-body">
<fieldset class="border rounded m-2 p-1">
<legend class="h6">Pick A Saved Location</legend>
<div class="form-group rounded p-2 mb-2 bg-light">
<div class="row">
<div class="input-group col">
<div class="form-group w-100">
<label for="savedLocations"></label>
<select class="form-select" id="savedLocations">
</select>
</div>
</div>
</div>
</div>
</fieldset>
<fieldset class="border rounded m-2 p-1">
<legend class="h6">Add, Edit or Delete Location</legend>
<div class="form-group rounded p-2 mb-2 bg-light">
<div class="row">
<div class="input-group col">
<span class="input-group-text pe-2">Lat:</span>
<input id="customLat" type="text" class="form-control ps-2"
placeholder="0.0" aria-label="Latitude" aria-describedby="customLat"
required>
<span class="input-group-text pe-2">Lon:</span>
<input id="customLon" type="text" class="form-control ps-2"
placeholder="0.0" aria-label="Longitude" aria-describedby="customLon"
required>
</div>
<div id="customLocationMap" class="mt-2 border border-secondary rounded" style="height: 200px"></div>
</div>
<div class="row">
<div class="input-group col">
<textarea class="mt-2 w-100" id="customPlace" spellcheck="false"
maxlength="100" required>...</textarea>
</div>
</div>
<div class="row d-none" id="location-batch-wrapper">
<div class="input-group col mt-2">
<input class="form-check-input" type="checkbox" value="" id="batchLocations">
<label class="form-check-label ps-2" for="batchLocations">
Update ALL open files to this location
</label>
</div>
</div>
</div>
</fieldset>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="set-location">Set Location</button>
</div>
</form>
</div>
</div>
</div>
<!-- Explore Div -->
<div id="exploreWrapper" class="p-1 m-1 row g-1 d-none justify-content-evenly">
<div class="col align-middle">
<div class="btn btn-light me-2 pt-3" id="exploreRange">
<span class="material-symbols-outlined align-bottom">date_range</span>
<span>Apply a date filter</span> <span class="material-symbols-outlined float-end">expand_more</span>
</div>
</div>
<div class="species-selector col" id="exploreSpeciesSearch">
<div id="explore-list" class="explore bird-list-wrapper form-floating"></div>
</div>
<div class="col">
<div id="explore-location-list" class="form-floating">
<select spellcheck="false" class="input form-select mb-3" aria-label=".form-select"
id="explore-locations"></select>
<label for="explore-locations">Location</label>
</div>
</div>
</div>
<!-- context menu-->
<div class="dropdown-menu dropdown-menu-sm" id="context-menu">
<a class="dropdown-item play"><span class='material-symbols-outlined'>play_circle</span> Play</a>
<a class="dropdown-item" href="#" id="context-analyse-selection"><span class="material-symbols-outlined">
search
</span> Analyse</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" id="create-manual-record" href="#"><span class="material-symbols-outlined">
edit_document
</span> Edit Record</a>
<a class="dropdown-item" id="context-create-clip" href="#"><span class="material-symbols-outlined">
music_note
</span> Export Audio Clip</a>
<a class="dropdown-item d-none" id="context-xc" href='#' target="xc">
<img src='img/logo/XC.png' alt='' style="filter:grayscale(100%);height: 1.5em"> Explore on
Xeno-Canto</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item d-none" id="context-delete" href="#">
<span class='delete material-symbols-outlined'>delete_forever</span> Delete Record</a>
</div>
<!-- End context menu -->
<!-- Spectrogram view -->
<div class="w-100 d-none" id="spectrogramWrapper">
<div>
<div class="bg-dark border border-secondary w-100" id="timeline"></div>
<div class="w-100" id="spectrogram">
</div>
<div class="w-100" id="waveform"></div>
</div>
<!-- Controls view -->
<div class="container-fluid p-1 text-bg-dark d-inline-flex" id="controlsWrapper" style="max-height: 50px">
<div id="filename" class="col-auto ps-1 overflow-visible flex-nowrap"></div>
<div id="unsaved-icon" class="material-symbols-outlined ms-2 me-2 text-warning d-none" title="There are unsaved edits">warning</div>
<div class="col-auto btn-group bg-dark ms-2 me-2 text-nowrap" role="group">
<button id="playToggle" class="p-1 pe-2 btn btn-outline-secondary">
<span class="material-symbols-outlined ">play_circle</span><span
class="align-middle d-none d-lg-inline"> Play </span>
/
<span class="material-symbols-outlined">pause</span><span
class="align-middle d-none d-lg-inline-block">Pause</span>
</button>
</div>
<div class="col btn-group bg-dark pe-2" role="group">
<button id="zoomIn" title="Zoom into the spectrogram (Ctrl +)" class="btn btn-outline-secondary"
style="max-width: 70px">
<span class="material-symbols-outlined zoom">zoom_in</span>
</button>
<button id="zoomOut" title="Zoom out of the spectrogram (Ctrl -)" class="btn btn-outline-secondary"
style="max-width: 70px"><span class="material-symbols-outlined zoom align-middle">zoom_out</span>
</button>