-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
151 lines (151 loc) · 4.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Switch Jockey</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="#">
<script src="https://unpkg.com/meyda/dist/web/meyda.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/7.0.0/math.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r99/three.min.js"></script>
<script src="scripts/audio.js" async></script>
<script src="scripts/models.js" async></script>
<script src="scripts/shaders.js" async></script>
<script src="scripts/display.js" async></script>
<link rel="stylesheet" type="text/css" href="styles/style.css">
</head>
<body>
<div class="bg" id="bg">
<div class="setup" id="ghLink">
<a href="https://github.com/amaclean199/switch-jockey" target="_blank">https://github.com/amaclean199/switch-jockey</a>
</div>
<div class="setup">
<label for="sets" id="labelChoose">Choose a provided set:</label>
<select name="sets" id="sets">
<option value="set1">Set 1</option>
<option value="set2">Set 2</option>
<option value="set3">Set 3</option>
</select>
</div>
<div class="setup">
<label for="customSet" id="labelCustom">Or upload a folder:</label>
<input id="customSet" name="customSet" type="file" webkitdirectory multiple/>
</div>
<div class="setup">
<button onclick="hideSettings()" id="startButton">START</button>
</div>
<div class="controls">
<label for="brightness">Brightness</label>
<input type="range"
id="brightnessRange"
name="brightness"
min="0.0"
max="1.0"
step="0.001"
value="1"
/>
</div>
<div class="controls">
<label for="change">Change</label>
<input type="range"
id="changeRange"
name="change"
min="0.0"
max="1.0"
step="0.001"
value="0.5"
/>
</div>
<div class="controls">
<button onclick="toggleSliders()">Toggle Sliders</button>
</div>
<div class="controls">
<label for="level" id="levelLabel">Level</label>
<input type="range"
id="levelRange"
name="level"
min="0.0"
max="0.5"
step="0.001"
value="0"
/>
</div>
<div class="controls">
<label for="valence" id="valenceLabel">Valence</label>
<input type="range"
id="valenceRange"
name="valence"
min="-1.0"
max="1.0"
step="0.001"
/>
</div>
<div class="controls">
<table id="valence-table">
<tbody>
<tr>
<td>Valence:</td>
<td>0.0</td>
</tr>
</tbody>
</table>
</div>
<div class="controls">
<label for="arousal" id="arousalLabel">Arousal</label>
<input type="range"
id="arousalRange"
name="arousal"
min="-1.0"
max="1.0"
step="0.001"
/>
</div>
<div class="controls">
<table id="arousal-table">
<tbody>
<tr>
<td>Arousal:</td>
<td>0.0</td>
</tr>
</tbody>
</table>
</div>
<div class="controls">
<label for="complexity" id="complexityLabel">Complexity</label>
<input type="range"
id="complexityRange"
name="complexity"
min="0.0"
max="1.0"
step="0.001"
value="0"
/>
</div>
<div class="controls">
<label for="contrast" id="contrastLabel">Contrast</label>
<input type="range"
id="contrastRange"
name="contrast"
min="0.0"
max="1.0"
step="0.001"
value="0"
/>
</div>
<div class="controls">
<label for="movement" id="movementLabel">Movement</label>
<input type="range"
id="movementRange"
name="movement"
min="0.0"
max="1.0"
step="0.001"
value="0"
/>
</div>
<canvas id="c"></canvas>
</div>
</body>
</html>