-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
527 lines (432 loc) · 16.4 KB
/
index.html
File metadata and controls
527 lines (432 loc) · 16.4 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MIDI Paradise</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Meta tags -->
<meta name="description" content="Sit back. Relax. Hit Play... It's MIDI Paradise.">
<meta name="keywords" content="MIDI,Music,90s,pop">
<meta name="author" content="Devin Smith">
<meta property="og:title" content="MIDI Paradise">
<meta property="og:description" content="Sit back. Relax. Hit Play. Welcome... to MIDI Paradise.">
<meta property="og:image" content="http://www.devinsmith.work/midiparadise/tcard-large.jpg">
<meta property="og:url" content="http://www.devinsmith.work/midiparadise">
<!-- Song data JSON -->
<script src="songData.js"></script>
<!--Twitter card-->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="devinsmith.work/midiparadise">
<meta name="twitter:creator" content="@devinsmithwork">
<meta name="twitter:title" content="MIDI Paradise">
<meta name="twitter:description" content="Welcome to... MIDI Paradise.">
<meta name="twitter:image" content="http://www.devinsmith.work/midiparadise/tcard-large.jpg">
<style>
body {
font-family:monospace;
font-size:large;
background:black;
background-image: url("wallpaper/0.png");
background-size:auto 100vh;
background-attachment:fixed;
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: pixelated;
image-rendering: optimize-contrast;
-ms-interpolation-mode: nearest-neighbor;
}
#bgLazyLoad {
display:none;
padding:0em;
margin:0em;
size:100vw, 100vh;
background-size:auto 100vh;
background-attachment:fixed;
}
#main {
display:flex;
flex-direction: column;
max-width: 400px;
margin:0px auto;
height:95vh;
}
h1 {
text-align:center;
color:yellow;
text-shadow:2px 2px magenta;
}
h2 {
text-align: center;
padding:0.1em;
margin:0.2em;
background:black;
border:0.1em inset #666;
color:yellow;
}
.marqueePaddingFix {
}
marquee {
padding:0;
margin:0;
}
#logoDiv {
text-align: center;
padding:0.5em 0em;
}
.logo {
max-width:287px;
height:auto;
}
#playerDiv {
background:lightgrey;
border:0.2em outset lightgrey;
padding:0.2em;
}
#playerControls {
text-align: center;
display:flex;
}
#playerControls button {
font-family: monospace;
font-weight:bold;
color: rgb(67,91,108);
text-shadow: 1px 1px white;
font-size:1em;
height:2.5em;
width:100%;
margin:0.2em;
background: #eee;
border:.2em outset #eee;
}
#playerControls button:active {
background: #ccc;
border:.2em inset #eee;
}
#playlist {
margin-top:1em;
overflow-y: scroll;
background:rgba(0,0,0,0.6);
border:0.2em outset lightgrey;
height:100%;
}
#playlist button {
font-family: monospace;
font-size:1em;
text-align: left;
display:block;
margin-top:0.2em;
padding:0.2em;
width:100%;
background:transparent;
border:none;
border-bottom:1px dotted yellow;
color:yellow;
}
#playlist button:hover {
color:orange;
}
#about {
display:none;
margin-top:1em;
overflow-y: scroll;
background:rgba(0,0,0,0.6);
border:0.2em outset lightgrey;
color:yellow;
padding:.2em;
}
#about h2 {
background:transparent;
border:none;
}
#about h3 {
padding-top:1em;
margin-top:0em;
text-align: center;
}
#about a {color:yellow;}
#about a:hover {color:orange;}
.pcb {
height:20px;
width:auto;
vertical-align: -5px;
}
.playing {
color:aqua;
}
#bottom {
margin-top:1em;
background:lightgrey;
border:0.2em outset lightgrey;
padding:0.2em;
}
#bottomButtons {
text-align: center;
display:flex;
}
#bottom button {
font-family: monospace;
font-weight:bold;
color: rgb(67,91,108);
text-shadow: 1px 1px white;
font-size:1em;
height:2em;
width:100%;
margin:0.2em;
background: #eee;
border:.2em outset #eee;
}
#bottom button:active {
background: #ccc;
border:.2em inset #eee;
}
#playlistLoading {
padding-top:2em;
color:yellow;
text-align: center;
}
</style>
</head>
<body onload="buildPlaylist()">
<div id="main">
<div id="logoDiv" width=195 height=80>
<img class="logo" src="MIDI-Paradise-small.png">
</div>
<div id="playerDiv">
<h2 id="playerTitle">Loading...</h2>
<audio id="player" src="128-MP3/All Night Long.mp3" oncanplay="canplayTriggered()" onended="autoplayNext()"></audio>
<div id="playerControls">
<button id="shuffle" onclick="toggleShuffle()">SHUF</button>
<button id="playbtn" onclick="togglePlay()"><img class="pcb" src="play.png"></button>
<button onclick="document.getElementById('player').pause();autoplayNext();"><img class="pcb" src="next.png"></button>
<!-- <button onclick="document.getElementById('player').volume += 0.1">VOL+</button>
<button onclick="document.getElementById('player').volume -= 0.1">VOL-</button> -->
</div>
</div>
<div id="playlist">
<div id="playlistLoading">
Playlist Loading...
</div>
</div>
<div id="about">
<h2>About</h2>
<p>
MIDI Paradise was put together by <a href="http://devinsmith.work">Devin Smith</a> in March of 2020.
</p>
<p>
The MIDIs came from a ridiculous set of <a href="https://mega.nz/#%21Elg1TA7T%21MXEZPzq9s9YObiUcMCoNQJmCbawZqzAkHzY4Ym6Gs_Q">130,000 files</a> scraped & collated by the aptly-named <a href="https://www.reddit.com/r/WeAreTheMusicMakers/comments/3ajwe4/the_largest_midi_collection_on_the_internet/">Reddit user MidiMan</a> in 2016. The backgrounds were ripped from Sega Genesis ROMs by the <a href="https://www.spriters-resource.com">Spriters' Resource</a> users <a href="https://www.spriters-resource.com/submitter/silversea/">Silversea</a>, <a href="https://www.spriters-resource.com/submitter/shadowbot/">Shadowbot</a>, and <a href="https://www.spriters-resource.com/submitter/rabidrodent/">Rabidrodent</a>.
</p>
<h3>
Audio Process
</h3>
<p>
Mea Culpa: You're not actually listening to MIDI files. These are recordings of MIDI files played back on my Roland SC-155, mastered with T-Rax 3CS, and exported to MP3s.
</p>
<p>
There's good reason to do it this way! For one, the quality of the SC-series instruments is fantastic, extremely 90s-sounding, and generally better than most modern OS's GM sets (which often seem to be included only as an afterthought, for legacy support). And secondly, the SC-155 also employs Roland's proprietary <a href="https://en.wikipedia.org/wiki/Roland_GS">GS extension</a> of the General MIDI spec.</p>
<p>
GS includes useful extras like configurable reverb and chorus, and instrument-level settings for filters, envelope shaping, and vibrato controls. Many of the MIDI files selected here make creative use of these features: For example, check out the wah guitar in <i>Waterfalls</i>, achieved via automating the GS filter settings. Which brings me to my next point...
</p>
<h3>
What Makes a "Good" MIDI?
</h3>
<p>
A set of 60 songs from 130,000 is an awfully deep cut! For this round, I elected to forgo Jazz, Classical, etc, and focused only on pop songs. A few things became apparent here.
</p>
<p>
The pop material generally ends in the mid-2000s, around the time MP3s superseded MIDIs online. There's a recency bias towards 90s pop, and a large portion of the songs come from the omnipresent chart-toppers you might expect (Beatles, Madonna, etc).
</p>
<p>
Multiple arrangements for a single song is more the rule than the exception, and it quickly becomes apparent which arrangers are just slapping notes on the page, and which are really <i>Going For It</i>.
</p>
<p>
Musically, judging a non-MIDI arrangement revolves around how an arranger employs the ensemble's particular instrumentation and techniques in service to a song. With MIDI, you have access to a full orchestra, slammin' 808s, a jazz combo, death metal guitars, futuristic synths -- the whole gamut! Coupled with all the expressiveness of MIDI CCs, you've got a wide palette here.
</p>
<p>
One hallmark of a good MIDI is an attentiveness to this plethora of options: Like including juicy pitch bends and vibrato to guitar leads (<i>Right Down The Line</i>), using instrumentation to mimic iconic production details (<i>Escapade</i>, <i>Diamonds And Pearls</i>), or tackling absurdly ambitious material (<i>Roundabout</i>). A killer MIDI is truly a labor of love.
</p>
<p>
Sometimes, a MIDI arrangement gets better as it tilts slightly toward the absurd. Sure, you could use a flute, but the shakuhachi has that certain special <i>something</i> -- a good MIDI knows that it's a MIDI.
</p>
<p>
Lastly, this collection is a bit heavy on Smooth R&B, Adult Contemporary, and Yacht Rock. This isn't just personal taste -- though, obviously, that's a factor -- but that the arrangers who gravitated to this material clearly knew their stuff. Considering the laborious and confounding state of music software in the 80s & 90s, it seems likely that many were professionals. The The Steely Dan tunes in particular show a dedication not only in transcribing these rather obtuse charts, but going the extra mile to really make the MIDIs <i>slap</i>.
</p>
<p>
Maybe, in the end, that old canard about pornography may best describe a "Good" MIDI: you know it when you hear it.
</p>
<p> - Devin
</p>
</div>
<div id="bottom">
<div id="bottomButtons">
<button id="aboutButton" onclick="toggleAbout()">ABOUT</button>
<button onclick="cycleWallpaper()">WALLPAPER</button>
</div>
</div>
</div>
<div id="bgLazyLoad">
<img src="wallpaper/1.png">
<img src="pause.png">
</div>
<script>
var shuffle = true;
var playing = false;
var firstPlay = true;
var aboutShown = false;
var availableSongs = [];
var currentSongID = -1;
var songText = "Lionel Richie - All Night Long";
var wallpapers = ["","","gif","","","","","","","",];
function canplayTriggered() {
document.getElementById('playerTitle').innerHTML = "<marquee>" + songText + "</marquee>";
if (playing) document.getElementById('player').play();
}
function chSong(x) {
if (x.id != currentSongID) {
if (firstPlay) {
firstPlay = false;
playing = true;
document.getElementById("playbtn").innerHTML = '<img class="pcb" src="pause.png">';
}
currentSongID = x.id;
var newSong = songData[x.id];
removeAvailable(x.id);
songText = newSong.Artist + " - " + newSong.Title;
if (newSong.Credit != undefined) {
songText += " - " + newSong.Credit;
}
var songFile;
if (newSong.Filename != undefined) {
songFile = "128-MP3/" + newSong.Filename + ".mp3";
} else {
songFile = "128-MP3/" + newSong.Title + ".mp3";
}
document.getElementById("playerTitle").innerHTML = "<marquee>Loading...</marquee>";
swapSong(songFile);
}
}
/*================================*/
// Song swap callbacks for safety.
function swapSong(SF) {
pauseP(function() {
loadP(SF);
});
}
function pauseP(callback) {
document.getElementById('player').pause();
callback();
}
function loadP (SF, callback) {
document.getElementById('player').setAttribute('src', SF);
}
/*================================*/
function toggleShuffle() {
shuffle = !(shuffle);
if (shuffle) {
document.getElementById("shuffle").innerHTML = "SHUF";
} else {
document.getElementById("shuffle").innerHTML = "A-Z";
}
}
function togglePlay() {
if (firstPlay) firstPlay = false;
playing = !(playing);
if (playing) {
document.getElementById('player').play();
document.getElementById("playbtn").innerHTML = '<img class="pcb" src="pause.png">';
} else {
document.getElementById('player').pause();
document.getElementById("playbtn").innerHTML = '<img class="pcb" src="play.png">';
}
}
function toggleAbout() {
if (aboutShown) {
document.getElementById("playlist").style.display = "block";
document.getElementById("about").style.display = "none";
document.getElementById("aboutButton").innerHTML = "ABOUT";
} else {
document.getElementById("playlist").style.display = "none";
document.getElementById("about").style.display = "block";
document.getElementById("aboutButton").innerHTML = "PLAYLIST";
}
aboutShown = !(aboutShown);
}
function autoplayNext() {
if (shuffle) {
var r = Math.floor(Math.random() * availableSongs.length);
chSong(document.getElementById(availableSongs[r]));
} else {
var nSongID = currentSongID;
while (availableSongs.indexOf(nSongID) == -1) {
nSongID++;
if (nSongID > 61) nSongID=0;
}
chSong(document.getElementById(nSongID));
}
}
function buildPlaylist() {
var playlist = document.getElementById("playlist");
for (var i=0;i<songData.length;i++) {
var song = songData[i];
var btn = document.createElement("button");
btn.id = i;
btn.className += "sg";
btn.setAttribute( "onclick", "chSong(this)" )
btn.innerHTML = song.Artist + " - " + song.Title;
playlist.appendChild(btn);
}
var loadingDiv = document.getElementById("playlistLoading");
playlist.removeChild(loadingDiv);
resetAvailable();
document.getElementById("playerTitle").innerHTML = "<marquee>Lionel Richie - All Night Long</marquee>";
}
function removeAvailable(n) {
// n is passed a String, convert to int
n = parseInt(n,10);
if (availableSongs.indexOf(n) != -1) {
availableSongs.splice(availableSongs.indexOf(n), 1);
}
if (availableSongs.length == 0) {
resetAvailable();
}
}
function resetAvailable() {
for (var i=0;i<songData.length;i++) {
availableSongs.push(i);
}
}
var cWall =0;
var nWall =1;
var allWallsLoaded = false;
function cycleWallpaper() {
if (allWallsLoaded==false) cycleNextWallpaper();
cWall++;
if (cWall == wallpapers.length-1) cWall = 0;
var bgURL = "wallpaper/" + cWall + ".";
if (wallpapers[cWall] != "") {
bgURL += wallpapers[cWall];
} else {
bgURL += "png";
}
document.body.style.background = "url('" + bgURL+ "')";
document.body.style.backgroundSize = "auto 100vh"
document.body.style.backgroundAttachment = "fixed;"
}
function cycleNextWallpaper() {
nWall++;
if (nWall == wallpapers.length-1) {
allWallsLoaded = true;
} else {
var nextURL = "wallpaper/" + nWall + ".";
if (wallpapers[nWall] != "") {
nextURL += wallpapers[nWall];
} else {
nextURL += "png";
}
document.getElementById("bgLazyLoad").innerHTML="<img src='" + nextURL + "'>";
}
}
</script>
</body>
</html>