-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.html
240 lines (234 loc) · 11.6 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html>
<html>
<head>
<title>Deep Drum</title>
<link href="https://fonts.googleapis.com/css?family=Unkempt|Nunito:700,300|Pacifico|Muli" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=.5, maximum-scale=12.0, minimum-scale=.25, user-scalable=yes"/>
<link rel="stylesheet" type="text/css" href="externals/css/materialize.min.css" />
<link rel="stylesheet" type="text/css" href="css/app.css">
</head>
<body>
<div class="deepdrum-container">
<div class="deepdrum-wrapper">
<div class="deepdrum-flex">
<div class="deepdrum-playback deepdrum-flex-items">
<div class="deepdrum-kit-selector">
<div id="deepdrum-top-controller" class="deepdrum-playback-controller">
<div class="deepdrum-modal-settings" id="deepdrum-modal-settings">
<div class="deepdrum-modal-settings-holder">
<button id="deepdrum-modal-close" class="deepdrum-modal-close" onclick="closeSettings()">X</button>
<button id="deepdrum-modal-apply" class="deepdrum-modal-apply" onclick="applySettings()"></button>
<div class="deepdrum-modal-settings-wrapper">
<div class="deepdrum-modal-settings-container">
<h3>grid</h3>
<div class="deepdrum-settings-box">
<div class="deepdrum-settings-flex"><span class="text-settings">Length</span><span id="text-slider-bar-length" class="text-settings-value"></span> <span nexus-ui="slider" id="slider-bar-length"></span></div>
<div class="deepdrum-settings-flex"><span class="text-settings">Beats per bar</span><span id="text-slider-beats-per-bar" class="text-settings-value"></span> <span nexus-ui="slider" id="slider-beats-per-bar"></span></div>
<div class="deepdrum-settings-flex"><span class="text-settings">Split beats into</span><span id="text-slider-split-beats-into" class="text-settings-value"></span> <span nexus-ui="slider" id="slider-split-beats-into"></span></div>
</div>
</div>
</div>
<div class="deepdrum-modal-settings-wrapper">
<div class="deepdrum-modal-settings-container">
<h3>drum kit</h3>
<div class="deepdrum-settings-box">
<select id="deepdrum-kit" class="deepdrum-select" onchange="updateKit(this.id)">
<option value="analog">analog</option>
<option value="electronic">electronic</option>
<option value="hiphop" selected>hiphop</option>
<option value="percussion">percussion</option>
</select>
</div>
</div>
</div>
<div class="deepdrum-modal-settings-wrapper">
<div class="deepdrum-modal-settings-container">
<h3>lead</h3>
<div class="deepdrum-settings-box">
<select id="deepdrum-select-synth" class="deepdrum-select" onchange="updateSynthLead(this.id)">
<option value="mono">monosynth</option>
<option value="poly">polysynth</option>
<option value="fat">fatsynth</option>
<option value="piano" selected>piano</option>
<option value="guitar">guitar</option>
</select>
</div>
</div>
</div>
<div class="deepdrum-modal-settings-wrapper">
<div class="deepdrum-modal-settings-container">
<h3>bass</h3>
<div class="deepdrum-settings-box">
<select id="deepdrum-select-synth-bass" class="deepdrum-select" onchange="updateSynthBass(this.id)">
<option value="mono">monosynth</option>
<option value="poly">polysynth</option>
<option value="fat">fatsynth</option>
<option value="piano" selected>piano</option>
</select>
</div>
</div>
</div>
<div class="deepdrum-modal-settings-wrapper">
<div class="deepdrum-modal-settings-container">
<h3>scale</h3>
<div class="deepdrum-settings-box" id="deepdrum-box-select-scale">
<select id="deepdrum-select-scale" class="deepdrum-select" onchange="updateScale(this.id)">
<option value="C">C</option>
<option value="C#">C#</option>
<option value="D">D</option>
<option value="D#">D#</option>
<option value="E">E</option>
<option value="F">F</option>
<option value="F#">F#</option>
<option value="G">G</option>
<option value="G#">G#</option>
<option value="A" selected>A</option>
<option value="A#">A#</option>
<option value="B">B</option>
</select>
</div>
<div class="deepdrum-settings-box" id="deepdrum-box-select-mode">
<select id="deepdrum-select-mode" class="deepdrum-select" onchange="updateMode(this.id)">
<option value="ionian">ionian</option>
<option value="dorian">dorian</option>
<option value="phrygian">phrygian</option>
<option value="lydian">lydian</option>
<option value="myxolydian">myxolydian</option>
<option value="aeolian" selected>aeolian</option>
<option value="locrian">locrian</option>
</select>
</div>
</div>
</div>
<div class="deepdrum-modal-settings-wrapper">
<div class="deepdrum-modal-settings-container">
<h3>tuners (deepdrum)</h3>
<div class="deepdrum-playback-control">
<div class="deepdrum-playback-controller">
<div class="deepdrum-control-box">
<span nexus-ui="dial" id="dial-tempo"></span>
<p id="text-tempo" class="text-property">tempo</p>
</div>
<div class="deepdrum-control-box">
<span nexus-ui="dial" id="dial-temperature-drum"></span>
<p id="text-temperature-drum" class="text-property">temperature</p>
</div>
<div class="deepdrum-control-box">
<span nexus-ui="dial" id="dial-seed"></span>
<p id="text-seed" class="text-property">seed</p>
</div>
<div class="deepdrum-control-box">
<span nexus-ui="dial" id="dial-swing"></span>
<p id="text-swing" class="text-property">swing</p>
</div>
<div class="deepdrum-control-box">
<span nexus-ui="dial" id="dial-swing-sub"></span>
<p id="text-swing-sub" class="text-property">swing sub</p>
</div>
</div>
</div>
</div>
</div>
<div class="deepdrum-modal-settings-wrapper">
<div class="deepdrum-modal-settings-container">
<h3>tuners (deeparp)</h3>
<div class="deepdrum-playback-control">
<div class="deepdrum-playback-controller">
<div class="deepdrum-control-box">
<span nexus-ui="dial" id="dial-temperature-arp"></span>
<p id="text-temperature-arp" class="text-property">temperature</p>
</div>
<div class="deepdrum-control-box hide-box" id="box-dial-arp-length">
<span nexus-ui="dial" id="dial-arp-length"></span>
<p id="text-arp-length" class="text-property">arp length</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="deepdrum-top-control-box">
<img src="images/avengers.png" class="avengers-logo" />
</div>
<div class="deepdrum-top-control-box">
<span nexus-ui="toggle" id="toggle-midi"></span>
<span class="text-description">midi</span>
</div>
<div class="deepdrum-top-control-box">
<span nexus-ui="radiobutton" id="radio-melody" style="margin-bottom: 5px !important;"></span>
<span class="text-description" id="text-melody">piano</span>
</div>
<div class="deepdrum-top-control-box">
<span nexus-ui="toggle" id="toggle-play-mode"></span>
<span class="text-description" id="text-play-mode">song</span>
</div>
<div class="deepdrum-top-control-box">
<button id="deepdrum-settings" class="deepdrum-settings" onclick="showSettings(this.id)"></button>
<span class="text-description">settings</span>
</div>
</div>
</div>
<div class="hide-box deepdrum-pattern-tag" id="deepdrum-pattern-tag">
<div id="deepdrum-tag-holder" class="deepdrum-tag-holder">
<p class="deepdrum-tag-text">patterns</p>
<button id="btn-tag-a" class="btns-tag" onclick="enableTag(this.id)">A</button>
<button id="btn-tag-plus" class="btns-tag-plus" onclick="addTag(this.id)">+</button>
</div>
</div>
<div class="deepdrum-step-sequencer">
<div id="deepdrum-drum-container" class="deepdrum-instrument-container">
</div>
</div>
<div class="deepdrum-playback-control deepdrum-arp-box-wrapper" id="deepdrum-arp-box-wrapper">
<div class="hide-box deepdrum-piano-box" id="deepdrum-piano-box">
<div class="deepdrum-piano" id="deepdrum-piano"></div>
</div>
<div class="hide-box deepdrum-arp-box" id="deepdrum-arp-box"></div>
<div class="hide-box deepdrum-gpad-box" id="deepdrum-gpad-box"></div>
</div>
<div class="deepdrum-timeline-container animated" id="deepdrum-timeline-container">
<div class="deepdrum-timeline" id="deepdrum-timeline">
<div id="deepdrum-timeline-indicator" class="deepdrum-timeline-indicator"></div>
<button id="deepdrum-timeline-add" class="deepdrum-timeline-add animated jello infinite" onclick="addPatternInTimeline(this.id)"></button>
<button id="deepdrum-timeline-clear" class="deepdrum-timeline-clear" onclick="clearPatternInTimeline()"></button>
</div>
</div>
<div class="deepdrum-buttons-controller">
<button id="deepdrum-regenerate" class="deepdrum-regenerate" onclick="predictSequence(this.id)" title="Regenerate!"></button>
<button id="deepdrum-play" class="deepdrum-play" onclick="playDeepDrum(this.id)" title="Play!"></button>
<button id="deepdrum-record" class="deepdrum-record" onclick="downloadPattern(this.id)" title="Record!"></button>
</div>
<p class='deepdrum-beta'>beta</p>
</div>
</div>
</div>
<div id="deepdrum-snackbar" class="deepdrum-snackbar"></div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@magenta/[email protected]/dist/magentamusic.min.js"></script>
<script type="text/javascript" src="js/nexus.js"></script>
<script type="text/javascript" src="js/tone.js"></script>
<script type="text/javascript" src="js/tonal.js"></script>
<script type="text/javascript" src="js/chord_finder.js"></script>
<script type="text/javascript" src="js/reverse_midi_map.js"></script>
<script type="text/javascript" src="js/update_controls.js"></script>
<script type="text/javascript" src="js/arp_and_bass.js"></script>
<script type="text/javascript" src="js/multiple_tag.js"></script>
<script type="text/javascript" src="js/timeline.js"></script>
<script type="text/javascript" src="js/gpad.js"></script>
<script type="text/javascript" src="js/deepdrum.js"></script>
<script type="text/javascript">
setTimeout(function(){
// dummy start note to load buffer
//temp_vol = lead_synth.volume.value;
//lead_synth.volume.value = -200;
lead_synth.triggerAttackRelease('C3', '8n');
lead_synth.triggerAttackRelease('E3', '8n');
lead_synth.triggerAttackRelease('G3', '8n');
lead_synth.triggerAttackRelease('C3', '8n');
lead_synth.triggerAttackRelease('E3', '8n');
//lead_synth.volume.value = temp_vol;
}, 7000);
</body>
</html>