v2 prototype with save/load
All checks were successful
/ build (push) Successful in 43s

This commit is contained in:
Nycki 2025-07-07 10:47:49 -07:00
parent 142746c3a4
commit 8c7311ac38

View file

@ -18,10 +18,11 @@
<meta name="viewport" content="width=device-width initial-scale=1.0">
<textarea id=f></textarea><br>
<button onclick='
/*qrplay v1, nycki & SArpnt, 2025*/
/*qrplay v2, nycki & SArpnt, 2025*/
f.A&&f.A.close();
f.A=A=new AudioContext;
v=f.value;
T=[];Z=0; // channels
f.A=A=f.A||new AudioContext;
B=new GainNode(A,{gain:0.4});
B.connect(A.destination);
for(
@ -50,17 +51,24 @@ for(
)
)
g=[,-12,12,4,-9,2,-7,1,-5,.5,-4,.25,-2,1/8,0,l/3,2,l*1.5][z=`@-+wchdqeifsgta3b.x012456789z\npovukr\x27`.indexOf(c.toLowerCase())]
'>#play</button><button onclick='f.A.close();f.A=0'>#stop</button>
'>#play</button> <button onclick='f.A.close()'>#stop</button>
<!-- stop snipping here -->
<script>f.value=f.value||window.location.search.slice(1)||`'Solfeggettio in C Minor by JS Bach
<button onclick='
window.location.search = "?"+f.value.replaceAll(" ","%20").replaceAll("\n","%0a").replaceAll("#","%23");
'>#save</button>
<script>
f.value=f.value||window.location.search.slice(1)||`'Solfeggettio in C Minor by JS Bach
@i-e!ce!g+ce!dc-bgb+dgfe!de!
@ice!g+ce!dcdc-bagfe!d
@ie!ce!g+ce!dc-bgb+dgfe!d
@i+e!ce!g+ce!dcdc-bagfe!d
@i+e!c-ge!c++c-ge!a!--fa!+cfa!+ce!
@i+d-b!fd-b!++b!fdg--e!gb!+dgb!+d
@i+ge!dc-ge!dh.c`</script>
@i+ge!dc-ge!dh.c`;
f.value=f.value.replaceAll('%20', ' ').replaceAll('%0a','\n').replaceAll('%0A','\n').replaceAll('%23', '#');
</script>
<hr>