diff --git a/static/qrplay/qrplay-v2-nupas-theme.png b/static/qrplay/qrplay-v2-nupas-theme.png new file mode 100644 index 0000000..2bce119 Binary files /dev/null and b/static/qrplay/qrplay-v2-nupas-theme.png differ diff --git a/static/qrplay/v2c.html b/static/qrplay/v2c.html index 3973543..751cb03 100644 --- a/static/qrplay/v2c.html +++ b/static/qrplay/v2c.html @@ -37,8 +37,6 @@ T=[];L=[]; u=137; // volume. 40 is default, 35 is half, 30 is half again. v=40; -// percussion can be approximated as 1024th notes. -P=x=>(s=`z99${x}z${Z} o${o+4} x`+s.slice(c),c=0,T[99]=t,L[99]=2**-5); for( c=t=k=Z=0;D=s[c+1],E=D+s[c+2],C=s[c++]; // no match @@ -50,18 +48,8 @@ for( // dots and triplets z<5?l*=3/2: z<6?l/=3: - // percussion - C==`0`?P(`o07g`): - C==`1`?P(`o05b+c#deff#gg#aa#b+cc#d`): - C==`2`?P(`o06g++ddb--g++ddb--g++ddb--g++ddb`): - C==`4`?P(`o07g`): // todo - C==`5`?P(`o07g`): // todo - C==`6`?P(`o05a++c#-aae+e--a++c#-aae+e--a++c#`): - C==`7`?P(`o07g`): // todo - C==`8`?P(`o07g`): // todo - C==`9`?P(`o04a++c#-aae+e--a++c#-aae+e--a++c#`): // todo // note or rest - z<23?( + z<14?( z-=6, O=new OscillatorNode(A,{ type:`square`, @@ -73,6 +61,22 @@ for( 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 @@ -89,7 +93,7 @@ for( z<34?(v=E,c+=2): // set octave (o=E-4,c+=2) -)z=`\n;-+.3cdefgab012456789x@jtsiqhwzuvo`.indexOf(C) +)z=`\n;-+.3cdefgabx012456789@jtsiqhwzuvo`.indexOf(C) '>#play diff --git a/static/qrplay/v2c.min.html b/static/qrplay/v2c.min.html index f08afcb..029f776 100644 --- a/static/qrplay/v2c.min.html +++ b/static/qrplay/v2c.min.html @@ -1 +1,64 @@ -

qrplay v2c

\ No newline at end of file + +

+

qrplay v2c

+

+ \ No newline at end of file