The prompt for Genuary 2023 Day 3 is
Glitch Art
I decided to make Glitch Art using the same mixture of SonicPi for Audio and Hydra & Livecodelab for Visuals as the previous day.
The code can be found below with a poem to read above it.
Shapey Glitched
The shapes Commence to Glitch
As they can switch
Between forms
As the hue remains warm
For they can be solo or part of a swarm
A swarm with a goal
A swarm that will roll
For the swarm in whatever case
However, spaced
Shall commence to Glitch
Code
//Hydra
s0.initScreen();
src(s0).scale(({time}) => time % 40 / 10 + 0.5).rotate(0.5, 0.2).scrollX([0.5, -0.5, 0.5,0.1,0.5,0.1]).scrollY([0.5,0.3,0.1,0.2,0.1,0.3,0.5]).pixelate(10000,[200,10000,5000,1000,4000]).repeat([1,2, 3,1, 4,1, 3, 2,1]).modulateKaleid(s0,0.3).blend(s0).out(o0);
//Livecodelab
//LIveCodeLab
if time % 30 > 15
animationStyle paintOver
simpleGradient red,blue,yellow
else
animationStyle motionBlur
simpleGradient orange,teal,black
if time % 8 > 4
fill orange
ball 2 + time % 3,wave(0.03),sin(time % 10)
else
fill black
box wave(0.04), time % 3 + 1, 3
#Shapey Glitch Soundtrack (50% slow down post code)
#SonicPi
live_loop :Horlivka4 do
with_fx :gverb do
play choose( [ :G4, :Ds2, :A3 ] ) ,delay: 0.2 ,amp: 0.1
sleep 1
end
end
live_loop :Hrlvka3 do
with_fx [:krush,:whammy].choose, mix: 0.3 do
with_fx :gverb do
synth :sine
play choose([:G4,:Ds2,:Bs4,:F2]),decay: [0.1,0.2].choose,amp: 3
play choose([:G4,:Ds2,:Bs4,:F2]), amp: 3
sleep [0.25,0.5,1].choose
end
end
end
live_loop :Hrlvka do
with_fx :hpf,pre_mix: rrand(0.1,0.7), mix: 0.875 do
with_fx :whammy, pre_mix: rrand(0.1,0.83), mix: rrand(0.25,0.83) do
with_fx :ping_pong, pre_mix: rrand(0.1,0.7), mix: rrand(0.1,0.7) do
with_fx :krush, mix: rrand(0.1,0.6) do
with_fx :gverb, spread: rrand(0.1,0.6) do
synth [:sine, :pretty_bell, :prophet].choose
play choose([:G4,:Ds2,:Bs4,:F2]),decay: [0.1,0.2].choose,amp: dice(3)
play choose([:G4,:Ds2,:Bs4,:F2]),attack: [0.1,0.2,0.3,0.2].choose, amp: dice(3)
sleep [0.25,0.5,0.75,1,1.25,2].choose
end
end
end
end
end
end
live_loop :Hrlvka2 do
with_fx :ixi_techno,mix: rrand(0.1,0.7),phase: rrand(0.1,0.7) do
with_fx :hpf,pre_mix: rrand(0.1,0.7), mix: 0.875 do
with_fx :whammy, pre_mix: rrand(0.1,0.83), mix: rrand(0.25,0.83) do
with_fx :ping_pong, pre_mix: rrand(0.1,0.7), mix: rrand(0.1,0.7) do
with_fx :krush, mix: rrand(0.1,0.6) do
with_fx :gverb, spread: rrand(0.1,0.6) do
synth [:sine, :pretty_bell, :prophet,:dull_bell,:dtri].choose
play choose([:G4,:As4, :Ds2,:Bs4,:F2,:F3]),decay: [0.1,0.2].choose,amp: dice(3)
play choose([:G4,:As4,:Ds2,:Bs4,:F2,:F3]),attack: [0.1,0.2,0.3,0.2].choose, amp: dice(3)
sleep [0.25,0.5,0.75,1,1.25,2].choose
end
end
end
end
end
end
end