It's a simple 8-bar tracker that generates on-the-fly mixing & generation of WAV files composed of multi-note bars at 4000/16/1.
F=document;o=F.getElementById('c');F.body.appendChild(m=F.createElement('div'));D=70;H=N=8;T=240;R=4000;g=[277,294,330,349,392,440,466,587];o.width=o.height=s=D*N+D;I=o.getContext('2d');J=Math;P=J.floor;c=String.fromCharCode;function S(s){return c(s&255)+c((s>>8)&255);}o.addEventListener('click',function(a){b[Q=P(a.clientX/D)*N+P(a.clientY/D)]=!b[Q];},0);b=[];function L(){H++;I.clearRect(0,0,s,s);h=[];for(w=0;w<N*N;w++){y=w%N;x=w>>3;K=(H%N)==x;o=b[x*N+y];C=c(9634);I.lineWidth=K+1;I.strokeStyle=K?'#f22':'#000';I.fillStyle='#06f';I.font=D+'px Arial';Y=D*(y+.8);o&&I.fillText(C,D*x,Y);I.strokeText(C,D*x,Y);K&&o&&h.push(y);}m.innerHTML=W='';for(n=0;n*4<R;n++){v=0;for(x in h)v+=J.sin(2*J.PI*g[h[x]]*n/R);v*=n<50?n/50:n>500?(999-n)/500:1;W+=S(P(v*32767/h.length));}V=F.createElement("embed");V.setAttribute('hidden',true);V.src="data:audio/wav;base64,"+escape(btoa("RIFF\xf2\7\0\0WAVEfmt \20\0\0\0\1\0\1\0\xa0\17\0\0\x40\x1f\0\0\2\0\20\0data\xd0\7"+W));m.appendChild(V);setTimeout(L,75+R*15/T);}L();/*aempirei+20GOTO10*/
Rj1kb2N1bWVudDtvPUYuZ2V0RWxlbWVudEJ5SWQoJ2MnKTtGLmJvZHkuYXBwZW5kQ2hpbGQobT1GLmNyZWF0ZUVsZW1lbnQoJ2RpdicpKTtEPTcwO0g9Tj04O1Q9MjQwO1I9NDAwMDtnPVsyNzcsMjk0LDMzMCwzNDksMzkyLDQ0MCw0NjYsNTg3XTtvLndpZHRoPW8uaGVpZ2h0PXM9RCpOK0Q7ST1vLmdldENvbnRleHQoJzJkJyk7Sj1NYXRoO1A9Si5mbG9vcjtjPVN0cmluZy5mcm9tQ2hhckNv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