Kofi / Illestpreacha
Code is Poetry & Data is Poetry

Code is Poetry & Data is Poetry

WCCChallenge: Blobs

WCCChallenge: Blobs

Return of the Blobs

Kofi / Illestpreacha's photo
Kofi / Illestpreacha
·Aug 30, 2022·

2 min read

Return of The Blobs

For this week's Creative Code challenge : Blobs I decided to have an animated blob coded in Livecodelab with a horror genre type soundtrack coded in SonicPi .

Wanted to get the feeling of monstrous blobs coming back to visit.

As usual, this post contains a poem and the code breakdown of both the audio and visual components


Return of The Blobs Insight


Blobs are blobbing
With hopes of their season
To perform their treason
But is there a way of it stopping?
Is there a way of it skipping,
Skipping a beat?
Or these blobs want to continue their treats
As they venture after their formation
Into the streets
Into the seas
Into the streams
To gather not only useful information
But to keep their blobbing
For more blobs to come in
And commence their flipping
as others prepare to slip in

Video

Visual Code in LivecodeLab


ballDetail 12
animationStyle motionBlur
rotate time / 5, time/5, wave(0.003)
simpleGradient black, brown, blue

scale 0.3

8 + time % 6 times
    ambientLight 100,75,200, 50
    rotate 0, 1, time / 5
    move 0.2 * wave(0.003), wave(0.3), 0
    3 times
        rotate 1.2,2,3
        peg -2.5,-1.5,-2.5

10 - time % 6 times
    ambientLight 10,175,100 + (time % 20 * 3), 40
    fill yellow
    stroke yellow
    rotate 0, time / 5
    move 0.2, 0, 0
    5 times
        rotate 1.2,2,3
        peg -1.5,-2.5,-1.5

12 - time % 6 times
    ambientLight 10,175,100 + (time % 20 * 3), 40
    fill red
    stroke red
    rotate 0, time / 5
    move 0.2, 0, 0
    5 times
        rotate 1.2,2,3
        peg -1.5,-2.5,-1.5

Audio Code in SonicPi


with_fx :echo, mix: 0.7 do
  with_fx :ping_pong, mix: 0.55, pre_amp: dice(2) do
    live_loop :hauntedblob do
      with_fx :ixi_techno, mix: 0.4, amp: dice(2) do
        with_fx :hpf, mix: 0.7 do
          synth [:pretty_bell,:prophet,:chiplead,:chiplead,:pretty_bell].choose
          play choose( [:E1,:G4,:Ds1, :Bs4 ] ) ,sustain: dice(3),release: dice(2)
          play [:Ds3,:bs4,:f3].choose ,attack: 1.5 ,delay: 0.5  ,amp: 0.5
          sleep [0.25,0.5,1,2,4].choose
        end
      end
    end
  end
end
 
Share this