·

# FloatingGeometries

For this week's Creative Code Challenge by @sableraph : Floating, I Coded Floating Geometries

This week's languages are LiveCodeLab for the Visuals, LivecodingYoutube for the visual effects and SonicPi for the sound.

## Floating Process

• The floating shapes are done in Livecodelab

• There is another floating-based sketch that is not included in the code, which has floating pegs that are green-screened to show images from a countryside in Sierra Leone

• To keep the floating theme going, the code in LiveCodeLab contains no ints and only floats

• For the visualization of the sketch, LiveCodingYoutube used four videos to make the sketch have variance

• For sound, I reused a recently made SonicPi Composition: YearlyRemix:https://blog.illestpreacha.com/minacoding2023yearlyremix (which was made for MinaCoding2023 Prompt: Remix a Sketch from a Year Ago)

## Poem

``````Float Floating
Floating to Soak
Soaking the rays of the skyline
Open to the days of the ride
As it floats to the edges of the bay
The bay that has never ending time
As it is line for the mind to scope
The geometries that float
Floating as they remain open
Till the day tells them to stop their play
``````

## Code

### LiveCodeLab

``````simpleGradient yellow,salmon,teal

if time % 20.0 > 6.0
animationStyle motionBlur

if time % 30.0 > 15.0
scale (sin(time) + (time % 13.0)/2.0 + 0.1)/4.0
rotate sin(time),cos(time),sin(time % 6.0 + 1.0)
else
scale Math.cbrt((sin(time) + (time % 13.0)/2.0 + 0.1)/4.0)
rotate Math.sqrt((time),cos(time),sin(time % 6.0 + 1.0)),wave(0.03)

fill blue
noStroke
box 1.0 + sin(wave(0.3)),2.0 * wave(0.05), sin(wave(0.43))

move 1.0,Math.sqrt(time %7.0+2.0),1
fill orange
noStroke
peg 1.0 + sin(wave(0.3)),2.0 * Math.cbrt(wave(0.05)), sin(wave(0.43))

move 2.0,1.0,Math.cbrt(time % 9.0 +1.0)
fill white
noStroke
box 1.0 + sin(wave(0.3)),2.0 * wave(0.05), sin(wave(0.43))

move cos(time),2.0,wave(0.03)
fill red
stroke color(time % 10.0 * 25.0, sin(wave(0.003) * 50.0))
ball 1.0 + sin(wave(0.3)),2.0 * wave(0.05), sin(wave(0.43))
``````

``````floatblue = "sUrgf2Z6Wv4"
floatraw = "ePuDpkrSB-c"
floatnoir = "Qs-GuVu7mFI"
floatobjects = "QoDcuPKzhm4"

create(3,3,floatblue)
cue([0,8],floatraw)
cue([2,6],floatnoir)
cue([1,7],floatobjects)

play(all)
speed([0,1,2],-1.5)
speed([3,4,5],2)
jump([3,5],10,10)
speed([6,7,8],-1.5)
``````

### SonicPi

``````
live_loop :Donetsk do
use_bpm 30
with_fx :hpf, mix: 0.67 do
with_fx [:whammy,:ixi_techno,:ixi_techno].choose, mix: 0.24 do
use_synth [:piano,:chipbass].choose
play choose( [:G4,:Bs3,:Ds4])
with_fx :echo, mix: 0.78 do
sample [:elec_blup,:elec_bell],amp: dice(4), beat_stretch: dice(4), rate: (dice(3) + 1) / (dice(7) + 1) + 0.3
end
sleep [0.25,0.5,1,2].choose
end
end
end

live_loop :Dontsk2 do
use_bpm 15
with_fx [:whammy,:flanger,:vowel,:ping_pong].choose, mix: rrand(0.24,0.45) do
with_fx :ping_pong, mix: [0.5, 0.4,0.3,0.2,0.1,0.2,0.3,0.4,0.5].choose do
with_fx :hpf, mix: 0.67 do
use_synth [:piano,:chipbass].choose
play choose( [:F4,:Cs3,:A3])
with_fx :echo, mix: 0.78 do
sample [:elec_blip2,:elec_blip,:perc_till].choose,amp: dice(4), beat_stretch: dice(4), rate: (dice(3) + 1) / (dice(7) + 1) + 0.3
end
sleep [0.25,0.5,1,2,4].choose
end
end
end
end
``````