diff --git a/static/qrplay/index.html b/static/qrplay/index.html index 0dda4b9..08b7869 100644 --- a/static/qrplay/index.html +++ b/static/qrplay/index.html @@ -2,6 +2,14 @@
a QR-code sized implementation of ZZT Play, which you may know from the ZZT Hall of Music.
-I designed this because I wanted a program I could print on a business card, and SArpnt found some clever ways to shrink it even further. The version on this page is commented, the version in the QR code is minified.
+I designed this because I wanted a program I could print on a business card, and SArpnt found some clever ways to shrink it even further. The source on this page is commented, the source in the QR code is minified.
paste ZZT music code in this box, then click the button to #play!
- -+ G=new GainNode(A,{gain:z<7&&.5**(12-v/5)}), + O.connect(G), + G.connect(A.destination), + O.start(t), + O.stop(t+=7.5*l/u) + ): + // percussion + z<23?( + // insert micronotes to match ZZTs drums. random numbers chosen in advance. + s=`z99o06${[ + "+g", + "-b+c#deff#gg#aa#b+cc#d", + "g++ddb--g++ddb--g++ddb--g++ddb", + , + "+ea-g--b++g++c#----b++g+cd#-g+cec", + "a#ga#g-a#+g-b+g", + "-a++c#-aae+e--a++c#-aae+e--a++c#", + "-fffeeed#d#dddc#c#c#", + "dddddedc#ded#fee", + "--ba#bb-a+a#-baaa+a#bb-a", + ][z-14]}z${Z} o${o+4} x`+s.slice(c),c=0,T[99]=t,L[99]=u/2**12 + ): + // reset octave and duration + z<24?(o=0,l=1): + // set note length + z<31?l=2**(z-25): + // change channel + z<32?( + T[Z]=t,L[Z]=l, + t=T[Z=E|0]||0,l=L[Z]||l, + c+=2 + ): + // change tempo + z<33?u=E+s[c+=2,c++]: + // change volume + z<34?(v=E,c+=2): + // set octave + (o=E-4,c+=2) +)z=`\n;-+.3cdefgabx012456789@jtsiqhwzuvo`.indexOf(C) +'>#play - - +
qrplay | Solfeggetio in C Minor |
- ![]() |
-
- ![]() |
-
- | - |
for security reasons, your phone probably won't open these as links. you'll have to copy and paste the text into your browser's uri input.
+a QR-code sized implementation of ZZT Play, which you may know from the ZZT Hall of Music.
+ +I designed this because I wanted a program I could print on a business card, and SArpnt found some clever ways to shrink it even further. The version on this page is commented, the version in the QR code is minified.
+ +paste ZZT music code in this box, then click the button to #play!
+ + + +qrplay | Solfeggetio in C Minor |
+ ![]() |
+
+ ![]() |
+
for security reasons, your phone probably won't open these as links. you'll have to copy and paste the text into your browser's uri input.
+ + + \ No newline at end of file diff --git a/static/qrplay/min.html b/static/qrplay/min.html index fcc4bdb..512244e 100644 --- a/static/qrplay/min.html +++ b/static/qrplay/min.html @@ -1 +1,64 @@ -+