-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
618 lines (587 loc) · 22.3 KB
/
index.js
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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
import WaveSurfer from "wavesurfer.js";
import TimelinePlugin from 'wavesurfer/plugins/timeline.js';
import { LyricDisp } from "lib/LyricDisp.js";
import { MetaDataExtract } from "lib/MetaDataExtract.js";
import Stats from "lib/stats.js";
import { themeSetting } from "./themeSetting.js";
import ReverbEQ from "./src/lib/ReverbEQ/index.js";
import { omakaseSongs } from "./src/omakaseSongs.js";
// Event listener for file input change
await new Promise(r => window.onload = () => r(true));
class Player {
/**
* @param {Object} option
* @param {String|Array<String>} option.musicName a song name to find from file list.
* @param {String?} option.musicRootPath for list Looping
* @param {String?} option.lrcRootPath for list Looping
* @param {String?} option.lrcFileName for find lrc file manaualy.
* @param {Object} option.metaData for display.
* @param {Object} option.wavesurfer wavesurfer option
* @param {String?} option.theme theme
* @param {Object} option.timeLine TimelinePlugin option
* @param {Boolean?} option.mix set to play random from list.
* @param {Boolean?} option.loop set to loop or not
*/
constructor(option) {
this.wavesurfer = null;
this.audioCtx = null;
this.lyricDisp = null;
this.stats = null;
this.userOption = option;
this.equalizer = null;
// console.log(this.option)
};
#isDarkMode = () => {
return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
};
#isMobLand = (() => {
return window.matchMedia && window.matchMedia('(orientation: landscape), (max-height:426px)').matches
})();
option = {
/** @type {String} a song name to find from file list. */
musicName: null,
/** @type {String?} for list Looping */
musicRootPath: null,
/** @type {String?} for list Looping */
lrcRootPath: null,
/** @type {String?} for find lrc file manaualy */
lrcFileName: null,
/** @type {import("wavesurfer.js/types/params").WaveSurferParams} */
wavesurfer: {
url: null,
container: '#waveform',
waveColor: '#4F4A85',
progressColor: '#383351',
minPxPerSec: 600,
fillParent: true,
hideScrollbar: true,
autoScroll: true,
autoCenter: true,
responsive: true,
plugins: null,
backend: 'MediaElement',
},
/** @type {String?} theme */
theme: null,
/** @type {Boolean} set to play random from list. */
mix: false,
/** @type {Boolean} set to loop or not */
loop: false,
metaData: null,
timeLine: {
height: 24,
insertPosition: null,
timeInterval: 0.2,
primaryLabelInterval: 5,
secondaryLabelInterval: 1,
insertTop: false,
/** @type {CSSStyleDeclaration} */
style: {
fontSize: '20px',
color: '#2D5B88'
}
}
};
themeData = null;
setTheme(name, mode) {
name ??= 'wave';
if (name && this.option) this.option.theme = name;
this.themeData = themeSetting[this.option?.theme] ?? null;
this.#setThemeColor(mode ?? (this.#isDarkMode() ? 'dark' : null))
}
#setThemeColor(mode) {
const themeConfig = this.themeData;
//create LinearGradient
/*const grad = (color, offset, size) => {
console.log(color, offset, size)
const ctx = document.createElement('canvas');
const g = ctx.getContext("2d").createLinearGradient(0, 0, 0, size ?? 150);
g.addColorStop(offset ? offset[0] : 0, color ? color[0] : '#000');
g.addColorStop(offset ? offset[1] : 0.5, color ? color[1] : '#000');
g.addColorStop(offset ? offset[2] : 1, color ? color[2] : '#000');
return g;
}*/
const waveElem = document.querySelector('#waveform');
if (waveElem) waveElem.style.backgroundColor = 'transparent';
if (themeConfig && themeConfig.background) waveElem.style.backgroundColor = themeConfig.background;
let colorArray = themeConfig ? themeConfig.color[mode ?? 'light'] : [];
console.log(colorArray)
this.option.wavesurfer.waveColor = colorArray[0] ?? '#132029';
this.option.wavesurfer.progressColor = colorArray[1] ?? '#5180b0';
this.option.wavesurfer.cursorColor = colorArray[2] ?? '#74c5fb';
this.option.timeLine.style.color = colorArray[3] ?? '#d7f7fa';
}
#appendStatsModule(stats) {
((stats) => {
//In addition to adding stats by Override the render function of Wavesurfer
WaveSurfer.prototype.initTimerEvents = function () {
console.log('initFpsLogger')
// The timer fires every 16ms for a smooth progress animation
this.subscriptions.push(this.timer.on('tick', () => {
stats.begin();
const currentTime = this.getCurrentTime();
this.renderer.renderProgress(currentTime / this.getDuration(), true);
this.emit('timeupdate', currentTime);
this.emit('audioprocess', currentTime);
stats.end();
}));
}
})(stats);
}
#statInit(appendElemetTarget) {
const stats = new Stats();
stats.dom.className = 'statJS';
stats.showPanel(0);
appendElemetTarget ??= document.body;
const searchElement = appendElemetTarget.querySelector('.statJS');
if (searchElement) searchElement.remove();
appendElemetTarget.appendChild(stats.dom);
return stats;
}
#titleParser() {
const extractInfo = (line) => {
let artistRegex = /(?<=\[)(.*?)(?=\])/; // Matches text within square brackets
let titleRegex = /(?<=\[.*?\]\s)(.*?)(?=\s\()/; // Matches text after square brackets and before the opening parenthesis
let makerRegex = /(?<=by\s)(.*?)(?=\))/; // Matches text after "by" and before the closing parenthesis
let versionRegex = /(?<=\()\w+(?=\s\.?v?Ver)/; // Matches text within parentheses
let title = "", artist = "", maker = "", version = "";
if (!line.match(/.*\-.*/)) {
title = line.match(titleRegex)?.[0] || ""; // Extract the title
artist = line.match(artistRegex)?.[0] || ""; // Extract the artist
maker = line.match(makerRegex)?.[0] || ""; // Extract the creator
version = line.match(versionRegex)?.[0] || ""; // Extract the version
} else {
artistRegex = /(?<=\-).*/;
titleRegex = /.*(?=\s?\-)/;
title = line.match(titleRegex)?.[0].trim() || "";
artist = line.match(artistRegex)?.[0].trim() || "";
}
return { title, artist, maker, version, album: maker ?? artist };
};
return extractInfo(this.option.musicName);
}
#dispMetaData(tagData) {
const imgElm = document.querySelector('.image img');
const imageCradit = document.querySelector('.illust');
const dispElems = [
document.querySelector('.trackNo'),
document.querySelector('.title'),
document.querySelector('.artist'),
document.querySelector('.album'),
document.querySelector('.illust'),
document.querySelector('.lyricsContiner')
].slice(0, -1);
let { title, artist, album, comp, maker, trackNum, imageUrl } = tagData ?? {};
if (!tagData) title = '', artist = '', album = '', comp = '', maker = '', trackNum = 0;
imgElm.classList.remove('hide');
imageCradit.classList.remove('hide');
if (imgElm) imgElm.removeAttribute('src');
if (imgElm && imageUrl) imgElm.src = imageUrl;
if (!imageUrl) {
imgElm.classList.add('hide');
imageCradit.classList.add('hide');
}
this.option.metaData = tagData;
if (this.lyricDisp.tags && !this.lyricDisp.tags?.title) this.lyricDisp.tags = this.#titleParser();
if (this.lyricDisp.tags && this.lyricDisp.tags.title) {
title = this.lyricDisp.tags.title ?? this.userOption.musicName;
}
if (this.lyricDisp.tags && this.lyricDisp.tags.artist) {
if (!this.lyricDisp.tags.artist.startsWith("VARIOUS")) {
artist = this.lyricDisp.tags.artist;
}
}
if (this.lyricDisp.tags && this.lyricDisp.tags.album) {
album = this.lyricDisp.tags.album;
}
if (album) album = album.replace('TVアニメ', '');
if (maker && maker.startsWith("VARIOUS") || maker == '') maker = 'unknown';
if (artist.length > 10) artist = maker;
// console.log(title, artist, album, comp, maker, trackNum)
if (this.lyricDisp.tags) {
// artist = "";
album = "";
}
const replaceArr = [trackNum, title, artist, album, maker];
for (let i = 0; i < dispElems.length; i++) {
switch (i) {
case 0:
case 4:
dispElems[i].children[1].innerHTML = replaceArr[i];
break;
case 1:
case 2:
case 3:
dispElems[i].children[0].innerHTML = replaceArr[i];
break;
default:
break;
}
}
}
/**
* @param {string|Object} setting
* @param {String} setting.musicName
* @param {String?} setting.musicRootPath
* @param {String?} setting.lrcRootPath
* @param {String?} setting.lrcFileName
* @param {String?} theme
* @returns
*/
async replaceSong(setting, theme) {
console.log(setting);
const config = {
musicName: null,
musicRootPath: './assets/audiocommon/',
lrcRootPath: './assets/lrcs/',
lrcFileName: null,
theme: null
};
if (typeof setting != 'object') { console.warn(new ReferenceError('setting is not Object.')); };
// let { musicName, musicRoot, lrcRoot, lrcFileName } = setting;
if (typeof setting == 'string') config.musicName = setting;
if (typeof setting == 'object') Object.assign(config, setting);
if (!config.musicName) { console.warn(new ReferenceError('songName is cannot be null.')); return; };
// this.option.musicRootPath = musicRoot ?? './assets/audiocommon/';
// this.option.lrcRootPath = lrcRoot ?? './assets/lrcs/';
// this.option.lrcFileName = lrcFileName ?? null;
// this.option.musicName = musicName;
Object.assign(this.option, config);
let reload = false;
const audioPath = `${this.option.musicRootPath}${this.option.musicName}.mp3`;
let lyricParh = `${this.option.lrcRootPath}${this.option.lrcFileName ?? this.option.musicName}.lrc`;
let lyricData = null;
if (this.lyricDisp) reload = true;
console.log(reload, this.option.lrcFileName, this.option.musicName)
if (reload) {
this.lyricDisp.pause();
}
if (reload && this.wavesurfer) {
this.wavesurfer.pause();
this.wavesurfer.renderer.parent.firstChild.remove();
this.wavesurfer.renderer.parent.classList.remove('focus');
}
this.option.wavesurfer.url = audioPath;
this.stats = this.#statInit();
this.#appendStatsModule(this.stats);
this.setTheme(theme);
this.wavesurfer = new WaveSurfer(this.option.wavesurfer);
try { lyricData = await (await fetch(lyricParh)).text(); } catch (error) { };
this.lyricDisp = new LyricDisp(lyricData, this.wavesurfer, { ignorePron: 0, anime: this.themeData?.anime, debug: true });
this.lyricDisp.render();
new MetaDataExtract(this.option.wavesurfer.url).parse()
.then(d => this.#dispMetaData(d)).catch(e => {
// console.warn(e)
this.#dispMetaData()
})
//resize;
window.dispatchEvent(new Event('resize'));
if (reload) {
//
setTimeout(() => {
this.wavesurfer.play();
}, 2000)
// this.lyricDisp.play(this.wavesurfer.getCurrentTime() * 1000);
}
return true;
}
async EQZ() {
console.log('inited')
let AudioCtx = new AudioContext();
this.audioCtx = AudioCtx;
let el = this.wavesurfer.media;
let AudioSrc = AudioCtx.createMediaElementSource(el);
this.equalizer = new ReverbEQ(this.audioCtx);
const eqWrapper = document.querySelector('.eqmodules');
eqWrapper.append(this.equalizer.element);
this.equalizer.init(el, AudioSrc)
return this.equalizer;
}
async initAudio() {
if (this.userOption.wavesurfer) {
Object.assign(this.option.wavesurfer, this.userOption.wavesurfer)
delete this.userOption.wavesurfer;
}
Object.assign(this.option, this.userOption);
if (this.option.timeLine.insertTop) this.option.timeLine.insertPosition = 'beforebegin';
// Create a timeline plugin instance with custom options
const timeline = TimelinePlugin.create(this.option.timeLine);
this.themeData = themeSetting[this.option?.theme] ?? null;
if (this.option?.theme.includes('R')) {
document.querySelector('.info_item.container .wave').classList.add('right');
document.querySelector('.info_item.container .lyrics').classList.add('right');
};
this.option.wavesurfer.plugins = [timeline];
// this.#setThemeColor('light')
// if (this.#isDarkMode()) this.#setThemeColor('dark');
this.setTheme();
const { musicName, musicRootPath, lrcRootPath, lrcFileName } = this.option;
await this.replaceSong({ musicName, musicRootPath, lrcRootPath, lrcFileName }, this.option.theme);
this.wavesurfer.renderer.parent.classList.toggle('focus');
const wrapper = document.querySelector('.waveform');
if (!wrapper.querySelector('.ws-overlay')) {
const overlay = document.createElement('div');
overlay.className = 'ws-overlay';
overlay.innerHTML = `<img id="replay" src="./replay.svg" alt="replay" width="50" height="50"/>
<img id="root" src="./root.svg" alt="replay" width="50" height="50" style="background-color: white;"/>`;
wrapper.appendChild(overlay);
Object.assign(overlay.style, {
position: 'absolute',
inset: 0,
backgroundColor: 'black',
zIndex: 9,
opacity: 0.8,
display: 'none',
alignItems: 'center',
justifyContent: 'space-evenly',
flexDirection: 'row'
})
Object.assign(overlay.querySelector('img').style, {
zIndex: 10,
backgroundColor: 'white'
});
}
this.wavesurfer.once('interaction', () => {
this.wavesurfer.renderer.parent.classList.toggle('focus');
try {
this.EQZ();
this.wavesurfer.play();
// this.lyricDisp.play(this.wavesurfer.getCurrentTime() * 1000)
this.lyricDisp.play(0);
//this.lyricDisp.play(this.wavesurfer.getCurrentTime() * 1000)
} catch (error) { }
});
this.wavesurfer.on('finish', () => {
const replay = () => {
const overlay = wrapper.querySelector('.ws-overlay');
this.wavesurfer.play(0);
this.lyricDisp.play(0);
if (overlay.style.display == 'flex') {
overlay.style.display = 'none';
}
};
if (this.option.loop) {
replay();
} else {
const overlay = wrapper.querySelector('.ws-overlay');
Object.assign(overlay.style, {
display: 'flex',
})
overlay.querySelector('#root').onclick = () => {
const a = document.createElement('a');
a.href = './index.html';
a.target = '_top';
a.click();
};
overlay.querySelector('#replay').onclick = () => replay();
}
if (this.stats && this.stats.reset) this.stats.reset(true);
})
window.addEventListener('resize', () => {
const isMobLand = window.matchMedia('(orientation: landscape)').matches && window.matchMedia('(max-height:426px)').matches;
let value = 128;
//if mobile is land, set wave height to -20% then default;
if (isMobLand) { value = Math.round(128 - (128 * 0.35)) } else { value = 128 };
this.wavesurfer.options.height = value;
this.wavesurfer.renderer.canvasWrapper.style.minHeight = `${value}px`;
// this.wavesurfer.renderer.canvasWrapper.style.height = `${value}px`;
// this.wavesurfer.renderer.cursor.style.height = `${value}px`;
});
window.dispatchEvent(new Event('resize'));
}
async init() {
if (!this.userOption) throw new ReferenceError('userOption is not Object.');
this.initAudio.bind(this)();
document.querySelector('.optionTab img#setting').onclick = () => {
document.querySelector('.eqmodules').classList.toggle('hide');
}
window.Player = this;
return this;
}
shuffle() {
}
};
/*
Player.replaceSong({
musicName:'Ray',
musicRootPath:'https://cdn.jsdelivr.net/gh/jomin398/mySongDB@master/audios/Ray/',
lrcRootPath:'https://cdn.jsdelivr.net/gh/jomin398/mySongDB@master/audios/Ray/',
lrcFileName: 'Ray'
})
Player.replaceSong({
musicName:'[Miku] ポジティブ・パレード (by Deco27)',
musicRootPath:'https://cdn.jsdelivr.net/gh/jomin398/mySongDB@master/audios/ポジティブパレード/',
lrcFileName:'[初音ミク] ポジティブ・パレード'
})
*/
class Main {
constructor() {
}
#defaultQueryStrs = omakaseSongs;
async popup(res) {
const container = document.querySelector('.eqmodules');
const assetRoot = 'https://cdn.jsdelivr.net/gh/jomin398/mySongDB@master/audios';
function extractArtist(path) {
const regex = /-(.*?)\.mp3/;
const match = path.match(regex);
const artist = match ? match[1].trim() : null;
return artist;
}
function parsePath(path) {
const regex = /\/([^\/]+)\/([^\/]+\.\w{3})$/;
const matches = regex.exec(path);
if (!matches) {
return null;
}
const lastFolderName = matches[1];
const fileName = matches[2];
return {
lastFolderName,
fileName
};
}
function Template2Dom(htmlStr) {
return new DOMParser().parseFromString(`
${htmlStr ??= ''}`, 'text/html').body.firstElementChild;
}
function parseOpt(res) {
let { ar, an, lrc, au } = res;
ar ??= ['noInfo'];
an ??= au.map(e => extractArtist(e)).filter(e => e);
console.log(ar, an, lrc, au);
let artist = [ar.join(',')].concat(an)
const resetElm = elm => {
elm.innerHTML = '';
elm.removeAttribute('style');
}
const elms = au.map((e, i) => {
const dispLang = false;
// let supportLang = 'ja';
// let langRegex = /(\b\w{2}) ver/i;
// supportLang = e.match(langRegex) ? e.match(langRegex)[1].toLowerCase() : 'ja';
// langRegex = /(?<=\-\s?)[\w|가-힣\s]*/i;
// supportLang = e.match(langRegex) ? 'ko' : 'ja';
/*
<label for="lang">Language :</label>
<span id="lang">${supportLang}</span>` : `
<label for="lang">Language :</label>
<span id="lang">${supportLang}</span>
*/
let el = Template2Dom(`<button class="sekai-button decide ${i == 0 ? 'orign' : 'another'}">
<label for="artists">Sang by :</label>
<span id="artists">${artist[i]}</span>
${i == 0 ? `<p>Original song</p>` : ``}
</button>`);
// console.log(e, supportLang)
const promise = new Promise((resolve, reject) => {
el.onclick = () => {
let root = '';
let musicName = '';
const audiopath = parsePath(e);
const lrcPath = lrc ? parsePath(lrc[0]) : null;
if (!audiopath) return;
const { lastFolderName, fileName } = audiopath;
root = `${assetRoot}/${lastFolderName}/`;
musicName = fileName.replace(/\.\w{3}$/g, '');
let obj = {
musicName,
musicRootPath: root,
theme: 'wave',
wavesurfer: {
container: '#waveform',
waveColor: '#4F4A85',
progressColor: '#383312',
}
};
Object.assign(obj, {
lrcRootPath: `${assetRoot}/${lastFolderName}/`,
lrcFileName: fileName.replace(/\.\w{3}$/g, '')
})
if (lrcPath) {
const { lastFolderName, fileName } = lrcPath;
obj.lrcRootPath = `${assetRoot}/${lastFolderName}/`;
obj.lrcFileName = fileName.replace(/\.\w{3}$/g, '');
}
resetElm(container)
container.classList.add('hide');
resolve(obj)
}
})
return { el, promise };
})
elms.map(e => container.append(e.el));
container.classList.remove('hide');
return Promise.race(elms.map(e => e.promise));
};
return await parseOpt(res);
}
async router() {
const search = location.search;
function removeQueryParams() {
var urlWithoutQuery = window.location.href.split('?')[0];
history.pushState({}, document.title, urlWithoutQuery);
}
function getQueryString(object) {
const parameters = Object.fromEntries(new URLSearchParams(object));
console.log(parameters)
const mergedData = Object.entries(parameters).reduce((acc, [key, value]) => {
const prefix = key.match(/^[a-zA-Z]+/)[0];
(acc[prefix] = acc[prefix] || []).push(value);
return acc;
}, {});
return mergedData;
}
function Template2Dom(htmlStr) {
return new DOMParser().parseFromString(`
${htmlStr ??= ''}`, 'text/html').body.firstElementChild;
}
const pick = this.#defaultQueryStrs[Math.floor(Math.random() * this.#defaultQueryStrs.length)];
const Obj = getQueryString(search);
removeQueryParams();
const container = document.querySelector('.eqmodules');
Object.assign(container.style, {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'space-around',
inset: '5%',
backgroundColor: '#808080fa',
borderRadius: '15px'
})
if (!Obj || Object.keys(Obj).length === 0) {
console.warn('Please select');
const qs = pick;
const defaultOptionElms = [
Template2Dom(`<h3>Please select</h3>`),
Template2Dom(`<a href="./index.html?referrer=./player.html" target="_top" ><button class="sekai-button decide">Go Back to Playlist</button></a>`),
Template2Dom(`<a href="./player.html?${qs}" target="_self" ><button class="sekai-button decide">Play Default Song (Omakase)</button></a>`)
];
container.append(...defaultOptionElms);
container.classList.remove('hide');
return await Promise.race(defaultOptionElms.slice(1).map(e => {
return new Promise((resolve, reject) => {
e.onclick = () => {
resolve(true);
};
});
}))
} else return await this.popup(Obj);
}
}
const o = await new Main().router();
console.log(o)
await new Player(o).init();
/*
{
musicName: '悠久のカタルシス (4スターズ Ver)',
musicRootPath: 'https://cdn.jsdelivr.net/gh/jomin398/mySongDB@master/audios/悠久のカタルシス/',
lrcRootPath: 'https://cdn.jsdelivr.net/gh/jomin398/mySongDB@master/audios/悠久のカタルシス/',
theme: 'wave',
wavesurfer: {
container: '#waveform',
waveColor: '#4F4A85',
progressColor: '#383312',
},
mix: true,
}
*/