-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (83 loc) · 4.24 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
<html>
<head>
<title>VAE+RNN</title>
<script src='https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.1.2/dist/tf.min.js'></script>
<script src="https://cdn.jsdelivr.net/npm/@magenta/music@1.4.2"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body class="container">
<div>
Program that generates a tune with VAE than adjusts its length with a RNN.
<a href='https://magenta.tensorflow.org/'>#Magenta</a>
</div>
<p>You need to wait a minute before you start.</p><br>
<div class="input-group mb-3">
<div class='input-group-prepend'>
<span class='input-group-text'>Steps:</span>
</div>
<input type='number' value='50' id='steps' class="form-control"/><br>
</div>
<div class="input-group mb-3">
<div class='input-group-prepend'>
<span class='input-group-text'>Variance:</span>
</div>
<input type='range' min='1' max='2' step='0.1' value='1.5' id='temp' class="form-control"/><br>
</div>
<div class='input-group mb-3'>
<div class='input-group-prepend'>
<span class='input-group-text'>VAE Model:</span>
</div>
<select id='vae' class="form-control">
<option disabled>-Drums-</option>
<option value="drums_2bar_lokl_small">Small Two Bar with Low KL Divergence</option>
<option value="drums_2bar_hikl_small">Small Two Bar with High KL Divergence</option>
<option value="drums_2bar_nade_9_q2">Nine Class Two Bar with NADE Decoder</option>
<option value="drums_4bar_med_q2">Medium Four Bar</option>
<option value="drums_4bar_med_lokl_q2">Medium Four Bar with Low KL Divergence</option>
<option disabled>-Melodys-</option>
<option value="mel_2bar_small">Small 2 Bar</option>
<option value="mel_4bar_med_q2">Medium 4 Bar</option>
<option value="mel_4bar_med_lokl_q2">Medium 4 Bar with Low KL Divergence</option>
<option value="mel_4bar_small_q2">Small 4 Bar</option>
<option value="mel_chords" disabled>Chords</option>
<option value="mel_16bar_small_q2">Small 26 Bar</option>
<option disabled>-Trios-</option>
<option value="trio_4bar_lokl_small_q1">Small 4 Bar with Low KL Divergence</option>
<option disabled>-Multitrack-</option>
<option value="multitrack">Multitrack</option>
<option value="multitrack_med">Medium Multitrack</option>
<option value="multitrack_med_fb256">Medium Multitrack (Lite)</option>
<option value="multitrack_chords">Multitrack with Chords</option>
<option value="multitrack_med_chords">Medium Multitrack with Chords</option>
<option value="multitrack_med_chords_fb256">Medium Multitrack with Chords (Lite)</option>
<option disabled>-GrooVAE-</option>
<option value="groovae_2bar_humanize">Humanized Two Bar GrooVAE</option>
<option value="groovae_2bar_tap2drum">Two Bar "tap2drum" GrooVAE</option>
<option value="groovae_4bar">Four Bar GrooVAE</option>
</select><br>
</div>
<div class="input-group mb-3">
<div class='input-group-prepend'>
<span class='input-group-text'>RNN Model:</span>
</div>
<select id='rnn' class="form-control">
<option value="basic_rnn">Basic</option>
<option value="melody_rnn">Melody</option>
<option value="drum_kit_rnn">Drums</option>
</select><br>
</div>
<div class="btn-group btn-group-lg">
<button type='button' value='Load Model' id='load' class="btn btn-secondary">LODE</button><br>
<button type='button' id='play' class="btn btn-primary">►</button><br>
<button type='button' value='GENERATE' id='gen' class="btn btn-secondary">GEN</button><br>
</div><br>
<canvas id='canvas'></canvas>
<script src='main.js'></script>
<p> © 2019 Rocketblaster247 </p>
</body>
</html>