Log In  

Cart #pianophasetweet-0 | 2019-11-09 | Code ▽ | Embed ▽ | No License

"Tweetcart" which plays Piano Phase by the composer Steve Reich. The music is generated and played in the space of 280 characters (one tweet)!

Here's the code:

n="46bde64db6ed"d=#n
j=12800
o={0,0}for i=0,31 do for e=0,1 do
poke2(j+i*2+544+68*e,21120+i+e*64) end end
g=0
function _update60()for i=1,d do
g+=1
for e=1,2 do
if g%(90-e)<1then
w=o[e]
o[e]=w%d+1
sfx(7+e,e,tonum("0x0"..sub(n,w,w)))end
end
end
print("steve reich-piano phase")
end
P#69766 2019-11-09 23:31


[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-01-18 15:51 | 0.020s | 4194k | Q:31