# WCCC_Flocking

## FlockingToMegaBlob

For this week's Creative Code Challenge by @sableraph: ***"Flocking”,FlockingToMegaBlob*** coded with **LiveCodeLab & SonicPi** uses the following definition of flocking to make an entity of blobs come to life:

*<mark class="bg-yellow-200 dark:bg-yellow-500/30">to move or come together in large numbers:&nbsp; (Dictonary-Cambridge)</mark>*

## Poetry

```javascript

The Blobs are Flocking Towards the Middle
For this spooky season
They are not living clues or riddles
But simply showing the reason
For their formation
And thoughts of Blobs Flocking for infestation
As they flock, they merge
As they merge, they submerge
An attempt at blob season
```

## Video

%[https://youtu.be/U3lynw1SRKg] 

## Code

### LiveCodeLab

```javascript
ambientLight
simpleGradient teal,black,aqua

(time % 40) * 70 times with i
	noStroke
	fill i * 2 , i % 10 * 20, i % 20 * 10
	rotate i , i % 40, i % 100
	move wave(i / 100)/29, wave(i / 200)/ 200,wave( i / 400)/ 10
	ball (sin(time) * 0.85 ), (sin(time) * 1.25 ),(sin(time) * 1.25 )

```

SonicPi

```ruby
#reusing sphere flow

def sounding(radius,looping,sound,timer,timer2)
  
  
  #a volume of a sphere
  volume1 = (4.0 / 3.0) * (3.14) * radius* radius* radius
  area1 = 4.0 * (3.14) * radius* radius
  
  
  live_loop looping do
    use_bpm volume1 / area1 * radius
    use_random_seed Time.now.to_i/timer
    with_fx :ping_pong, mix: [0.1,0.8,0.3,0.5,0.25].choose do
      with_fx [:flanger,:whammy].tick, mix: [0.2,0.15,0.32,0.5,0.1,0.7].choose do
        use_random_seed Time.now.to_i/ volume1
        sample sound.choose, beat_stretch: [2,3,4].choose, pitch: radius/area1 if spread(19,24).tick
        sleep [1,2,4].choose
      end
    end
  end
  
end



#sonicarrangements
sounding([7,12].tick,:loop1,[:ambi_piano,:arovane_beat_a],1,4)
sounding([8,4].choose,:loop2,[:misc_cineboom, :arovane_beat_e],2,3)
sounding([5,12].tick,:loop3,[:tabla_dhec,:elec_twang],4,2)
sounding([19,17].tick,:loop4,[:ride_via,:ambi_haunted_hum,:tabla_ke3 ],2.5,1.5)

# Welcome to Sonic Pi

```
