-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
416 lines (363 loc) · 21.7 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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
<!--
Wav2Bar - Free software for creating audio visualization (motion design) videos
Copyright (C) 2023 Picorims <picorims.contact@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<!-- MAIN HTML FILE FOR THE USER DISPLAY -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self';"/> -->
<title>Wav2Bar</title>
<!-- main process -->
<script type="text/javascript">
var export_window = false;
</script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<script type="text/javascript" src="js/user_interface.js"></script>
<script type="text/javascript" src="js/export_main.js"></script>
<!--CSS-->
<link rel="stylesheet" type="text/css" href="style.css"/>
<link rel="stylesheet" type="text/css" href="node_modules/remixicon/fonts/remixicon.css"/>
</head>
<body>
<div id="root">
<ui-split-layout data-direction="vertical" data-size-min="300" data-size-max="600">
<!--CONTROL PANEL-->
<div slot="first-child" id="control_panel">
<!--Labels, tabs naviguation-->
<div id="naviguation_tab_labels">
<div class="tab_label" id="project_label"> <i class="ri-file-edit-line"></i></i> PROJECT</div>
<div class="tab_label" id="objects_label"> <i class="ri-node-tree"></i></i> OBJECTS</div>
<div class="tab_label" id="export_label"> <i class="ri-film-line"></i> EXPORT</div>
<div class="tab_label" id="settings_label"> <i class="ri-settings-4-line"></i> SETTINGS</div>
<div class="tab_label" id="help_label"> <i class="ri-question-line"></i> CONTACT AND HELP</div>
</div>
<!--Tabs container-->
<div id="tabs_container">
<!--PROJECT-->
<div id="project_tab" class="tab">
<ui-parameter data-help="fps">
<ui-input-field id="fps-input"
data-name="Framerate"
data-type="int"
data-value="0"
data-min="1"
data-max="8000"
data-step="1">
</ui-input-field>
</ui-parameter>
<!-- <div class="panel_param_container" data-help="screen_size">
<ui-label-block data-name="Screen resolution">
<div>
<input id="screen_width_input" class="panel_input" type="number" min="16" max="8000" step="1"/>
<span> x </span>
<input id="screen_height_input" class="panel_input" type="number" min="16" max="8000" step="1"/>
</div>
</ui-label-block>
</div> -->
<ui-parameter data-help="screen_size" data-title="Screen resolution">
<ui-input-field id="screen-width-input"
data-name="Width"
data-type="int"
data-value="1280"
data-min="16"
data-max="8000"
data-step="1">
</ui-input-field>
<ui-input-field id="screen-height-input"
data-name="Height"
data-type="int"
data-value="720"
data-min="16"
data-max="8000"
data-step="1">
</ui-input-field>
</ui-parameter>
<ui-parameter id="load-audio" data-title="Import audio (mp3/wav/ogg)" data-help="audio">
<ui-file-picker id="load-audio-picker" data-type="get_file" data-button-text="CHOOSE AUDIO FILE" data-opened-span-text="Opened audio file"></ui-file-picker>
</ui-parameter>
<!-- <div class="panel_param_container" data-help="audio">
<button id="load_audio_button" class="panel_button">CHOOSE AUDIO FILE</button>
<div><span>: </span><span id="opened_audio"></span></div>
</div> -->
<ui-parameter id="load-save" data-title="Import save (.w2bzip)" data-help="save_import">
<ui-file-picker id="load-save-picker" data-type="get_file" data-button-text="CHOOSE SAVE FILE" data-opened-span-text="Opened save"></ui-file-picker>
</ui-parameter>
<!-- <div class="panel_param_container" data-help="save_import">
<span>Import save (.w2bzip): </span>
<button id="save_file_button" class="panel_button">CHOOSE SAVE FILE</button>
<div><span>Opened save: </span><span id="opened_save"></span></div>
</div> -->
<ui-parameter id="export-save" data-title="Export save" data-help="save_export">
<ui-file-picker id="export-save-picker" data-type="save_file" data-button-text="SAVE" data-opened-span-text="Saved at"></ui-file-picker>
</ui-parameter>
<!-- <div class="panel_param_container" data-help="save_export">
<span>Export save: </span>
<button id="export_save_button" class="panel_button">SAVE</button>
</div> -->
</div>
<!--OBJECTS-->
<div id="objects_tab" class="tab">
<ui-parameter data-help="new_object" data-title="New Object">
<ui-label-block data-name="Type">
<select id="create_object_select" class="panel_input panel_input_list">
<option value="shape">Image - Shape</option>
<option value="particle_flow">Particle Flow</option>
<option value="text">Text</option>
<optgroup label="Timers">
<option value="timer_straight_bar">Timer - bar</option>
<option value="timer_straight_line_point">Timer - point</option>
</optgroup>
<optgroup label="Visualizers">
<option value="visualizer_straight_bar">Visualizer - straight</option>
<option value="visualizer_straight_wave">Visualizer - straight, waves</option>
<option value="visualizer_circular_bar">Visualizer - circular</option>
</optgroup>
</select>
</ui-label-block>
<button id="create_object_button" class="panel_button panel_button_wide">CREATE</button>
</ui-parameter>
<!--all object parameters container go here-->
</div>
<!--EXPORT-->
<div id="export_tab" class="tab">
<ui-parameter id="choose-video-path" data-title="Save directory" data-help="export_video_path">
<ui-file-picker id="choose-video-path-picker" data-type="save_file"></ui-file-picker>
</ui-parameter>
<!-- <div class="panel_param_container" data-help="export_video_path">
<span>Save directory: </span>
<input id="video_export_path_input" class="panel_input panel_input_string" />
<button id="choose_video_path_button" class="panel_button">BROWSE</button>
</div> -->
<!-- <div class="panel_param_container" data-help="experimental_jpeg_export">
<span>Experimental JPEG export: </span>
<input id="experimental_export_input" type="checkbox" class="panel_input panel_input_checkbox" />
</div> -->
<ui-parameter data-help="experimental_jpeg_export">
<ui-input-field id="experimental-export-input"
data-name="Use JPEG for frames export"
data-type="bool"
data-value="false">
</ui-input-field>
</ui-parameter>
<ui-parameter data-title="Export" data-help="export">
<button id="export_button" class="panel_button panel_button_wide">EXPORT NOW!</button>
<ui-label-block data-name="Frames rendered">
<span id="export_frame_span"></span>
</ui-label-block>
<ui-label-block data-name="Estimated time">
<span id="export_frame_time_span"></span>
</ui-label-block>
<div class="progress_bar">
<div id="export_frame_progress" class="progress_child"></div>
</div>
<ui-label-block data-name="Encoding video">
<span id="export_encoding_span"></span>
</ui-label-block>
<ui-label-block data-name="Estimated time">
<span id="export_encoding_time_span"></span>
</ui-label-block>
<div class="progress_bar">
<div id="export_encoding_progress" class="progress_child"></div>
</div>
</ui-parameter>
<!-- <div class="panel_param_container" data-help="export">
<span>Export: </span>
<button id="export_button" class="panel_button">EXPORT NOW!</button>
<span>Frames rendered: </span><span id="export_frame_span"></span>
<span>Estimated time: </span><span id="export_frame_time_span"></span>
<div class="progress_bar">
<div id="export_frame_progress" class="progress_child"></div>
</div>
<span>Encoding video: </span><span id="export_encoding_span"></span>
<span>Estimated time: </span><span id="export_encoding_time_span"></span>
<div class="progress_bar">
<div id="export_encoding_progress" class="progress_child"></div>
</div>
</div> -->
</div>
<!--SETTINGS-->
<div id="settings_tab" class="tab">
<ui-parameter data-title="Logs">
<button id="open_logs_button" class="panel_button panel_button_wide">BROWSE LOGS FOLDER</button>
</ui-parameter>
<ui-parameter id="locate-ffmpeg" data-title="FFmpeg location">
<ui-file-picker id="locate-ffmpeg-picker" data-type="get_file"></ui-file-picker>
</ui-parameter>
<!-- <div class="panel_param_container" data-help="">
<span>Locate FFmpeg: </span>
<input id="ffmpeg_path_input" class="panel_input panel_input_string" />
<button id="choose_ffmpeg_path_button" class="panel_button">BROWSE</button>
</div> -->
<ui-parameter id="locate-ffprobe" data-title="FFprobe location">
<ui-file-picker id="locate-ffprobe-picker" data-type="get_file"></ui-file-picker>
</ui-parameter>
<!-- <div class="panel_param_container" data-help="">
<span>Locate FFprobe: </span>
<input id="ffprobe_path_input" class="panel_input panel_input_string" />
<button id="choose_ffprobe_path_button" class="panel_button">BROWSE</button>
</div> -->
<ui-parameter data-title="How to import FFmpeg and FFprobe">
<button id="open_ffmpeg_help" class="panel_button panel_button_wide">OPEN HELP</button>
</ui-parameter>
</div>
<!--CONTACT AND HELP-->
<div id="help_tab" class="tab">
<ui-parameter class="about_info">
<p>
Wav2Bar v<span id="software_version"></span>
</p>
<p>
Place your mouse over the <i class="ri-question-line"></i> icons to get help on a specific feature.
</p>
<p>
Information and contact:
<br/>
<a id="website_link">Website</a><br/>
<a id="github_link">GitHub repository</a><br/>
<a id="twitter_link">Twitter</a><br/>
<a id="youtube_link">YouTube</a><br/>
<a id="discord_link">Discord Server</a><br/>
</p>
<p>
Send an email at: <a href="mailto:picorims.contact@gmail.com">picorims.contact@gmail.com</a>
</p>
<p>
Special thanks:
<br/>
- My amazing friend Kanade_Senpai<br/>
- RemixIcon (remixicon.com)
</p>
<hr>
<p>
Wav2Bar - Free software for creating audio visualization (motion design) videos
<br/>Copyright (C) 2023 Picorims <picorims.contact@gmail.com>
<br/><br/>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
<br/><br/>
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
<br/><br/>
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
</p>
<p>
Helpers:
<br/>
- Kanade_Senpai (trailer video rendering)<br/>
- pdejan (fix help.json information)
</p>
</ui-parameter>
</div>
</div>
</div>
<!--INTERFACE WITH SCREEN-->
<div slot="second-child" id="interface">
<div id="screen_container">
<!-- PREVIEW / RENDER -->
<div id="screen">
<!-- objects goes here! -->
</div>
<!-- INNER SPACING FIXER -->
<div id="inner_spacing_fixer"></div>
</div>
<!--Naviguation Buttons-->
<div id="top_UI">
<!--Audio control-->
<div class="top_UI_block">
<button class="top_UI_tile left_round" id="play_audio">
<i class="ri-play-fill"></i>
</button>
<button class="top_UI_tile" id="pause_audio">
<i class="ri-pause-fill"></i>
</button>
<button class="top_UI_tile" id="stop_audio">
<i class="ri-stop-fill"></i>
</button>
<div class="top_UI_tile triple_size right_round">
<span class="text" id="time_display">0:00 | 0:00</span>
</div>
</div>
<!--audio position-->
<div class="top_UI_block">
<button class="top_UI_tile left_round" id="audio_to_start">
<i class="ri-skip-back-fill"></i>
</button>
<div class="top_UI_tile range">
<input class="range_track" type="range" id="audio_range"/>
</div>
<button class="top_UI_tile right_round" id="audio_to_end">
<i class="ri-skip-forward-fill"></i>
</button>
</div>
<!--Loop music-->
<div class="top_UI_block">
<button class="top_UI_tile left_round right_round" id="loop_audio">
<i class="ri-repeat-fill"></i>
</button>
</div>
<!--FPS-->
<div class="top_UI_block">
<div class="top_UI_tile left_round right_round double_size">
<span id="fps" class="text"></span>
</div>
</div>
<!--Zoom-->
<div class="top_UI_block">
<button class="top_UI_tile left_round" id="zoom_out">
<i class="ri-zoom-out-line"></i>
</button>
<button class="top_UI_tile double_size" id="zoom_value">
<span id="zoom_display" class="text"></span>
</button>
<button class="top_UI_tile right_round"id="zoom_in">
<i class="ri-zoom-in-line"></i>
</button>
</div>
</div>
</div>
</ui-split-layout>
<!--FILTERS TESTS-->
<!--<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<filter id="goo">
<feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur" />
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7" result="goo" />
<feBlend in="SourceGraphic" in2="goo" />
</filter>
<filter id="fancy-goo">
<feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur" />
<feColorMatrix in="blur" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9" result="goo" />
<feComposite in="SourceGraphic" in2="goo" operator="atop"/>
</filter>
<filter id="glow">
<feGaussianBlur stdDeviation="2" result="coloredBlur" />
<feMerge>
<feMergeNode in="coloredBlur" />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
</defs>
</svg>-->
</div>
</body>
</html>