working
This commit is contained in:
parent
7ed6ac3d7d
commit
1bea44d890
1 changed files with 6 additions and 9 deletions
|
@ -35,7 +35,7 @@ F=(
|
||||||
I=0,
|
I=0,
|
||||||
K=0,
|
K=0,
|
||||||
S=D=>D?S(D+(M[++I]==C)-(M[I]=='/')):I
|
S=D=>D?S(D+(M[++I]==C)-(M[I]=='/')):I
|
||||||
)=>{;for(;
|
)=>{console.log(T);for(;
|
||||||
C=M[I++];
|
C=M[I++];
|
||||||
D=M[I],
|
D=M[I],
|
||||||
J=E=>E.indexOf(D)>=0,
|
J=E=>E.indexOf(D)>=0,
|
||||||
|
@ -78,15 +78,12 @@ F=(
|
||||||
O.stop(T+=L/U*15/8)
|
O.stop(T+=L/U*15/8)
|
||||||
):
|
):
|
||||||
// any unused letter or number
|
// any unused letter or number
|
||||||
C-3|C>'@'?setTimeout(
|
C>'/'?((M,T,L,N)=>(
|
||||||
// play a sample in parallel
|
console.log(M),
|
||||||
_=>F(D,T,L,N),
|
setTimeout(_=>F(M,T,L,N))
|
||||||
// ...but don't read infinitely far ahead
|
))(F[C],T,L,N):
|
||||||
1e3*T-Date.now()+W-5e3,
|
|
||||||
D=F[C]
|
|
||||||
):
|
|
||||||
// change octave, or noop
|
// change octave, or noop
|
||||||
N-=C+12|0
|
+C&&(N-=C+12|0)
|
||||||
)Q='XCDEFGABR$JTSIQHWVU3.\n;:'.indexOf(C)},
|
)Q='XCDEFGABR$JTSIQHWVU3.\n;:'.indexOf(C)},
|
||||||
F('\nU137V40'+H.value.toUpperCase())
|
F('\nU137V40'+H.value.toUpperCase())
|
||||||
">#play</BUTTON> <BUTTON onclick=H.A.close()>#stop
|
">#play</BUTTON> <BUTTON onclick=H.A.close()>#stop
|
||||||
|
|
Loading…
Add table
Reference in a new issue