fix pitch errors
All checks were successful
/ build (push) Successful in 33s

This commit is contained in:
Nycki 2025-07-08 18:46:55 -07:00
parent 89ded5295e
commit a5e6e3c0fb
3 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ for(
z>1|C-3?1+C<9||(
O=new OscillatorNode(A=new AudioContext,{
type:`square`,
detune:100*(d?`0x`+d-(v[c]==`!`)+(v[c]==`%23`)+o-9:-9e9)
detune:100*(d?`0x`+d-(v[c]==`!`)+(v[c]==`#`)+o-9:-9e9)
}),
O.connect(A.destination),
O.start(t),

View file

@ -46,7 +46,7 @@ for(
type:`square`,
detune:100*(`0x`+d-(v[c]==`!`)+(v[c]==`#`)+o-9)
}),
G=new GainNode(A,{gain:1/20}),
G=new GainNode(A,{gain:.05}),
O.connect(G),
G.connect(A.destination),
O.start(t),
@ -61,7 +61,7 @@ for(
// change channel
(T[Z]=t,Z=+v.slice(c,c+=2),t=T[Z]|0)
// d is additional data that varies with the operation.
)d=`--0229024579b`[z=`\n;.3cdefgab012456789x@jtsiqhwz`.indexOf(C)]
)d=`--29024579b`[z=`\n;.3cdefgab012456789x@jtsiqhwz`.indexOf(C)]
'>#play</button> <button onclick=f.A.close()>#stop</button></center>
<!-- stop snipping here -->

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:1/20}),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=`--0229024579b`[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?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>