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