# WCCC_PetriDish

# PetriInsight

For this week's Creative Code challenge by @sableRaph: “ ***Petri Dish***”, ***PetriInsight*** is coded in **Hydra, LiveCodeLab &  SonicPi** to showcase a petri dish of the digital organisms created by LiveCodeLab.  Aided with extra effects.

## Poetry

```ocaml
What Does the MicroScope see?
Within the Constraints
That contains the contents
That is seen in the Petri?
How are these cells reacting?
How are these cells constructed?
That is within the realm of the Petri
Between its molecular levels
And how some entities manage to double
```

## Video

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

## Code

### LiveCodeLab

```javascript
x =  time % 8
y = time % 7 + 2

z = Math.hypot(x ^ y, (wave(0.003)* time % 5 + 6)) 

z times
	scale (~x)/12
	move wave(0.03)
	rotate z, z/3 , z^z
	ball z / 9 , ~z / 100
```

### Hydra

```javascript
noise(3,1,1).colorama([0.3,0.5,0.6,0.9].smooth()).diff(voronoi(10,5,5)).
modulateRotate(osc(1,1,1).scale(3)).modulateScale(noise(3,1,1),0.4).luma(0.25).
scale([0.5,1,2,1,0.5,0.25,0.1,0.75].smooth()).out()

speed = 0.25
```

### SonicPi

```ruby

live_loop :ElectricFlow do
  use_random_seed (Time.now.to_i)/12
  with_fx :whammy do
    with_fx [:ixi_techno,:ping_ping].choose, mix: rrand(0.3,0.7) do
      use_bpm 115
      sample :vinyl_hiss, rate: [1.5,0.75,0.25].choose if spread(19,22).shuffle.tick
      sample :ambi_dark_woosh, rate: [1.5,3].choose if spread(15,22).ring.tick
      sleep [0.5,1,2].choose
    end
  end
end


live_loop :elecPings do
  with_fx [:flanger,:ixi_techno].choose, mix: rrand_i(0.1,0.9) do
    with_fx :gverb, mix: [0.1,0.2,0.3,0.2,0.1].tick do
      use_random_seed (Time.now.to_i)/5
      use_bpm 160
      sample [:elec_flip,:elec_bong].choose , rate: [1.5,2,0.5].choose if spread(17,22).tick
      sample [:elec_ping,:elec_pop].choose , rate: [1.5,3,1,0.25,0.5].choose if spread(13,22).reverse.tick
      sleep [1,0.5,2].choose
    end
  end
end
```
