ap=(x,y)=>x<y?x:y,invap=(x,y)=>x>y?x:y,c=(x,y)=>x%256*(y),SAMPRATE=38250 /*38250*/,BPM=200,T=t/SAMPRATE*BPM/60*16384,hI=t*2**((parseInt('15C15CA804A04ADC58F58FDC37D3DCAC'[(T>>13)%32],36)-1)/12)/1.25,x=hI,h=((((c(((x%256)>((x/t)*64%256)||128)&(128+(hI&255)*3)&-T>>5,abs(((T+262144)/32768%16)-8))&hI*2)*4^hI)&191)/1.5^(((c(((x%256)>((x/t)*64%256)||128)&(128+(hI&255)*3)&-T>>5,abs(((T+262144)/32768%16)-8))&hI*2)*4^hI)&191))%(hI&-T>>5&255)|0,B=t*2**(parseInt('8888888877777777CCCCCCCCFFFFFFFF'[(T>>13)%32],36)/12)/4,bass=c(B,abs(((T+262144)/32768%16)-8))/2%256,b=(abs(((c(bass%256,abs(((T+262144)/32768%16)-8))-128)%256)-128)%256),medium=h+b/2&255,err=6,I=3,fd=(x,y)=>x%256*(y&2047)/2048,A1=[err,err,1,1,I,I,1,I,1,I,err,err,I,I,1,I,err,err,err,err,I,I,1,I,1,I,err,err,I,I,1,I][(T>>12)%32],B1=[err,err,err,err,I,I,1,I,1,I,err,err,I,I,1,I][(T>>12)%16],AB=fd(t/5*tan(t>>[A1,B1][(T>>17)%2])&128*([[err,err,1,1,2,2,1,2,1,2,err,err,2,2,1,2,err,err,err,err,2,2,1,2,1,2,err,err,2,2,1,2][(T>>12)%32],[err,err,1,1,2,2,1,2,1,2,err,err,2,2,1,2,err,err,err,err,2,2,1,2,1,2,err,err,2,2,1,2][(T>>12)%32]][(T>>17)%2]>0),-T>>[2,2,2,2,2,2,1,2,1,2,2,2,2,2,1,2,2,2,2,2,2,2,1,2,1,2,2,2,2,2,1,2,/**/2,2,2,2,2,2,1,2,1,2,2,2,2,2,1,2,2,2,2,2,2,2,1,2,1,2,2,2,2,2,1,2][(T>>12)%64]),h=ap(abs(((hI^hI*.5*3&hI)%256)-128),128),h=(h*2*(hI%256)/256|h*2)%(-T*((T>>18&1)+1)>>5&255)/2,hI2=t*2**((parseInt('15C15CA804A04ADC58F58FDC37D3DCAC'[(T>>12+(T>>12&3^T>>12&5))&31],36)-1)/12)/1.25,h2=ap(abs(((hI2^hI2*.5*3&hI2)%256)-128),128),h2=(h2*(hI2%256)/256|h2)%(-T>>5&255)*1.5,b2=(b^bass)&127,
throwfunc=x=>T&1023?0:(()=>{throw x})(),
x=[b,AB+b,h*2+b,(h*2+b)+AB,b2+AB/2,b2+h*2,b2/2+AB+h*2,h2/2,h2/2+AB,h2/2+b2/2,b/2+h*2,AB,AB+b2/2,b2/2,h*2+b/2,b][(T>>19)%16]/1.5
,throwfunc("\n \n \n \n \n T="+(T|0)+" thrown: "+"current bar: " + (T>>19)%16 + " of 16 bars")+ap(x,255)
https://dollchan.net/bytebeat/#v3b64vVVtb5swEP4rCCnUNk7B5iU0mqlIskp8qFR1fAuJBHkRlVYaJXQjavrfdzakSdOq01ZtNvbZj89n3/nueNJnD/OF3tezlUA13WIR1l+2l3V/S+/KH0dg2ICzF6DDPZ+gLabfouub2yj5KpyAe7ZmEUWJRQc314LbNk1EZe2ZCICWbxPmO4FLi1hUhBOC0CpbbxZxWaEz5g3hiwLbjeAbDb3gCr7R0OmNnNEwGp6NURKGzMEdh0+o4+Muwxbj0M65R2tRxLQQCMoMmrolDmFgVZj4rprudowH2EDQm6iIDe55mDjY6IJcj2b5BjYmJvc5c11sObznBx0G5wQYG0VMOCbutIixwS7kyefe9H8dhjtSgtqp5OxsOmgNeLBf0JZeW4ZtuWrLG/sp47k0zzYbMUODj+9kcakVzQVq2GZI7lPY