forked from gree/smfplayer.js
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
883 lines (876 loc) · 35.8 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
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
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
<!doctype html>
<html lang="en" class="h-100" data-bs-theme="auto">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="Soundfont2 based Web MIDI Player written in JavaScript. This MIDI Player can playback XG or GS formatted midi file."
/>
<meta name="author" content="Logue" />
<meta
name="keywords"
content="smf, midi, gs, xg, gm, smfplayer.js, standard midi"
/>
<meta name="color-scheme" content="light dark" />
<meta name="theme-color" content="#712cf9" />
<meta property="og:title" content="Standard MIDI Player for Web" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://logue.dev/smfplayer.js/" />
<meta
property="og:image"
content="https://logue.dev/smfplayer.js/icon.png"
/>
<meta property="og:site_name" content="Logue's Lab" />
<meta
property="og:description"
content="Soundfont2 based Web MIDI Player written in JavaScript. This MIDI Player can playback XG or GS formatted midi file."
/>
<meta property="fb:app_id" content="129144050466298" />
<meta
property="article:publisher"
content="https://www.facebook.com/logue256"
/>
<meta name="twitter:card" content="Summary" />
<meta name="twitter:site" content="@logue256" />
<meta name="twitter:title" content="Standard MIDI Player for Web" />
<meta name="twitter:url" content="https://logue.dev/smfplayer.js/" />
<meta
name="twitter:description"
content="Soundfont2 based Web MIDI Player written in JavaScript. This MIDI Player can playback XG or GS formatted midi file. #Midi #smfplater"
/>
<meta
name="twitter:image"
content="https://logue.dev/smfplayer.js/icon.png"
/>
<title>Standard MIDI Player for Web</title>
<link rel="shortcuticon" href="./favicon.ico" />
<link rel="canonical" href="https://logue.dev/smfplayer.js/" />
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-2Y2FW3QEG4"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-2Y2FW3QEG4');
</script>
</head>
<body class="d-flex flex-column h-100">
<!-- icons -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
<symbol id="check2" viewBox="0 0 16 16">
<path
d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"
/>
</symbol>
<symbol id="circle-half" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z" />
</symbol>
<symbol id="moon-stars-fill" viewBox="0 0 16 16">
<path
d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"
/>
<path
d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"
/>
</symbol>
<symbol id="sun-fill" viewBox="0 0 16 16">
<path
d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"
/>
</symbol>
</svg>
<!-- Theme Switcher-->
<div
class="dropdown position-fixed bottom-0 end-0 mb-3 me-3 bd-mode-toggle"
style="z-index: 1500"
>
<button
class="btn btn-primary py-2 dropdown-toggle d-flex align-items-center"
id="bd-theme"
type="button"
aria-expanded="false"
data-bs-toggle="dropdown"
aria-label="Toggle theme (auto)"
>
<svg class="bi my-1 theme-icon-active" width="1em" height="1em">
<use href="#circle-half"></use>
</svg>
<span class="visually-hidden" id="bd-theme-text">Toggle theme</span>
</button>
<ul
class="dropdown-menu dropdown-menu-end shadow"
aria-labelledby="bd-theme-text"
>
<li>
<button
type="button"
class="dropdown-item d-flex align-items-center"
data-bs-theme-value="light"
aria-pressed="false"
>
<svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em">
<use href="#sun-fill"></use>
</svg>
Light
<svg class="bi ms-auto d-none" width="1em" height="1em">
<use href="#check2"></use>
</svg>
</button>
</li>
<li>
<button
type="button"
class="dropdown-item d-flex align-items-center"
data-bs-theme-value="dark"
aria-pressed="false"
>
<svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em">
<use href="#moon-stars-fill"></use>
</svg>
Dark
<svg class="bi ms-auto d-none" width="1em" height="1em">
<use href="#check2"></use>
</svg>
</button>
</li>
<li>
<button
type="button"
class="dropdown-item d-flex align-items-center active"
data-bs-theme-value="auto"
aria-pressed="true"
>
<svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em">
<use href="#circle-half"></use>
</svg>
Auto
<svg class="bi ms-auto d-none" width="1em" height="1em">
<use href="#check2"></use>
</svg>
</button>
</li>
</ul>
</div>
<header>
<!-- Fixed navbar -->
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container-fluid d-flex justify-content-between">
<a class="navbar-brand" href="https://logue.dev/smfplayer.js/">
smfplayer.js
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarCollapse"
aria-controls="navbarCollapse"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse flex-grow-0" id="navbarCollapse">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" href="./">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="debug.html">sf2.js debug test</a>
</li>
<li class="nav-item">
<a
class="nav-link"
href="https://github.com/logue/smfplayer.js/"
>
<i class="bi bi-github"></i>
</a>
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDarkDropdownMenuLink"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
See Also
</a>
<ul
class="dropdown-menu dropdown-menu-end"
aria-labelledby="navbarDarkDropdownMenuLink"
>
<li>
<a
class="dropdown-item"
href="https://github.com/logue/smfplayer.js/"
>
smfplayer.js
</a>
</li>
<li>
<a
class="dropdown-item"
href="https://github.com/logue/sf2synth.js/"
>
sf2synth.js
</a>
</li>
<li>
<a
class="dropdown-item"
href="https://github.com/logue/Reverb.js/"
>
Reverb.js
</a>
</li>
<li>
<a
class="dropdown-item"
href="https://github.com/logue/MabiMmlEmu/"
>
MabiMmlEmu
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="flex-shrink-0 my-3">
<div class="container">
<div
id="info"
class="alert alert-warning alert-dismissible fade show"
role="alert"
>
<p class="mb-0">Initializing...</p>
<div
class="progress hide"
role="progressbar"
id="progress"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100"
>
<div
class="progress-bar percentage"
role="progressbar"
style="width: 0%"
>
0%
</div>
</div>
</div>
<!-- player panel-->
<section class="card mb-3" id="player">
<div class="card-header">
<h2 class="card-title h5">MIDI Player</h2>
<h3 class="card-subtitle text-muted h6">
Drag and drop *.mid, *.mld, *.ms2mml, *.mms, *.mml, *.mmi file
here, to play local midi file.
</h3>
<!-- Tabs -->
<ul
class="nav nav-tabs card-header-tabs"
id="control-tab"
role="tablist"
>
<li class="nav-item" role="presentation">
<button
class="nav-link active"
id="tab-player"
aria-current="true"
data-bs-toggle="tab"
data-bs-target="#player-tab-content"
type="button"
role="tab"
aria-controls="player-tab-content"
aria-selected="true"
>
Player
</button>
</li>
<li class="nav-item" role="presentation">
<button
class="nav-link"
id="tab-option"
aria-current="true"
data-bs-toggle="tab"
data-bs-target="#option-tab-content"
type="button"
role="tab"
aria-controls="option-tab-content"
>
Option
</button>
</li>
</ul>
</div>
<div class="card-body">
<div class="tab-content" id="plyaer-tab-contents">
<div
class="tab-pane fade show active"
id="player-tab-content"
role="tabpanel"
aria-labelledby="player-tab"
>
<!-- Player control -->
<div class="d-sm-flex align-items-center mb-2">
<div>
<!-- previous music button -->
<button
type="button"
class="btn btn-info btn-lg control-btn"
id="prev"
disabled="disabled"
title="Previous Music"
>
<i class="bi bi-skip-start"></i>
</button>
<!-- Play/Stop button -->
<button
type="button"
class="btn btn-primary btn-lg control-btn"
id="play"
disabled="disabled"
title="Play / Pause"
>
<i class="bi bi-play"></i>
</button>
<!-- Stop button -->
<button
type="button"
class="btn btn-danger btn-lg control-btn"
id="stop"
disabled="disabled"
title="Stop"
>
<i class="bi bi-stop"></i>
</button>
<!-- Next button -->
<button
type="button"
class="btn btn-info btn-lg control-btn"
id="next"
disabled="disabled"
title="Next Music"
>
<i class="bi bi-skip-end"></i>
</button>
<!-- Panic button -->
<button
type="button"
class="btn btn-warning btn-lg control-btn"
id="panic"
disabled="disabled"
title="Panic"
>
<i class="bi bi-exclamation-octagon"></i>
</button>
<!--
<button
type="button"
class="btn btn-secondary btn-lg control-btn"
id="copy"
disabled="disabled"
title="Copy midi URL to clipboard"
>
<i class="bi bi-share"></i>
</button>
-->
<div>
<!-- Master Volume -->
<label for="volume" class="form-label">
Master Volume:
<span id="volume_value" class="badge text-bg-secondary">
0.5
</span>
</label>
<div class="d-flex">
<div><i class="bi bi-volume-off"></i></div>
<input
id="volume"
type="range"
class="form-range mx-1"
min="0"
max="1"
step="0.01"
value="0.5"
/>
<div><i class="bi bi-volume-up"></i></div>
</div>
</div>
</div>
<!-- time -->
<div class="flex-grow-1 mx-3">
<div class="Clock-Wrapper">
<span class="Clock-Time-Background h4" aria-hidden>
<i class="bi bi-clock"></i>
~:~~:~~ / ~:~~:~~
<i class="bi bi-music-note"></i>
~~~
</span>
<span id="clock" class="Clock-Time-Front h4">
<i
class="bi bi-clock"
title="Current Time / Total Time"
></i>
<span id="time-now">0:00:00</span>
/
<span id="time-total">0:00:00</span>
<i class="bi bi-music-note" title="Current Tempo"></i>
<span id="current-tempo">120</span>
</span>
</div>
<!-- Music progress -->
<div class="progress" id="music-progress">
<div
class="progress-bar percentage"
role="progressbar"
aria-label="Music progress"
style="width: 0%"
aria-valuemin="0"
aria-valuemax="100"
>
0%
</div>
</div>
</div>
</div>
<!-- Midi selector -->
<div class="row">
<div class="col-md-7 col-xs-12 mb-2">
<label class="form-label" for="files">Sequence file:</label>
<div class="input-group">
<span class="input-group-text">
<i class="bi bi-music-note-list"></i>
</span>
<select id="files" class="form-select">
<!-- The MIDI files in zip files will be extracted here.-->
</select>
<button
class="btn btn-secondary"
type="button"
title="Download"
id="download"
>
<i class="bi bi-download"></i>
</button>
</div>
</div>
<div class="col-md-5 col-xs-12 mb-2">
<label for="zips" class="form-label">
Zip archive file:
</label>
<div class="input-group">
<span class="input-group-text" aria-hidden>
<i class="bi bi-file-earmark-zip"></i>
</span>
<select id="zips" class="form-select">
<!-- Change here to own midi archived zip -->
<option value="files/YAMAHA mididata library.zip">
YAMAHA mididata library.zip
</option>
<option
value="files/適当詰め合わせ.zip"
selected="selected"
>
適当詰め合わせ.zip
</option>
<option disabled="disabled">
------------------------------
</option>
<optgroup label="MML">
<option value="files/ms2mml_sample.zip">
Maple Story MML Sample.zip
</option>
<option value="files/3MLE_Sample.zip">
3MLE Sample
</option>
<option value="files/MakimabiSequence_Sample.zip">
Makimabi Sequence Sample
</option>
<option value="files/MabiIcco_Sample.zip">
MabiIcco Sample
</option>
</optgroup>
<option disabled="disabled">
------------------------------
</option>
<option value="files/Midi01.zip">Midi01.zip</option>
<option value="files/Midi03.zip">Midi03.zip</option>
<option value="files/Midi04.zip">Midi04.zip</option>
<option disabled="disabled">
------------------------------
</option>
<optgroup label="Famicom / NES / Super Famicom / SNES">
<option value="files/Chrono_Trigger.zip">
Chrono Trigger
</option>
<option value="files/Dragon_Warrior_2.zip">
Dragon Quest II
</option>
<option value="files/Dragon_Warrior_3.zip">
Dragon Quest III
</option>
<option value="files/Dragon_Warrior_4.zip">
Dragon Quest IV
</option>
<option value="files/Final_Fantasy_4.zip">
Final Fantasy IV
</option>
<option value="files/Final_Fantasy_5.zip">
Final Fantasy V
</option>
<option value="files/Final_Fantasy_6.zip">
Final Fantasy VI
</option>
<option value="files/Secret_of_Mana.zip">
Secret of Mana
</option>
<option value="files/Super_Donkey_Kong.zip">
Super Donkey Kong
</option>
<option
value="files/Zelda_3_-_A_Link_to_the_Past.zip"
>
Legend of Zelda
</option>
</optgroup>
<optgroup label="PlayStation / PlayStation2">
<option value="files/A-Train_Global.zip">
A-Train 4 Global
</option>
<option value="files/Alundra.zip">Alundra</option>
<option value="files/Breath_of_Fire_4.zip">
Breath of Fire IV
</option>
<option value="files/Final_Fantasy_7.zip">
Final Fantasy VII
</option>
<option value="files/Final_Fantasy_8.zip">
Final Fantasy VIII
</option>
<option value="files/Final_Fantasy_9.zip">
Final Fantasy XI
</option>
<option value="files/Final_Fantasy_10.zip">
Final Fantasy X
</option>
<option value="files/Final_Fantasy_11.zip">
Final Fantasy XI
</option>
<option value="files/Legend_of_Mana.zip">
Legend of Mana
</option>
<option value="files/Silent_Hill.zip">
Silent Hill
</option>
<option value="files/Star_Ocean_the_second_story.zip">
Star Ocean the Second Story
</option>
<option value="files/Valkyrie_Profile.zip">
Valkyrie Profile
</option>
</optgroup>
<optgroup label="PC">
<option value="files/A-Train.zip">
A-Train (PC98 / MacOS)
</option>
<option value="files/Lemmings.zip">
Lemmings Soundtrack (Amiga / DOS / MacOS / PC98)
</option>
<option value="files/Marathon1.zip">
Marathon Soundtrack (MacOS)
</option>
<option value="files/SimCity2000.zip">
SimCity 2000 Soundtrack (DOS / MacOS)
</option>
<option value="files/UO_MIDI_Music.zip">
Ultima Online Soundtrack (Windows)
</option>
<option value="files/sor.zip">
Sorcerian (PC98)
</option>
</optgroup>
<optgroup label="MegaDrive / Saturn / Dreamcast">
<option value="files/Outrun.zip">Outrun</option>
<option value="files/PSO.zip">
Phantasy Star Online
</option>
<option value="files/Sonic_the_Hedgehog.zip">
Sonic the Hedgehog
</option>
</optgroup>
<option disabled="disabled">
------------------------------
</option>
<option value="files/YMO.zip">
Yellow Magic Orchestra
</option>
</select>
</div>
</div>
</div>
<!-- Meta info -->
<div class="row">
<div class="col-md-7 col-xs-12 mb-2">
<label class="form-label" for="music_title">Title</label>
<div class="input-group">
<span class="input-group-text">
<i class="bi bi-file-earmark-music"></i>
</span>
<input
type="text"
class="form-control"
id="music_title"
readonly="readonly"
/>
</div>
</div>
<div class="col-md-5 col-xs-12 mb-2">
<label class="form-label" for="copyright ">Copyright</label>
<div class="input-group">
<span class="input-group-text">
<i class="bi bi-c-circle"></i>
</span>
<input
type="text"
class="form-control"
id="copyright"
readonly="readonly"
/>
</div>
</div>
<div class="col-12 mb-2">
<label class="form-label" for="text_event">Text</label>
<div class="input-group">
<span class="input-group-text">
<i class="bi bi-body-text"></i>
</span>
<input
type="text"
class="form-control"
id="text_event"
readonly="readonly"
/>
</div>
</div>
<div class="col-12">
<div class="form-label">Lyrics (karaoke)</div>
<div class="d-flex justify-content-center">
<pre class="tertiary-bg rounded" id="lyrics"></pre>
</div>
</div>
</div>
</div>
<div
class="tab-pane fade"
id="option-tab-content"
role="tabpanel"
aria-labelledby="option-tab"
>
<div class="row">
<!-- Loop setting -->
<div class="col-md-5 col-xs-12">
<div class="form-check form-switch">
<input
type="checkbox"
class="form-check-input"
id="random"
/>
<label class="form-check-label" for="random">
<i class="bi bi-shuffle"></i>
Random
</label>
</div>
<div class="form-check form-switch">
<input
type="checkbox"
class="form-check-input"
id="playerloop"
onchange="player.setLoop(this.checked);"
/>
<label class="form-check-label" for="playerloop">
<i class="bi bi-arrow-repeat"></i>
Loop
</label>
</div>
<hr />
<div class="form-check form-switch">
<input
type="checkbox"
class="form-check-input"
id="cc111loop"
onchange="player.setCC111Loop(this.checked);"
/>
<label class="form-check-label" for="cc111loop">
CC#111 Loop
</label>
</div>
<div class="form-check form-switch">
<input
type="checkbox"
class="form-check-input"
id="falcomloop"
onchange="player.setFalcomLoop(this.checked);"
/>
<label class="form-check-label" for="falcomloop">
Marker A-B (Ys2 Eternal)
</label>
</div>
<div class="form-check form-switch">
<input
type="checkbox"
class="form-check-input"
id="mfi"
onchange="player.setMFiLoop(this.checked);"
/>
<label class="form-check-label" for="mfi">MFi Loop</label>
</div>
</div>
<!-- Tempo and volume -->
<div class="col-md-7 col-xs-12">
<div>
<label for="tempo" class="form-label">
Tempo: x
<span id="tempo_value" class="badge bg-secondary">
1.0
</span>
</label>
<div class="d-flex">
<div><i class="bi bi-clock"></i></div>
<input
id="tempo"
type="range"
class="form-range ml-1"
min="0.1"
max="10.0"
step="0.1"
value="1.0"
/>
</div>
<hr />
<button
type="button"
class="btn btn-outline-dark btn-sm"
id="reset"
>
<i class="bi bi-eject"></i>
Send GM Reset
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- WebMidiLink Placeholder -->
<section class="card">
<div class="card-header">
<div class="d-flex justify-content-between">
<h2 class="h5"><label for="synth">Synthesyther</label></h2>
<div>
<div class="input-group">
<span class="input-group-text">
<i class="bi bi-soundwave"></i>
</span>
<select
id="synth"
class="form-select"
aria-describedby="wmlHelp"
>
<option
value="https://logue.dev/sf2synth.js/?sf=Yamaha XG Sound Set.sf2"
selected
>
Yamaha XG Sound Set.sf2
</option>
<option
value="https://logue.dev/sf2synth.js/?sf=Yamaha XG Sound Set.sf2&ui=false"
>
Yamaha XG Sound Set.sf2 (Disable Keyboard)
</option>
<option
value="https://logue.dev/sf2synth.js/?sf=Yamaha XG Sound Set Ver.2.0.sf2"
>
Yamaha XG Sound Set Ver2.0.sf2
</option>
<option
value="https://logue.dev/sf2synth.js/?sf=Yamaha XG Sound Set Ver.2.0.sf2&ui=false"
>
Yamaha XG Sound Set.sf2 (Disable Keyboard)
</option>
<option value="https://logue.dev/Wml2WebMidiApi/wml.html">
Web MIDI API (Experimental)
</option>
<option value="https://logue.dev/MabiMmlEmu/wml.html">
Mabinogi MML (MSXSpirit.sf2)
</option>
<option
value="https://logue.dev/MabiMmlEmu/wml.html?ui=false"
>
Mabinogi MML (MSXSpirit.sf2) (Disable Keyboard)
</option>
<option disabled="disabled">
------------------------------
</option>
<option
value="https://www.g200kg.com/webmidilink/gmplayer/"
>
GMPlayer
</option>
<option value="https://aikelab.net/websynth/">
aike : WebAudioSynth
</option>
<!--option value="https://script-synthesizer.herokuapp.com/">
mohayonao : timbre.js
</option-->
<!--option value="//beatonica.com/">aike : Beatonica</option-->
<!--option value="https://www.g200kg.com/en/docs/webmidilink/webbeeper.html">g200kg : WebBeeper</option-->
<option value="https://aikelab.net/bitmaker/">
aike : Bitmaker
</option>
</select>
</div>
<div id="wmlHelp" class="form-text">
Select
<a href="https://www.g200kg.com/en/docs/webmidilink/">
WebMidiLink
<i class="bi bi-box-arrow-up-right"></i>
</a>
based synthesizer
</div>
</div>
</div>
</div>
<div class="card-body p-0" id="wml"></div>
</section>
</div>
</main>
<footer class="footer mt-auto py-3 bg-body-tertiary">
<address class="container mb-0">
<a href="https://github.com/logue/smfplayer.js">SMF.Player</a>
© 2013 imaya / GREE Inc. / © 2013-2023 by
<a href="https://logue.dev/">Logue</a>
. Licensed under the
<a href="http://opensource.org/licenses/mit-license.php">MIT License</a>
.
</address>
</footer>
<script type="module" src="/src-docs"></script>
</body>
</html>