nycki.net/static/qrplay/v2c.min.html
nycki 657cc8f47c
All checks were successful
/ build (push) Successful in 39s
precompute D and E
2025-07-09 22:19:51 -07:00

3 lines
No EOL
787 B
HTML

<meta name=viewport content=initial-scale=1><center><p><a href=http://nycki.net/qrplay>qrplay v2c</a></p><textarea id=f style=width:min(40em,99%);height:9lh></textarea><p><button onclick='s=f.value.toLowerCase();f.A?.close();A=f.A=new AudioContext;T=[];u=137;v=40;for(c=t=o=k=Z=0,l=3;C=s[c++];z<0?0:z<2?k=z:k?0:z<4?o+=12*--d:z<6?l*=3/d:z<23?(O=new OscillatorNode(A,{type:`square`,detune:100*(d?`0x`+d-(s[c]==`!`)+(s[c]==`#`)+o-9:-9e9)}),G=new GainNode(A,{gain:.5**(14-v/5)}),O.connect(G),G.connect(A.destination),O.start(t),O.stop(t+=2.5*l/u)):z<24?(o=0,l=3):z<31?l=3<<(z-25):z<32?(T[Z]=t,t=T[Z=s[c++]+s[c++]|0]|0):z<33?u=s.slice(c,c+=3):v=s[c++]+s[c++])d=`--0229024579b`[z=`\n;-+.3cdefgab012456789x@jtsiqhwzuv`.indexOf(C)]'>#play</button> <button onclick=f.A.close()>#stop</button>
783