0,>S}Wup8d%qy @2TvͫgE#2Tv2TvT̻ẍ̬̬̬̬̬̬̬̈̬̬̬̬̬̪쬪̬̬̬̪쬪 > 3                 -- title: polyrhythm -- author: commensalism -- desc: another yt shorts thing (theyre good inspiration ngl) -- license: MIT License -- version: 0.1 -- script: lua local t = 0 local function trim(a) local sign = a / math.abs(a) return math.floor(math.abs(a)) * sign end local function trf(a) return 2*math.abs(2 * ((a/180) - math.floor((a/180) + 0.5))) - 1 end function TIC() cls(0) -- circ(10, math.sin(t)*30+68, 10, 12) -- circ(40, math.sin(t*1.25)*30+68, 10, 12) -- circ(70, math.sin(t*1.5)*30+68, 10, 12) -- circ(100, math.sin(t*1.75)*30+68, 10, 12) -- circ(130, math.sin(t*2)*30+68, 10, 12) -- circ(160, math.sin(t*2.25)*30+68, 10, 12) -- circ(190, math.sin(t*2.5)*30+68, 10, 12) -- circ(220, math.sin(t*2.75)*30+68, 10, 12) -- if math.abs(trim(math.sin(t))) == 1 then sfx(0, "C-3", 3, 0) end -- if math.abs(trim(math.sin(t*1.25))) == 1 then sfx(0, "D-3", 3, 1) end -- if math.abs(trim(math.sin(t*1.5))) == 1 then sfx(0, "E-3", 3, 2) end -- if math.abs(trim(math.sin(t*1.75))) == 1 then sfx(0, "F-3", 3, 3) end -- if math.abs(trim(math.sin(t*2))) == 1 then sfx(0, "G-3", 3, 0) end -- if math.abs(trim(math.sin(t*2.25))) == 1 then sfx(0, "A-3", 3, 1) end -- if math.abs(trim(math.sin(t*2.5))) == 1 then sfx(0, "B-3", 3, 2) end -- if math.abs(trim(math.sin(t*2.75))) == 1 then sfx(0, "C-4", 3, 3) end circ(10, trf(t)*30+68, 10, 8) circ(40, trf(t*1.25)*30+68, 10, 9) circ(70, trf(t*1.5)*30+68, 10, 10) circ(100, trf(t*1.75)*30+68, 10, 11) circ(130, trf(t*2)*30+68, 10, 12) circ(160, trf(t*2.25)*30+68, 10, 13) circ(190, trf(t*2.5)*30+68, 10, 14) circ(220, trf(t*2.75)*30+68, 10, 15) if math.abs(trim(trf(t))) == 1 then sfx(0, "C-3", 3, 0) end if math.abs(trim(trf(t*1.25))) == 1 then sfx(0, "D-3", 3, 1) end if math.abs(trim(trf(t*1.5))) == 1 then sfx(0, "E-3", 3, 2) end if math.abs(trim(trf(t*1.75))) == 1 then sfx(0, "F-3", 3, 3) end if math.abs(trim(trf(t*2))) == 1 then sfx(0, "G-3", 3, 0) end if math.abs(trim(trf(t*2.25))) == 1 then sfx(0, "A-3", 3, 1) end if math.abs(trim(trf(t*2.5))) == 1 then sfx(0, "B-3", 3, 2) end if math.abs(trim(trf(t*2.75))) == 1 then sfx(0, "C-4", 3, 3) end line(0, 28, 240, 28, 1) line(0, 108, 240, 108, 1) -- t = t + math.pi/180 t = t + 1 end