-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvisualization.html
More file actions
53 lines (50 loc) · 1.61 KB
/
visualization.html
File metadata and controls
53 lines (50 loc) · 1.61 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>treblemaker</title>
<link rel='icon' href="/icon.png">
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
}
.scene {
position: absolute;
width: 100%;
height: 100vh;
background: url(images/introbg3.png) no-repeat center center;
background-size: cover;
}
.button {
position: absolute;
margin-top: 10%;
margin-left: 40%;
padding: 20px;
font-family: Quicksand;
font-size: 30px;
color: white;
border: 0px;
border-radius: 10px;
background-image: linear-gradient(to right, #2BC0E4 0%, #990099 90%);
}
</style>
<!-- Import tone.js -->
<script src="https://unpkg.com/tone"></script>
<!-- three.js -->
<script src="libs/three.js"></script>
<!-- perlin noise functionality -->
<script src="libs/perlin.js"></script>
<!-- Core library for magenta.js -->
<script src="https://cdn.jsdelivr.net/npm/@magenta/music@^1.0.0/es6/core.js"></script>
<!-- Import tensorflow.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/tensorflow/1.2.8/tf.min.js"></script>
<!--Magenta Music RNN model-->
<script src="https://cdn.jsdelivr.net/npm/@magenta/music@^1.20.0/es6/music_rnn.js"></script>
</head>
<body>
<canvas class="scene" id="canvas"></canvas>
<script src="script.js"></script>
</body>
</html>