Genuary2025_42lines
Audiovisual Journey with 42 lines
Updated
•2 min read
GriddingWith42
The prompt for Genuary 2025 Day3 is “42 Lines of Code”, Day 29 is “Grid Based Design” and Day 26 is “Symmetry”
GriddingWith42 uses 42 lines of code with the help of OBS, to have the audio coded in SonicPi, the symmetry in LivecodeLab and a grid based design through LiveCodingYoutube.
Poetry
The motions repeat
As the Grid may be
Incomplete
But the motions sweep
As the pixels are seen
Video
Code
LiveCodeLab
simpleGradient color(0,(time % 15 + 1) * 15 ,220 - (time % 30) * 7),color(255,Math.hypot(time % 17, 3),255),color(10,140,215)
27 times
if time % 12 < 4
fill orange
if time % 12 > 8
fill teal
if time % 12 > 4 && 12 < 8
fill salmon
ambientLight 100 + (time % 10) * 11, 90 + (time % 30)* 4, 200 - (time % 70) * 2
move 0.001 * wave, 0.002 * wave(0.04)
rotate (time % 36) * 3
if time % 10 > 5
ball
else
box
scale 0.75
fill blue
noStroke
move 0.5, 1, 2
if time % 30 > 15
scale (time % 5 + 3) / 20
ball
else
scale (time % 5 + 1) / 12
box
LiveCodingYoutube
x = "-A8JOtN2dP0"
create(3,3,x)
speed([0,2,6,8],2)
speed([1,3,5,7],-2)
play(all)
SonicPi
live_loop :eddie do
use_bpm 15
use_random_seed Time.now.to_i / 2
with_fx [:ping_pong,:whammy,:echo,:ixi_techno].tick do
sample [:elec_beep,:perc_snap].choose,beat_stretch: 4, rate: 0.25 if spread(17,24).tick
use_synth [:piano, :hollow].choose
notes = (scale :e5, :minor_pentatonic, num_octaves: 3)
play choose([:Fs3,:Ds5,:B3,notes.choose]),attack: dice(2)/5,decay: dice(2)/5,sustain: [1,3,0.5].choose,release:[1,1.5,3].choose
sample [:drum_bass_hard,:tabla_ghe3].choose, rate: [-0.5,1,2,-1,-2].choose, beat_stretch: dice(3)
sleep [0.25,1,2,4].choose
end
end




