-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathannotation.html
More file actions
108 lines (93 loc) · 5.13 KB
/
annotation.html
File metadata and controls
108 lines (93 loc) · 5.13 KB
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
<html>
<head>
<title>ADL Music Annotation Tool</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="css/annotation.css">
</head>
<body id="body" onload="main()">
<div class="container pt-4">
<h2 class="text-center">Music Emotion Annotation Task</h2>
<!-- <h4 id="annotationStep" class="text-center">Step 1 - Calibration</h4> -->
</div>
<div class="container pt-4">
<div id="annotation-area" class="row">
<div class="col align-self-top">
<div class="p-3 mb-2 bg-danger text-white">
<h4>Instructions</h4>
<p>
<ul>
<li>Press and hold the point at the position that better represents the emotion of current part of the piece.</li>
<li>Click anywhere in the circle to move the point to that position.</li>
<li>Release the point to pause the piece.</li>
<!-- <li>Hold down the point to play the piece and ANNOTATE it.</li> -->
<!-- <li>Annotation only takes place while point is being held down.</li> -->
<li>Press L to show/hide emotion labels.</li>
</ul>
</p>
</div>
<div class="p-3 mb-2 bg-light text-dark">
<h4>Valence</h4>
<p>Represents the sentiment of the piece. From <b>NEGATIVE</b> to <b>POSITIVE</b>.</p>
<h4>Arousal</h4>
<p>Represents the intensity of the piece. From <b>MILD</b> to <b>INTENSE</b>.</p>
</div>
<div class="p-3 mb-2 bg-light text-dark">
<div class="row">
<div class="col-8">
<h4 id="progressTitle"></h4>
</div>
<div class="col text-right">
<p id="remainingTime">0:00/0:00</p>
</div>
</div>
<div class="progress text-center">
<div id="progress" class="progress-bar progress-bar-striped bg-success" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 0%"></div>
</div>
</div>
</div>
<div class="col text-center bg-white text-dark">
<h4 id="piece-name"></h4>
<canvas id="circumplex-canvas" width="500" height="500"></canvas>
<audio id="audio-controls">
<source id="audio-source" src="" type="audio/mpeg">
</audio>
<div>
<p id="circumplex-labels">Valence: 0.0</br>Arousal: 0.0</p>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true" data-backdrop="static">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalTitle"></h5>
</div>
<div class="modal-body">
<p id="modalBodyFirstParagraph"></p>
<p id="modalBodySecondParagraph"></p>
</div>
<div class="modal-footer">
<button id="modalCloseButton" type="button" class="btn btn-secondary" data-dismiss="modal"></button>
<button id="modalConfirmationButton" type="button" class="btn btn-primary" data-dismiss="modal"></button>
</div>
</div>
</div>
</div>
<!-- Load lib scripts -->
<script src="js/lib/page-manager.js"></script>
<script src="js/lib/download-lib.js"></script>
<!-- Load annotation scripts -->
<script src="js/annotation/annotation-controller.js"></script>
<script src="js/annotation/annotation-firebase.js"></script>
<script src="js/annotation/annotation-canvas.js"></script>
<script src="js/annotation/annotation.js"></script>
<!-- Load bootstrap scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
</body>
</html>