WCCC_Factory
Motion in Glitch
Updated
•3 min read
InnerCogsMotion
For this week's Creative Code challenge by @sableRaph: “Factory”, InnerCogsMotion coded in HydraVideoSynth,Locomotion & SonicPi showcases the Inner Cogs of a Galactic Factory.
Poem
The Inner Workings
The Cogs Recordings
To avoid unnecessary uncorkings
As they remain sorting
To unleash new convertings
Video
Code
HydraVideoSynth
s0.initScreen()
src(s0).diff(src(s0).scale(2).modulateKaleid(src(s0).pixelate(500,500).scale([0.5,1,2,4].smooth()))).
out()
speed = 0.25
Locomotion
--purple is #800080
point {x = range 0 17 (osc 0.15), z = range 0 6 (osc 0.35) , intensity = range 8 25 (osc 0.5), color = 0x800080 };
c = hsv (step [0,1/3,1/3,2/3,2/3,2/3,1/3,1/3,1/3,0,0] (phase 1 0)) 0.2 (range 0.5 1 (osc 0.09));
c1 = hsv (step [0.5,1/3,1/3,2/3,0.5,2/3,2/3,1/3,1/3,1/3,0.5,0] (phase 1 0)) 0.3 (range 0.15 0.25 (osc 0.09));
c1c = hsv (step [0.5,1/3,1/3,2/3,0.5,2/3,2/3,1/3,1/3,1/3,0.5,0] (phase 1 0)) 0.47 (range 0.25 0.75 (osc 0.09));
cc = hsv (step [0,1/3,1/3,2/3,2/3
,2/3,1/3,1/3,1/3,0,0] (phase 1 0)) 0.7 (range 0.5 1 (osc 0.09));
--Lighting
ambient {intensity = range -4 8 (osc 0.15)};
point {color = rgb 200 170 135, x = 0, y = 3};
directional { colour= rgb 100 150 35, intensity = range 0 4 (osc 0.5), z = range 0 17 (osc 0.8), y = 10, x = -6 };
-- making a variable to use throughout
move = (osc 0.10);
-- background
clear { colour= 0x51414F, alpha= 1.5 };
-- the boxes
box { colour = cc,rx = range 0 180 (move), y = range -3 3 (move), size = range -3 3 (move) };
box { colour = c1,rz = range 0 180 (move), x = range -2 2 (move),size = range -2 2 (move) };
box { colour = c1c,rz = range 0 180 (move),z = range -20 2 (move), y = range - 3 3 (move), x = range -3 3 (move),size = range -2 2 (move) };
box { colour = c, ry = range 0 180 (move), z = range -2 2 (move),size = range -1 1 (move) };
--magicavoxel usage
dancer {url="https://raw.githubusercontent.com//IllestPreacha/CreativeDataStuff//7aa243f3043429f88cb44eda132d85e96863541b/3Dmodel/cubemix1.glb", size = 2,ry = range 0 15 (osc 0.25), y = range -0.1 0.1 (osc move), z = range -2 2 (move),size = range -1 1 (move) };
dancer {url="https://raw.githubusercontent.com//IllestPreacha/CreativeDataStuff//7aa243f3043429f88cb44eda132d85e96863541b/3Dmodel/cubemix2.glb", size = 2,ry = range 180 270 (osc 0.25), x = 3,z = range -2 2 (move),size = range -1 1 (move) };
dancer {url="https://raw.githubusercontent.com//IllestPreacha/CreativeDataStuff//7aa243f3043429f88cb44eda132d85e96863541b/3Dmodel/cubemix3.glb", size = 2,ry = range 0 360 (osc 0.25), y = 4, z = range -2 2 (move),size = range -1 1 (move) };
r2 = step [3,4,5,6] (phase 4 0);
r = step [0.5,2,1,4] (phase 16 0);
-- ube Evolution
dancer { url="https://raw.githubusercontent.com//IllestPreacha/CreativeDataStuff//7aa243f3043429f88cb44eda132d85e96863541b/3Dmodel/cubemix1.glb", size = 0.5, x = range -15 15 (osc 0.0015), dur = 2, y= range -10 0 (osc 0.0015), z = -20, rx = range 0 15 (osc 0.25) };
f a n = dancer { url="https://raw.githubusercontent.com//IllestPreacha/CreativeDataStuff//7aa243f3043429f88cb44eda132d85e96863541b/3Dmodel/cubemix1.glb", y = 1, x = -4 + n, z = a * n,ry = range -30 90 (osc 0.5), lz = range -45 130 (osc 3),size = 0.3 };
for [0..8] (f 0.5);
for [0..8] (f 1.5);
for [0..8] (f -0.5);
SonicPi
live_loop :do do
use_random_seed Time.now.to_i / 2
with_fx :echo, mix: [0.65,0.45,0.75].choose do
with_fx :ixi_techno, mix: [0.15,0.35,0.57,0.74].tick do
use_bpm [30,60,120].choose
sample [:bd_808,:drum_heavy_kick,:bd_klub].choose, amp: dice(5) if spread(5,8).tick
sleep [0.5,1,2,4].choose
end
end
end
live_loop :do1 do
use_random_seed Time.now.to_i / 4
with_fx :echo,decay: 0.75, mix: 0.65 do
with_fx :ixi_techno, mix: [0.15,0.35,0.57,0.74].choose do
use_bpm [30,60,120].choose
sample [:bd_gas,:drum_snare_hard,:tabla_na_o ].choose, amp: dice(4) if spread(17,24).tick
sleep [0.25,0.5,1,2,4].choose
end
end
end




