nycki.net/static/qrplay/v2b.min.html
nycki 43c99e8ceb
All checks were successful
/ build (push) Successful in 37s
quick and dirty fix to octave issue to protect people's ears
2025-07-08 23:03:26 -07:00

1 line
No EOL
698 B
HTML

<meta name=viewport content=initial-scale=1><center><p><a href=http://nycki.net/qrplay>qrplay</a></p><textarea id=f></textarea><p><button onclick='v=f.value.toLowerCase();f.A?.close();A=f.A=new AudioContext;T=[];for(c=t=o=k=Z=0,l=2;C=v[c++];z<0?C.trim()&&(o+=C+12|0):z<2?k=z:k?0:z<4?l*=3/d:z<11?(O=new OscillatorNode(A,{type:`square`,detune:100*(`0x`+d-(v[c]==`!`)+(v[c]==`#`)+o-9)}),G=new GainNode(A,{gain:.05}),O.connect(G),G.connect(A.destination),O.start(t),O.stop(t+=l*7/256)):z<21?t+=l*7/256:z<22?(o=0,l=2):z<29?l=1<<(z-22):(T[Z]=t,Z=+v.slice(c,c+=2),t=T[Z]|0))d=`--29024579b`[z=`\n;.3cdefgab012456789x@jtsiqhwz`.indexOf(C)]'>#play</button> <button onclick=f.A.close()>#stop</button></center>