This commit is contained in:
parent
7965c2e2b3
commit
efff05f2f4
1 changed files with 5 additions and 2 deletions
|
@ -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</button>
|
||||
<!-- stop snipping here -->
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue