Mysterious Monorail

Music from the js1k demo Mysterious Monorail by homecoded / DESiRE.

js1k.com/2015-hypetrain/demo/2322
homecoded.com

Log in to post a comment.

let t=0;
synth.def(() => (255&(1|63+(63&63+8*Math.sin(t++/2e5)*t/2e5)&100*Math.tan(4*Math.PI*t/2e5)/4*
                 Math.sin(4*Math.PI*[165,220,175,262,196,147,220,165][7&(2*t/2e5&12*t/2e5^8*t
                 /2e5)]*t/2e5)|2048*(1+(1&t/4/2e5))*t/2e5))/127-1).play(0,{env:one});