>>3434
melodyarray = [107, 107, 107, 111, 114, , 119, , 117, 117, 116, , 114, 114, 112, , 111, 111, 112, , 113, , 114, , , , 114, , 114, 114, , ,],
ch1array = [, , , , , , , , , , , , , , , , , , , , , , , , , , 109, , 109, 109, , ,],
ch2array = [, , , , , , , , , , , , , , , , , , , , , , , , , , 105, , 105, 105, , ,],
bassarray = [107, , 107, 119, , 119, 114, 114, 105, 105, 105, 117, , 117, 112, 112],
time=11,
samprate=32768,
bpm=60*sqrt(1.25),
bps=bpm/60,
t*=samprate,t/=65536,
beat=bps*(t/samprate*32768),
melpitch = 2**(melodyarray[(beat*bps>>time)%melodyarray.length]/12),
ch1=2**(ch1array[(beat*bps>>time)%ch1array.length]/12),
ch2=2**(ch2array[(beat*bps>>time)%ch2array.length]/12),
bass=2**(bassarray[(beat*bps>>time)%bassarray.length]/12),
div=1+(((bps*beat*5>>time)%5))/4,hm=(((t*div*melpitch/128*4|127)/div%256)/2+((t*2*div*melpitch/128|127)/div%256)/2),chh1=((t*div*ch1/128*4|127)/div),chh2=((t*div*ch2/128*4|127)/div),hi=((hm%256)/2+(chh1%256)/4+(chh2%256)/4)/2,low=((t*div*bass/1024*4|127)/div%256)/2,noise=random()*'40102010'[7&beat*bps*2>>time]*16,hi+low/2,noise+hi+low/2
B-120 face