-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
262 lines (231 loc) · 14.1 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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Propeller</title>
<!-- Include libraries -->
<script src="libs/soundfont-player.min.js"></script>
<script src="libs/midi-file/midi-parser.js"></script>
<script src="libs/midi-file/midi-writer.js"></script>
<script src="libs/FileSaver.js"></script>
<script src="libs/tuna-min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script>
<script src="libs/hammer.min.js"></script>
<script src="configs/instrument_info.js"></script>
<!-- Include homemade helper scripts -->
<script src="configs/navbar_bindings.js"></script>
<script src="helpers/nav_bar_loader.js"></script>
<script src="helpers/inst_info_interpreter.js"></script>
<link href="index.css" rel="stylesheet"/>
<link href="helpers/interfaces/current_channel_display_nocanvas.css" rel="stylesheet"/>
<link href="helpers/interfaces/master_track_view.css" rel="stylesheet"/>
</head>
<body>
<!-- Navigation menu -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" role="navigation" id="navbar">
<div class="container-fluid">
<!-- "Propeller" tab -->
<a class="navbar-brand nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false" href="#">Propeller</a>
<ul class="dropdown-menu dropdown-menu-dark">
<li><a class="dropdown-item" href="#">About</a></li>
<li><a class="dropdown-item" href="#">Preferences</a></li>
<li><a class="dropdown-item" href="#">Help</a></li>
<li><a class="dropdown-item" href="javascript:commitAction('propeller:toggle_fullscreen');">Enter/Exit Fullscreen</a></li>
</ul>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0" id="navbar-slots">
<!-- Contents of navbar automatically added by helpers/nav_bar_loader.js,
according to configs/navbar_bindings.js -->
</ul>
</div>
<span class="badge bg-secondary" id="progress-txt"></span>
<div class="progress" data-bs-toggle="tooltip" id="progress">
<div class="progress-bar" role="progressbar" aria-label="Example with label" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">25%</div>
</div>
<i class="bi bi-volume-mute" id="sound-toggle" onclick="toggleMute();"></i>
</div>
</nav>
<!-- Input element, hidden by CSS, used programmatically by JS to open file dialogs -->
<input type="file" name="midi-file" id="file-in">
<!-- Audio element, hidden by CSS, used programmatically by JS to check audio format support -->
<audio id="audio-format-test"></audio>
<!-- Toolbar -->
<div id="toolbar" role="toolbar">
<!-- Section 1 -->
<div class="horizontal-container">
<!-- Column 1 -->
<div class="toolbar-top-align">
<!-- Button panel -->
<div class="btn-group btn-group-sm" role="toolbar" aria-label="Basic example">
<!-- New -->
<button type="button" class="btn btn-primary"><i class="bi bi-file-earmark-plus"></i></button>
<!-- Open -->
<button type="button" class="btn btn-primary"><i class="bi bi-folder2-open"></i></button>
<!-- Save, i.e. download -->
<button type="button" class="btn btn-primary"><i class="bi bi-download"></i></button>
<!-- Project configurations -->
<button type="button" class="btn btn-primary"><i class="bi bi-card-text"></i></button>
<!-- Export to MIDI -->
<button type="button" class="btn btn-primary"><i class="bi bi-file-earmark-music"></i></button>
<!-- Undo -->
<button type="button" class="btn btn-primary"><i class="bi bi-arrow-counterclockwise"></i></button>
<!-- Redo -->
<button type="button" class="btn btn-primary"><i class="bi bi-arrow-clockwise"></i></button>
</div>
<!-- Instrument display -->
<div id="current-channel-display" class="horizontal-container">
<!-- Automatically rendered by helpers/interfaces/current_channel_display_nocanvas.js -->
<div id="current-channel-number-box">
<p><!-- Channel number location --></p>
</div>
<!-- Effect displays, automatically generated by intergaces/current_channel_display_nocanvas.js -->
</div>
</div>
<!-- Column 2 -->
<div class="toolbar-top-align">
<!-- Button panel -->
<div class="btn-group btn-group-sm" role="toolbar" aria-label="Basic example">
<!-- Repeat -->
<button type="button" class="btn btn-primary"><i class="bi bi-repeat"></i></button>
<!-- Beginnning -->
<button type="button" class="btn btn-primary"><i class="bi bi-skip-backward"></i></button>
<!-- Previous bar -->
<button type="button" class="btn btn-primary"><i class="bi bi-skip-start"></i></button>
<!-- Play -->
<button id="control-play-stop" type="button" class="btn btn-primary" onclick="javascript:commitAction('playback:toggle_play_stop');"><i class="bi bi-play"></i></button>
<!-- Next bar -->
<button type="button" class="btn btn-primary"><i class="bi bi-skip-end"></i></button>
<!-- End -->
<button type="button" class="btn btn-primary"><i class="bi bi-skip-forward"></i></button>
<!-- Playback speed -->
<div class="btn-group" role="group">
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
×1
</button>
<ul class="dropdown-menu dropdown-menu-dark">
<li><a class="dropdown-item" href="#">×0.25</a></li>
<li><a class="dropdown-item" href="#">×0.5</a></li>
<li><a class="dropdown-item" href="#">×1</a></li>
<li><a class="dropdown-item" href="#">×2</a></li>
<li><a class="dropdown-item" href="#">×3</a></li>
</ul>
</div>
<!-- Mute -->
<button type="button" class="btn btn-primary"><i class="bi bi-volume-off"></i><sub>M</sub></button>
<!-- Solo -->
<button type="button" class="btn btn-primary"><i class="bi bi-volume-off"></i><sub>S</sub></button>
<!-- Play all -->
<button type="button" class="btn btn-primary"><i class="bi bi-volume-off"></i><sub>A</sub></button>
</div>
<!-- Master track info view -->
<div class="horizontal-container" id="master-track-view">
<p><sup>MEAS</sup></p>
<p id="meas-num">1:1:0000</p>
<p><sup>TIME</sup></p>
<p id="time-num">0:00</p>
<p><sup>BPM</sup></p>
<p id="bpm">118.00</p>
<!-- Time signature -->
<div id="time-sig">
<p id="time-sig-numerator">4</p>
<p id="time-sig-denominator">4</p>
</div>
<!-- Key signature -->
<p id="key-sig">G minor</p>
</div>
</div>
</div>
<!-- Section 2 -->
<div class="horizontal-container">
<!-- Column 1 -->
<div>
<!-- Top piano visual -->
<div id="top-piano">
<!-- Top piano visual display goes here -->
</div>
</div>
<!-- Column 2 -->
<div>
<!-- Edit tools button group -->
<div class="btn-group btn-group-sm" role="toolbar" aria-label="Basic example">
<!-- Pencil -->
<button type="button" class="btn btn-primary"><i class="bi bi-pencil-fill"></i></button>
<!-- Select -->
<button type="button" class="btn btn-primary"><span id="icon-select"></span></button>
<!-- Eraser -->
<button type="button" class="btn btn-primary"><i class="bi bi-eraser-fill"></i></button>
</div>
</div>
</div>
<!-- Section 3: markers -->
<div id="markers-list" class="btn-group" role="group">
<!-- "Add marker" button -->
<button type="button" class="btn btn-primary"><i class="bi bi-bookmark-plus"></i></button>
</div>
</div>
<!-- Editor -->
<div id="editor" class="horizontal-container">
<!-- Track list -->
<ul class="list-group" id="track-selector">
<!-- Track 1 -->
<li class="list-group-item active track-disp">
<!-- Channel number -->
<p>Name 1</p>
<!-- Velocity bar -->
<div></div>
<!-- Some buttons -->
<div class="horizontal-container">
<div class="btn-group" role="group" aria-label="Basic example">
<!-- New -->
<button type="button" class="btn btn-primary">fx</button>
<!-- Open -->
<button type="button" class="btn btn-primary">M</button>
<!-- Save, i.e. download -->
<button type="button" class="btn btn-primary">S</button>
</div>
<!-- Channel number -->
<p><sub>Ch 1</sub></p>
</div>
</li>
<!-- Track 2 -->
<li class="list-group-item track-disp">
<!-- Channel number -->
<p>Name 2</p>
<!-- Velocity bar -->
<div></div>
<!-- Some buttons -->
<div class="horizontal-container">
<div class="btn-group" role="group" aria-label="Basic example">
<!-- New -->
<button type="button" class="btn btn-primary">fx</button>
<!-- Open -->
<button type="button" class="btn btn-primary">M</button>
<!-- Save, i.e. download -->
<button type="button" class="btn btn-primary">S</button>
</div>
<!-- Channel number -->
<p><sub>Ch 2</sub></p>
</div>
</li>
</ul>
<!-- Long and behold - the actual piano roll / effects editor main window! -->
<div id="main-editor-window">
<!-- Automatically rendered by a p5.js sketch -->
</div>
</div>
<!-- General models, init and deinit functionalities -->
<script src="index.js"></script>
<script src="core/song_model.js"></script>
<script src="core/song_player.js"></script>
<!-- p5.js canvas interfaces -->
<script src="helpers/interfaces/common.js"></script>
<script src="helpers/interfaces/current_channel_display_nocanvas.js"></script>
<script src="helpers/interfaces/top_piano.js"></script>
<script src="helpers/interfaces/main_editor_window.js"></script>
<script src="helpers/interfaces/master_track_view.js"></script>
</body>
</html>