From efff05f2f426c546172964bddc299ef813dc66cd Mon Sep 17 00:00:00 2001 From: nycki Date: Mon, 7 Jul 2025 00:37:21 -0700 Subject: [PATCH] allow commenting out lines --- static/qrplay/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/qrplay/index.html b/static/qrplay/index.html index bb59434..fc3ab57 100644 --- a/static/qrplay/index.html +++ b/static/qrplay/index.html @@ -21,10 +21,13 @@ v=f.value; A=new AudioContext; for( - i=t=o=0,l=1; + i=t=o=k=0,l=1; c=v[i++],d=v[i],c; z<0?0: // no match + z==29?k=0: // end of comment + z==28?k=1: // start of comment + k?0: // comment z>17?t+=l: // rest z<4? // @-+ z?o+=g: // change octave @@ -41,7 +44,7 @@ for( 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`.indexOf(c.toLowerCase())] + 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