-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
140 lines (140 loc) Β· 14.6 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Made with β€οΈ by Carter Feldman (https://github.com/cf) -->
<title>β’ β€ AVICII Guitar - Turn up the sound</title>
<link rel="shortcut icon" href="/favicon.ico">
<style type="text/css">
body,html{font-weight:200;text-align:center;padding:0;margin:0;height:100%;width:100%;display:flex;justify-content:center;flex-direction:column;background:#fff;color:#000}*{box-sizing:border-box;font-family:-apple-system,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif}#title{font-size:54px;margin-bottom:12px}#sub{font-size:16px;margin-bottom:20px}button{padding:12px 24px;background:#fff;border:1px solid #000;color:#000;cursor:pointer;outline:0;transition:all ease .5s}button:hover{background:#000;color:#fff}button:active{background:#000;color:red}
</style>
</head>
<body>
<div id=main>
<div id=title>AVICII</div>
<div id=sub>Turn up the volume</div>
</div>
<script>
!function(){var e=document.createElement("button");e.innerHTML="START",e.onclick=function(){!function(){window.//AVI
AudioContext=window.AudioContext||window.webkitAudioContext;var e=800.0013333355556;var t=new AudioContext,n={C0://A
16.35,CS0:17.32,D0:18.35,Eb0:19.45,E0:20.6,F0:21.83,FS0:23.12,G0:24.5,GS0:25.96,A0:27.5,Bb0:29.14,B0:30.87,C1:32.7//
,CS1:34.65,D1:36.71,Eb1:38.89,E1:41.2,F1:43.65,FS1:46.25,G1:49,GS1:51.91,A1:55,Bb1:58.27,B1:61.74,C2:65.41,CS2://AVI
69.3,D2:73.42,Eb2:77.78,E2:82.41,F2:87.31,FS2:92.5,G2:98,GS2:103.8,A2:110,Bb2:116.5,B2:123.5,C3:130.8,CS3:138.6,//AV
D3:146.8,Eb3:155.6,E3:164.8,F3:174.6,FS3:185,G3:196,GS3:207.7,A3:220,Bb3:233.1,B3:246.9,C4:261.6,CS4:277.2,D4://AVIC
293.7,Eb4:311.1,E4:329.6,F4:349.2,FS4:370,G4:392,GS4:415.3,A4:440,Bb4:466.2,B4:493.9,C5:523.3,CS5:554.4,D5:587.3,//A
Eb5:622.3,E5:659.3,F5:698.5,FS5:740,G5:784,GS5:830.6,A5:880,Bb5:932.3,B5:987.8,C6:1047,CS6:1109,D6:1175,Eb6:1245,//A
E6:1319,F6:1397,FS6:1480,G6:1568,GS6:1661,A6:1760,Bb6:1865,B6:1976,C7:2093,CS7:2217,D7:2349,Eb7:2489,E7:2637,F7://AV
2794,FS7:2960,G7:3136,GS7:3322,A7:3520,Bb7:3729, B7:3951,C8:4186,CS8:4435,D8:4699,Eb8:4978,E8:5274,F8:5588,FS8:5920,
G8:6272,GS8:6645,A8:7040,Bb8:7459,B8:7902, DS0:19.45,AS0:29.14,DS1:38.89,AS1:58.27,DS2:77.78,AS2:116.5,DS3:155.6,AS3
:233.1,DS4:311.1,AS4:466.2,DS5:622.3,AS5:932.3, DS6:1245,AS6:1865,DS7:2489,AS7:3729,DS8:4978,AS8:7459};function i(t)
{return{time:t[1]/e,noteName:t[2],duration:t[0] /e,end:(t[1]+t[0])/e,freq:n[t[2]]}}var S,c,a,r,o,C,u,h,f,s,A,w,D,F,b
,d,l,G,m,p,E,B,v,g,M,y=(a="C4",C="G3",h="GS3", A="AS3",D="CS4",F="F3",b="DS3",d="CS3",l="F2",G="C3",m="C2",p="CS2",E
="DS2",[[[341,0,S="DS5"],[341,360,S],[455,720,S], [341,1200,S],[341,1560,S],[341,1920,S],[341,2280,S],[455,2640,S],[
341,3120,S],[341,3480,S],[M=227,3840,c="F5"],[M,4080,r="GS5"],[g=113,4320,c],[g,4440,S],[M,4560,o="C5"],[M,4800,S//A
],[M,5040,o],[g,5280,u="AS4"],[1253,5400,f="GS4"],[M,7680,u],[g,7920,u],[g,8040,o],[M,8160,f],[M,8400,s="F4"],[M,//A
8640,f],[M,8880,s],[g,9120,w="DS4"],[1253,9240,s],[M,11520,c],[M,11760,r],[g,12e3,c],[g,12120,S],[g,12240,o],[g,//AV
12360,o],[M,12480,S],[M,12720,o],[g,12960,u],[455 ,13080,o],[g,13560,u],[g,13680,f],[g,13800,s],[g,15240,o],[M,15360
,u],[g,15600,u],[341,15720,u],[g,16080,s],[g,16200,s ],[g,16320,f],[g,16440,s],[M,16560,s],[g,16800,w],[1253,16920,s
],[M,19680,o],[M,19920,f],[M,20160,u],[M,20400,o], [455,20640,f],[g,21120,u],[M,21240,u],[g,21480,o],[M,21600,u],[g,
21840,f],[g,21960,f],[M,22080,u],[M,22320,o],[341 ,22560,f],[g,22920,s],[M,23520,o],[M,23760,f],[M,24e3,u],[M,24240,
o],[455,24480,u],[g,24960,o],[M,25080,S],[g,25320, S],[g,25440,S],[g,25560,o],[g,25680,o],[g,25800,S],[M,25920,c],[g
,26160,u],[g,26280,o],[g,26400,u],[341,26520,f],[M,27360,o],[M,27600,f],[M,27840,u],[M,28080,o],[455,28320,f],[g,//A
28800,u],[M,28920,u],[g,29160,o],[M,29280,u],[g ,29520,f],[g,29640,f],[M,29760,u],[M,3e4,o],[341,30240,f],[g,30600,s
],[M,31200,o],[M,31440,f],[M,31680,u],[M,31920,o],[455,32160,u],[g,32640,o],[M,32760,S],[g,33e3,S],[g,33120,S],[g,//
33240,o],[g,33360,o],[g,33480,S],[M,33600,c],[g,33840,u],[g,33960,o],[g,34080,u],[341,34200,f],[341,34560,f],[g,//AV
34920,f],[g,35160,w],[g,35280,f],[g,35400,u],[50,35520,u],[177,35571,o],[g,35760,S],[g,35880,o],[g,36e3,u],[341,//AV
36120,f],[341,36480,f],[g,36840,f],[g,37080,w],[g,37200,f],[g,37320,u],[50,37440,u],[177,37491,o],[g,37680,S],[g,//A
37800,o],[g,37920,u],[341,38040,f],[341,38400,f],[g,38760,f],[g,39e3,w],[g,39120,f],[g,39240,u],[50,39360,u],[177,//
39411,o],[g,39600,S],[g,39720,o],[g,39840,u],[341,39960, f],[g,40320,o],[M,40440,S],[g,40680,S],[g,40800,S],[g,40920
,o],[g,41040,o],[g,41160,S],[M,41280,c],[g,41520,u], [g,41640,o],[g,41760,u],[341,41880,f],[341,42240,f],[g,42600,f]
,[g,42840,w],[g,42960,f],[g,43080,u],[50,43200,u],[ 177,43251,o],[g,43440,S],[g,43560,o],[g,43680,u],[341,43800,f],[
341,44160,f],[g,44520,f],[g,44760,w],[g,44880,f],[g,45e3,u],[50,45120,u],[177,45171,o],[g,45360,S],[g,45480,o],[g,//
45600,u],[341,45720,f],[341,46080,f],[g,46440,f],[g,46680,w], [g,46800,f],[g,46920,u],[50,47040,u],[177,47091,o],[g,
47280,S],[g,47400,o], [g,47520,u],[341,47640,f],[g,48e3,o],[M,48120,S],[g,48360,S],[g,48480,S],[g,48600,o],[g,48720,
o],[g,48840,S],[M,48960,c],[g,49200,u],[g,49320,o],[g ,49440,u],[341,49560,f],[341,49920,f],[g,50280,f],[g,50520,w],
[g,50640,f],[g,50760,u],[50,50880,u],[177,50931,o],[g,51120,S], [g,51240,o],[g,51360,u],[341,51480,f],[341,51840,f],
[g,52200,f],[g,52440,w],[g,52560,f],[g,52680,u],[50,52800,u], [177,52851,o],[g,53040,S],[g,53160,o],[g,53280,u],[341
,53400,f],[341,53760,f],[g,54120,f],[g,54360,w],[g,54480,f],[g,54600,u],[50,54720,u],[177,54771,o],[g,54960,S],[g,//
55080,o],[g,55200,u],[341,55320,f],[341,55680,f], [g,56040,f],[g,56280,w],[g,56400,f],[g,56520,u],[50,56640,u],[177,
56691,o],[g,56880,S],[g,57e3,o],[g,57120,u], [341,57240,f],[M,57600,c],[M,57840,r],[g,58080,c],[g,58200,S],[M,58320,
o],[M,58560,S],[M,58800,o],[g,59040,u],[1253,59160,f], [M,61440,u],[g,61680,u],[g,61800,o],[M,61920,f],[M,62160,s],[
M,62400,f],[M,62640,s],[g,62880,w],[1253,63e3,s],[M,65280,c],[M,65520,r],[g,65760,c],[g,65880,S],[g,66e3,o],[g,//AVI
66120,o],[M,66240,S],[M,66480,o],[g,66720,u],[455,66840,o], [g,67320,u],[g,67440,f],[g,67560,s],[g,69e3,o],[M,69120,
u],[g,69360,u],[341,69480,u],[g,69840,s],[g,69960,s], [g,70080,f],[g,70200,s],[M,70320,s],[g,70560,w],[1253,70680,s]
,[M,73440,o],[M,73680,f],[M,73920,u],[M,74160,o],[455,74400,f],[g,74880,u],[M,75e3,u],[g,75240,o],[M,75360,u],[g,//A
75600,f],[g,75720,f],[M,75840,u],[M,76080,o], [341,76320,f],[g,76680,s],[M,77280,o],[M,77520,f],[M,77760,u],[M,78e3,
o],[455,78240,u],[g,78720,o],[M,78840,S],[g,79080,S], [g,79200,S],[g,79320,o],[g,79440,o],[g,79560,S],[M,79680,c],[g
,79920,u],[g,80040,o],[g,80160,u],[341,80280,f],[M,81120,o],[M,81360,f],[M,81600,u],[M,81840,o],[455,82080,f],[g,//A
82560,u],[M,82680,u],[g,82920,o],[M,83040,u], [g,83280,f],[g,83400,f],[M,83520,u],[M,83760,o],[341,84e3,f],[g,84360,
s],[M,84960,o],[M,85200,f],[M,85440,u],[M,85680,o], [455,85920,u],[g,86400,o],[M,86520,S],[g,86760,S],[g,86880,S],[g
,87e3,o],[g,87120,o],[g,87240,S],[M,87360,c],[g,87600,u],[g,87720,o],[g,87840,u],[341,87960,f],[569,88320,S],[g,//AV
88920,"CS5"],[M,89040,o],[g,89280,u],[M,89400,o],[g,89640,u],[455,9e4,f],[M,90480,u],[M,92640,o],[M,92880,f],[M,//AV
93120,u],[M,93360,o],[455,93600,f],[g,94080,u], [M,94200,u],[g,94440,o],[M,94560,u],[g,94800,f],[g,94920,f],[M,95040
,u],[M,95280,o],[341,95520,f],[g,95880,s],[M,96480,o], [M,96720,f],[M,96960,u],[M,97200,o],[455,97440,u],[g,97920,o]
,[M,98040,S],[g,98280,S],[g,98400,S],[g,98520,o],[g,98640,o],[g,98760,S],[M,98880,c],[g,99120,u],[g,99240,o],[g,//AV
99360,u],[341,99480,f],[341,99840,f],[g,100200,f],[g,100440,w] ,[g,100560,f],[g,100680,u],[50,100800,u],[177,100851,
o],[g,101040,S],[g,101160,o],[g,101280,u],[341,101400,f],[341,101760,f],[g,102120,f],[g,102360,w],[g,102480,f],[g,//
102600,u],[50,102720,u],[177,102771,o],[g,102960,S], [g,103080,o],[g,103200,u],[341,103320,f],[M,104640,r],[M,104880
,B="AS5"],[g,105120,B],[341,105240,v="C6"],[g,105600,o],[M,105720,S],[g,105960,S],[g,106080,S],[g,106200,o],[g,//AVI
106320,o],[g,106440,S],[M,106560,c],[g,106800,u], [g,106920,o],[g,107040,u],[341,107160,f],[341,107520,f],[g,107880,
f],[g,108120,w],[g,108240,f],[g,108360,u], [50,108480,u],[177,108531,o],[g,108720,S],[g,108840,o],[g,108960,u],[341,
109080,f],[341,109440,f],[g,109800,f],[g,110040,w],[g,110160,f],[g,110280,u],[50,110400,u],[177,110451,o],[g,110640,
S],[g,110760,o],[g,110880,u],[341,111e3,f],[M,112320,r],[M,112560,B],[g,112800,B],[341,112920,v],[g,113280,o],[M,//A
113400,S],[g,113640,S],[g,113760,S],[g,113880,o],[g,114e3,o],[g,114120,S],[M,114240,c],[g,114480,u],[g,114600,o],[g,
114720,u],[341,114840,f],[M,115200,c],[M,115440,r],[g,115680,c],[g,115800,S],[M,115920,o],[M,116160,S],[M,116400,o],
[g,116640,u],[1253,116760,f],[M,119040,u],[g,119280,u],[g,119400,o], [M,119520,f],[M,119760,s],[M,12e4,f],[M,120240,
s],[g,120480,w],[1253,120600,s]].map(i),[[911,3840,a],[455,4800,C],[2279,5280,h],[911,7680,h],[455,8640,A],[2279,//A
9120,a],[911,11520,a],[455,12480,C],[2279,12960,h],[911,15360,h],[455,16320,A],[1367,16800,a],[341,19200,a],[g,//AVI
19560,a],[M,19920,a],[M,20400,w],[341,20760,w],[341,21120,w],[g,21480,w],[M,21840,w],[M,22320,D],[341,22680,D],[341,
23040,a],[g,23400,a],[M,23760,a],[M,24240,w],[341,24600,w],[341,24960,w],[g,25320,w],[M,25680,w],[M,26160,D],[341,//
26520,D],[341,26880,F],[341,27240,F],[455,27600,F],[341,28080,h],[341,28440,h],[341,28800,b],[341,29160,b],[455,//AV
29520,d],[341,3e4,d],[341,30360,d],[341,30720,F],[341,31080,F],[455,31440,F],[341,31920,h],[341,32280,h],[341,32640,
b],[341,33e3,b],[455,33360,d],[341,33840,d],[341,34200,d],[341,34560,a],[569,34920,a],[341,35760,C],[341,36120,C],//
[341,36480,h],[569,36840,h],[341,37680,A],[341,38040,A],[341,38400,a],[569,38760,a],[341,39600,C],[341,39960,C],//AV
[341,40320,h],[569,40680,h],[M,42240,l],[M,42480,F],[M,42720,l],[M,42960,F], [M,43200,l],[M,43440,G],[M,43680,m],[M,
43920,G],[M,44160,p],[M,44400,d],[M,44640,p],[M,44880,d],[M,45120,p],[M,45360,b],[M,45600,E],[M,45840,b],[M,46080,l]
,[M,46320,F],[M,46560,l],[M,46800,F],[M,47040,l],[M,47280,G],[M,47520,m],[M,47760,G],[M,48e3,p],[M,48240,d],[M,//AVI
48480,p],[M,48720,d],[M,48960,p],[M,49200,b],[M,49440,E],[M,49680,b],[M,49920,l],[M,50160,F],[M,50400,l],[M,50640,F]
,[M,50880,l],[M,51120,G],[M,51360,m],[M,51600,G],[M,51840,p],[M,52080,d],[M,52320,p],[M,52560,d],[M,52800,p],[M,//AV
53040,b],[M,53280,E],[M,53520,b],[M,53760,l],[M,54e3,F],[M,54240,l],[M,54480,F],[M,54720,l],[M,54960,G],[M,55200,m],
[M,55440,G],[M,55680,p],[M,55920,d],[M,56160,p],[M,56400,d],[M,56640,p],[M,56880,b],[M,57120,E],[M,57360,b],[911,//A
57600,a],[455,58560,C],[2279,59040,h],[911,61440,h], [455,62400,A],[2279,62880,a],[911,65280,a],[455,66240,C],[2279,
66720,h],[911,69120,h],[455,70080,A],[1367,70560,a],[341,72960,a],[g,73320,a],[M,73680,a],[M,74160,w],[341,74520,w],
[341,74880,w],[g,75240,w],[M,75600,w],[M,76080,D],[341,76440,D],[341,76800,a],[g,77160,a],[M,77520,a],[M,78e3,w],//A
[341,78360,w],[341,78720,w],[g,79080,w],[M,79440,w],[M,79920,D],[341,80280,D],[341,80640,F],[341,81e3,F],[455,81360,
F],[341,81840,h],[341,82200,h],[341,82560,b],[341,82920,b], [455,83280,d],[341,83760,d],[341,84120,d],[341,84480,F],
[341,84840,F],[455,85200,F],[341,85680,h],[341,86040,h],[341,86400,b],[341,86760,b],[455,87120,d],[341,87600,d],//AV
[341,87960,d],[341,88320,a],[569,88680,a],[341,89520,C],[341,89880,C],[341,90240,h],[569,90600,h],[341,91440,A],//AV
[341,91800,A],[341,92160,a],[569,92520,a],[341,93360,C],[341,93720,C],[341,94080,h],[569,94440,h],[341,95280,A],//AV
[341,95640,A],[341,96e3,a],[569,96360,a],[341,97200,C],[341,97560,C],[341,97920,h],[569,98280,h],[341,99120,A],[341,
99480,A],[M,99840,l],[M,100080,F],[M,100320,l],[M,100560,F], [M,100800,l],[M,101040,G],[M,101280,m],[M,101520,G],[M,
101760,p],[M,102e3,d],[M,102240,p],[M,102480,d],[M,102720,p],[M,102960,b],[M,103200,E],[M,103440,b],[M,103680,l],[M,
103920,F],[M,104160,l],[M,104400,F],[M,104640,l],[M,104880,G],[M,105120,m],[M,105360,G],[M,105600,p],[M,105840,d],//
[M,106080,p],[M,106320,d],[M,106560,p],[M,106800,b],[M,107040,E],[M,107280,b],[M,107520,l],[M,107760,F],[M,108e3,l],
[M,108240,F],[M,108480,l],[M,108720,G],[M,108960,m],[M,109200,G],[M,109440,p],[M,109680,d],[M,109920,p],[M,110160,d]
,[M,110400,p],[M,110640,b],[M,110880,E],[M,111120,b], [M,111360,l],[M,111600,F],[M,111840,l],[M,112080,F],[M,112320,
l],[M,112560,G],[M,112800,m],[M,113040,G],[M,113280,p],[M,113520,d],[M,113760,p],[M,114e3,d],[M,114240,p],[M,114480,
b],[M,114720,E],[M,114960,b],[911,115200,F],[455,116160,G],[2279,116640,d],[911,119040,d],[455,12e4,b],[2279,120480,
F]].map(i)]),x=y[0],I=y[1],U=0,k=1/t.sampleRate,q=0;function N(e){this.capacity=0|Math.round(t.sampleRate/e),this.//
buffer=new Float32Array(this.capacity),this.ticCount=0,this.curInd=0,this.freq=e, this.activeUntil=0,this.fadeAmt=1}
N.prototype.pluck=function(e){this.fadeAmt="number"==typeof e?e:1;for(var t=0|this.buffer.length,n=0;n<t;n++)this.//
buffer[n]=.9*(Math.random()-.5)},N.prototype.tic2=function(e){var t=this.curInd%this.buffer.length;return this.//AVI
buffer[t]=(e<=this.activeUntil?.996:.9)*(this.buffer[t]+this.buffer[++this.curInd%this.buffer.length])/2,this.buffer
[t]/this.fadeAmt};var P=new N(n.DS5),R=new N(n.F5),H=new N(n.C4),L=new N(n.GS5),T=new N(n.C5) ,j=new N(n.G3),z=new N
(n.AS4),J=new N(n.GS3),K=new N(n.GS4),O=new N(n.F4),Q=new N(n.AS3),V=new N(n.DS4),W=new N(n.CS4),X=new N(n.F3),//AVI
Y=new N(n.DS3),Z=new N(n.CS3),$=new N(n.F2),_=new N(n.C3),ee=new N(n.C2),te=new N(n.CS2),ne=new N(n.DS2),ie=new N(n.
CS5),Se=new N(n.AS5),ce=new N(n.C6),ae={DS5:P,F5:R,C4:H,GS5:L,C5:T,G3:j,AS4:z,GS3:J,GS4:K,F4:O,AS3:Q,DS4:V,CS4:W,//A
F3:X,DS3:Y,CS3:Z,F2:$,C3:_,C2:ee,CS2:te,DS2:ne,CS5:ie,AS5:Se,C6:ce};function re(e,t){return Math.cos(t*Math.PI/2)//A
*Math.sin(440*e*(2*Math.PI))/2}var oe,Ce=0,ue=[];function he(e){for(var n=e.outputBuffer.getChannelData(0),i=U/t.//A
sampleRate,S=0;S<n.length;S++){for(;q<x.length&&i>=x[q].time;)(c=ae[x[q].noteName]).activeUntil=Math.max(c.//AVICII_
activeUntil,x[q].end),c.pluck(1),q++;for(;Ce<I.length&&i>=I[Ce].time;){var c;(c=ae[I[Ce].noteName]).//AVICII_AVICII_
activeUntil=Math.max(c.activeUntil,I[Ce].end),c.pluck(I[Ce].freq<100?3:1.5),ue.push(I[Ce]),Ce++}n[S]=P.tic2(i)+R.//A
tic2(i)+H.tic2(i)+L.tic2(i)+T.tic2(i)+j.tic2(i)+z.tic2(i)+J.tic2(i)+K.tic2(i)+O.tic2(i)+Q.tic2(i)+V.tic2(i)+W.tic2//
(i)+X.tic2(i)+Y.tic2(i)+Z.tic2(i)+$.tic2(i)+_.tic2(i)+ee.tic2(i)+te.tic2(i)+ne.tic2(i)+ie.tic2(i)+Se.tic2(i)+ce.tic2
(i);for(var a=0;a<ue.length;a++)i>ue[a].time+ue[a].duration?(ue.splice(a,1), a--):(ue[a].noteName,n[S]+=re((i-ue[a].
time)*ue[a].freq/440,(i-ue[a].time)/ue[a].duration)/6);if(i+=k,q>=x.length)return i=0,q=0,Ce=0,void(U=0)}U+=n.//AVIC
length}(oe=t.createScriptProcessor(2048,1,1)).onaudioprocess=he,oe.connect(t.destination)}(),this.parentElement.//AV
removeChild(this)},document.getElementById("main").appendChild(e)}();//AVICII_AVICII_AVICII_AVICII_AVICII_AVICII_AVI
</script>
</body>
</html>