quick and dirty fix to octave issue to protect people's ears
All checks were successful
/ build (push) Successful in 37s

This commit is contained in:
Nycki 2025-07-08 23:03:26 -07:00
parent 73fba921df
commit 43c99e8ceb
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ T=[];
for(
c=t=o=k=Z=0,l=2;C=v[c++];
// - + octave, or no match
z<0?o+=C+12|0:
z<0?C.trim()&&(o+=C+12|0):
// comments
z<2?k=z:k?0:
// triplets and dots

View file

@ -1 +1 @@
<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?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>
<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>