Fill & Wipe
For this week's Creative Code Challenge by @sableraph: "Iterations", Fill&Wipe is coded through multiple iterations within and outside the code.
Coded in LiveCodeLab, SonicPi & LiveCodingYoutube
Poem
Iterating
Gyrating
Motion after each iterations
Slightly varies
But adds a little change to the stories
That weaves with the emotion
Of the objects that are gyrating and iterating
As they are emoting
What can’t be spoken
Video
Code
LiveCodeLab Iteration White
scale 0.4 + tan(time * wave)/5
animationStyle paintOver
if time % 10 > 5
stroke white
else
stroke black
if time % 8 > 4
fill white
else
fill orange
if time % 15 > 10
simpleGradient black,white,orange
rotate Math.sqrt(time),wave,wave
else if time % 15 > 5 && time % 15 < 10
simpleGradient blue,black,grey
move Math.hypot(Math.sqrt(tan(time)),4)
else
rotate Math.sqrt(time),Math.cbrt(wave),Math.hypot(wave,Math.cbrt(wave))
move tan(time),cos(time),wave
450 / (time % 12 + 1) times with i
rotate time * 3 - Math.cbrt(i)
move 2, Math.sqrt(sin(time)+1), Math.hypot(cos(time),2)
ball 0.5, 0.4, 0.77
LiveCodeLab Iteration Black
scale 0.4 + tan(time * wave)/5
animationStyle paintOver
if time % 10 > 5
stroke black
else
stroke white
if time % 8 > 4
fill black
else
fill orange
if time % 15 > 10
simpleGradient black,white,orange
rotate Math.sqrt(time),wave,wave
else if time % 15 > 5 && time % 15 < 10
simpleGradient blue,black,grey
move Math.hypot(Math.sqrt(tan(time)),4)
else
rotate Math.sqrt(time),Math.cbrt(wave),Math.hypot(wave,Math.cbrt(wave))
move tan(time),cos(time),wave
450 / (time % 12 + 1) times with i
rotate time * 3 - Math.cbrt(i)
move 2, Math.sqrt(sin(time)+1), Math.hypot(cos(time),2)
ball 0.5, 0.4, 0.77
LiveCodeLab Iteration Orange
scale 0.4 + tan(time * wave)/5
animationStyle paintOver
if time % 10 > 5
stroke orange
else
stroke white
if time % 8 > 4
fill black
else
fill orange
if time % 15 > 10
simpleGradient black,white,orange
rotate Math.sqrt(time),wave,wave
else if time % 15 > 5 && time % 15 < 10
simpleGradient blue,black,grey
move Math.hypot(Math.sqrt(tan(time)),4)
else
rotate Math.sqrt(time),Math.cbrt(wave),Math.hypot(wave,Math.cbrt(wave))
move tan(time),cos(time),wave
450 / (time % 12 + 1) times with i
rotate time * 3 - Math.cbrt(i)
move 2, Math.sqrt(sin(time)+1), Math.hypot(cos(time),2)
ball 0.5, 0.4, 0.77
LiveCodingYoutube
//First Iteration
black = "85ctvHiXzD0"
orange = "lE2P_pBnfkg"
white = "He6IfzIxtAg"
create(3,3,black)
cue([3,7,2],orange)
cue([6,1,5],white)
play(all)
//Second Iteration
black = "85ctvHiXzD0"
orange = "lE2P_pBnfkg"
white = "He6IfzIxtAg"
create(3,3,white)
cue([3,7,6],orange)
cue([2,1,5],black)
play(all)
//Third Iteration
black = "85ctvHiXzD0"
orange = "lE2P_pBnfkg"
white = "He6IfzIxtAg"
create(3,3,orange)
cue([3,7,6],black)
cue([2,1,5],white)
speed([0,1,2],0.5)
speed([3,4,5],1.2)
speed([6,7,8],-1)
play(all)
// Fourth Iteration
black = "85ctvHiXzD0"
orange = "lE2P_pBnfkg"
white = "He6IfzIxtAg"
create(3,4,white)
cue([3,7,6,10],orange)
cue([2,1,5,11],black)
speed([0,1,2],0.5)
speed([3,4,5],1.2)
speed([6,7,8],-1)
speed([9,10,11],-3)
play(all)
SonicPi - Iteration 1
#Index3ForBlips
#Remixing this code by adding an index of 3
#Done by bringing the power to 3 via **
with_fx :reverb do
use_random_seed Time.now.to_i % 100 #making true random as it goes with the actual time
puts Time.now.to_i
live_loop :blips do
use_bpm 120
sample [:elec_blip,:elec_blip2,:elec_bong].choose, pan: rrand(-0.9,0.9)** 3, rate: rrand(-1.5, 1.5) ** 3
sleep [0.5,1,2].choose
end
end
live_loop :blips1, sync: :blips do
use_random_seed Time.now.to_i #making true random as it goes with the actual time
puts Time.now.to_i
with_fx :ixi_techno, mix: rrand(0.1,0.9) ** 3 do
use_bpm 60
sample [:elec_blip,:elec_blup,:elec_blup,:elec_flip].choose, pitch: 4, pitch_stretch: 0.4**3, rate: rrand(-2.5, 2.5) **3
sleep [0.5,1,2].choose
end
end
live_loop :blips2, sync: :blips do
use_random_seed Time.now.to_i / 3 #making true random as it goes with the actual time
puts Time.now.to_i
with_fx :echo,mix: rrand(0.1,0.7) ** 3, decay: rrand(0.5,2) ** 3 do
use_bpm 120
sample [:elec_blip,:elec_blip,:elec_blup,:elec_blup,:elec_flip].choose,amp: dice(5), rate: rrand(0,4) ** 3
sleep [0.5**3,1,2**3].choose
end
end
SonicPi - Iteration2
#Index3ForBlips
#Remixing this code by adding an index of 3
#Done by bringing the power to 3 via **
live_loop :blips do
with_fx :reverb do
use_random_seed Time.now.to_i % 100 #making true random as it goes with the actual time
puts Time.now.to_i
use_bpm 60
sample [:elec_blip,:elec_blip2,:elec_bong].choose, pan: rrand(-0.9,0.9)** 3, rate: rrand(-1.5, 1.5) ** 3
sleep [0.5,1,2].choose
end
end
live_loop :blips1, sync: :blips do
use_random_seed Time.now.to_i #making true random as it goes with the actual time
puts Time.now.to_i
with_fx :ixi_techno, mix: rrand(0.1,0.9) ** rrand_i(1,3) do
use_bpm 30
sample [:elec_blip,:elec_blup,:elec_blup,:elec_flip].choose, pitch: 4, pitch_stretch: 0.4**3, rate: rrand(-2.5, 2.5) ** dice(3 * 0.1)
sleep [0.5,1,2].choose
end
end
live_loop :blips2, sync: :blips do
use_random_seed Time.now.to_i / 3 #making true random as it goes with the actual time
puts Time.now.to_i
with_fx :echo,mix: rrand(0.1,0.7) ** 3, decay: rrand(0.5,2) ** rrand(0.5,3) do
use_bpm 40
sample [:elec_blip,:elec_blip,:elec_blup,:elec_blup,:elec_flip].choose,amp: dice(5), rate: rrand(0,4) ** (dice(3) * 0.1)
sleep [0.5**3,1,2**3].choose
end
end