It's a simple sequencer with relatively clean and readable code though I had to sacrifice all whitespace except for the indentation. The point is to show that you don't have to garble your code to mak…
(function(i,S,L){
var x,y,W=[],A=[],T=[],F=String.fromCharCode,H=atob(L.hash.substr(2))
for(y=16;y--;){
W[y]=''
for(x=0;x<44e3;x++){
W[y]+=F((Math.cos(x*i/44100*2*Math.PI)<.7?1:-1)*(1-Math.sqrt(x)/210)*127+128)
}
i*=Math.exp('32322'[y%5]/12*Math.log(2))
W[y]=btoa(W[y])
}
for(y=256;y--;){
T[y]=H?H.charCodeAt(y>>3)>>7-y%8&1:0
}
c.onclick=function(e){
x=e.pageX>>5
y=e.pageY>>5
if((x|y)>>4) L.hash='#!'+btoa(H)
else T[i=x*16+y]=!T[i]
}
setInterval(function(){
for(y=16;y--;)
if(T[S*16+y]){
if(!A[i=S%8*16+y]){
(A[i]=new Audio('data:audio/wav;base64,UklGRgWsAABXQVZFZm10IBAAAAABAAEARKwAAESsAAABAAgAZGF0YeGrAACA'+W[y])).volume=.2
}
A[i].play()
}
c.width=c.height=530
a.font='14px Arial'
a.fillText('Simple sequencer. Click squares to toggle notes and here to update the URL.',4,527)
H=''
for(y in T){
x=y>>4
a.fillStyle='rgba(0,0,128,.'+(T[y]?x-S&&8:4)+')'
a.fillRect(x*32+2,y%16*32+2,30,30)
i=y%8?i*2+T[y]:T[y]
if(y%8==7) H+=F(i)
}
S=++S%16
},200)
})(110,0,top.location)
KGZ1bmN0aW9uKGksUyxMKXsNCnZhciB4LHksVz1bXSxBPVtdLFQ9W10sRj1TdHJpbmcuZnJvbUNoYXJDb2RlLEg9YXRvYihMLmhhc2guc3Vic3RyKDIpKQ0KDQpmb3IoeT0xNjt5LS07KXsNCglXW3ldPScnDQoJZm9yKHg9MDt4PDQ0ZTM7eCsrKXsNCgkJV1t5XSs9RigoTWF0aC5jb3MoeCppLzQ0MTAwKjIqTWF0aC5QSSk8Ljc/MTotMSkqKDEtTWF0aC5zcXJ0KHgpLzIxMCkqMTI3KzEyOCkNCg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