1 line
No EOL
524 B
HTML
1 line
No EOL
524 B
HTML
<meta name="viewport" content="width=device-width initial-scale=1.0"><textarea id=f></textarea><br><button onclick='v=f.value;A=new AudioContext;for(i=t=o=k=0,l=1;c=v[i++],d=v[i],c;z<0?0:z==29?k=0:z==28?k=1:k?0:z>17?t+=l:z<4?z?o+=g:(o=0,l=1/8):z&1?l=g:(a=new OscillatorNode(A,{type:`square`,detune:100*(g+o+(d==`#`)-(d==`!`))}),a.connect(A.destination),a.start(t*.4),t+=l,a.stop(t*.4)))g=[,-12,12,4,-9,2,-7,1,-5,.5,-4,.25,-2,1/8,0,l/3,2,l*1.5][z=`@-+wchdqeifsgta3b.x012456789\x27\n`.indexOf(c.toLowerCase())]'>#play</button> |