# WCCC_Spheres

# ConvergenceBounce

For this week's Creative Code Challenge by @sableraph: ***"Spheres”,* ConvergenceBouncing** coded from  **LiveCodeLab & SonicPi** uses theLiveCodeLab Coded Sphere’s formation alongside SonicPi Audio to bring a world of Converging Spheres. Aided with various digital techniques.

## Poetry

```ruby
Bouncing and Converging
Renouncing and Conversing
Packing while Pixelating
Glowing as Participating
In this partition
Of this section’s Conversation
Converging and Bouncing
As this pack of spheres are Announcing 
```

## Video

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

  

## Code

### LiveCodeLab

```javascript
if time % 10 > 5
	ambientLight abs(sin(time) * 10), abs(sin(time) * 200), time % 10 * 17 + 1


100 times with i
	if time % 20 > 10
		stroke white
	fill i * 2.5, i * 1.17, i /2
	rotate i,i/2,i/3
	move i/ (time % 50) * 2,Math.hypot(Math.cbrt(sin(i / (time % 20))),Math.cbrt(wave(cos(time))/1000))
		ball
```

### 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)
```
