-
Notifications
You must be signed in to change notification settings - Fork 317
/
Copy pathmelody_controls.html
115 lines (97 loc) · 4.51 KB
/
melody_controls.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
<!-- Copyright 2020 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<link rel="stylesheet" href="./style.css">
<title>Melody MusicVAE with Multiple Controls</title>
</head>
<body>
<h1>Melody MusicVAE with Multiple Controls</h1>
<p>This demo uses <code><a href="https://g.co/magenta/musicvae">MusicVAE</a></code>
to model melodies conditioned on multiple control attributes.
</p>
<code id="generate-all"></code></p>
<h2>Melody Conditioned on Chord, Rhythm, and Shape</h2>
<section>
<h3>Interpolation (5 steps) <span id="generate-melody-controls"></span></h3>
<p>Interpolate between legato and staccato renditions of I'm a Little Teapot
in A major.</p>
<p><b>Input:</b> <code id="mel-controls-inputs"></code></p>
<p><b>Result:</b> <code id="mel-controls-interp"></code></p>
<p><b>It took:</b> <code id="mel-controls-interp-time"></code></p>
<br>
<h3>Sampling</h3>
<p>Sample from an up-down-up-down-flat melodic shape with a dotted eighth
note rhythm in C major.</p>
<p><b>It took:</b> <code id="mel-controls-sample-time"></code></p>
<p><b>Samples:</b> <code id="mel-controls-samples"></code></p>
</section>
<h2>Generate Rhythm Directly</h2>
<section>
<h3>Interpolation (5 steps) <span id="generate-melody-rhythm"></span></h3>
<p>Interpolate between melody rhythms.</p>
<p><b>Input:</b> <code id="mel-rhythm-inputs"></code></p>
<p><b>Result:</b> <code id="mel-rhythm-interp"></code></p>
<p><b>It took:</b> <code id="mel-rhythm-interp-time"></code></p>
<br>
<h3>Similar Rhythm Generation</h3>
<p>Generate rhythms similar to a source rhythm.</p>
<p><b>Source:</b> <code id="mel-rhythm-source"></code></p>
<p><b>Result:</b> <code id="mel-rhythm-similar"></code></p>
<p><b>It took:</b> <code id="mel-rhythm-similar-time"></code></p>
<br>
<h3>Sampling</h3>
<p>Sample new rhythms.</p>
<p><b>It took:</b> <code id="mel-rhythm-sample-time"></code></p>
<p><b>Samples:</b> <code id="mel-rhythm-samples"></code></p>
</section>
<h2>Generate Shape Directly</h2>
<section>
<h3>Interpolation (5 steps) <span id="generate-melody-shape"></span></h3>
<p>Interpolate between melody shapes.</p>
<p><b>Input:</b> <code id="mel-shape-inputs"></code></p>
<p><b>Result:</b> <code id="mel-shape-interp"></code></p>
<p><b>It took:</b> <code id="mel-shape-interp-time"></code></p>
<br>
<h3>Similar Shape Generation</h3>
<p>Generate shapes similar to a source shape.</p>
<p><b>Source:</b> <code id="mel-shape-source"></code></p>
<p><b>Result:</b> <code id="mel-shape-similar"></code></p>
<p><b>It took:</b> <code id="mel-shape-similar-time"></code></p>
<br>
<h3>Sampling</h3>
<p>Sample new shapes.</p>
<p><b>It took:</b> <code id="mel-shape-sample-time"></code></p>
<p><b>Samples:</b> <code id="mel-shape-samples"></code></p>
</section>
<h2>Sample Rhythm, Shape, and Melody Hierarchically</h2>
<section>
<h3><span id="generate-melody-multi"></span></h3>
<p>Sample a rhythm, a shape, and then a melody conditioned on those.</p>
<p><b>It took:</b> <code id="mel-multi-sample-time"></code></p>
<p><b>Rhythm / Shape / Melody:</b> <code id="mel-multi-seqs"></code></p>
<p><b>Ionian / Lydian / Mixolydian Melodies:</b> <code id="mel-multi-key-seqs"></code></p>
<br>
<h3>Similar Melody Generation</h3>
<p>Generate melodies from rhythms & shapes similar to the above.</p>
<p><b>Result:</b> <code id="mel-multi-similar"></code></p>
<p><b>It took:</b> <code id="mel-multi-similar-time"></code></p>
</section>
<section>
<p><b>Total Leaked Memory:</b> <code id="leaked-memory"></code></b></p>
</section>
<script src="melody_controls_bundle.js"></script>
</body>
</html>