# WCCC_Erosion

# PoeticErosion

For this week's Creative Code challenge by **@sableRaph**: “ ***Erosion***”, **PoeticErosion** takes previous ***p5js*** and erodes it through ***Hydra***. **PoeticErosion** takes these chromatic poems as a data format because “ data erosion, a phenomenon also known as data decay, is the gradual decrease in the accuracy and usefulness of data” - 6sense. The poems that were once clearer(seen on the left side) are now harder to distinguish.

**SonicPi** was used for the sound with various audio erosion effects added.

## Eroded Work

* [https://blog.illestpreacha.com/wccc-chromatic](https://blog.illestpreacha.com/wccc-chromatic)
    
* [https://colorscape.illestpreacha.com/poetic-communication-visualization](https://colorscape.illestpreacha.com/poetic-communication-visualization)
    

## Poem

```ocaml
Erosion, a decay
Where the decrease
Is seen within the pieces
What is this phrase
Trying to communicate
Attemption to say
In its altered state,
Altered phase?
```

## Video

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

## Code

### Hydra

```javascript
s0.initScreen()
src(s0).modulatePixelate(src(s0).scale([0.15,0.2,0.3,0.5,1,1.5].smooth())).modulateScale(osc(1,3,1)).modulateScrollX(noise(1,0.1,0.011)).repeat(2,2).modulateRotate(src(s0).scale(2).scrollX(0.1,0.05)).out()


speed = 0.25

```

### SonicPi

```ruby

live_loop :dance do
  use_random_seed Time.now.to_i
  with_fx [:flanger,:whammy].choose, mix: rrand(0.1,0.7) do
    sample :loop_breakbeat,amp: dice(8),decay: dice(8), rate: [0.5,1,2].choose
    sleep [2,4,8].choose
  end
end


live_loop :dance1 do
  use_random_seed Time.now.to_i/2
  with_fx :ping_pong, mix: [0.1,0.2,0.1].choose do
    with_fx :vowel, voice: [1,2,3,4].choose, mix: 0.2 do
      use_bpm 60
      sample :loop_breakbeat, beat_stretch: [4,8].choose, amp: dice(8), rate: [0.5,0.25,1].choose
      sleep [4,8,16].choose
    end
  end
end


live_loop :dance2 do
  with_fx :ping_pong do
    use_random_seed Time.now.to_i/3
    with_fx :gverb, mix: rrand(0.3,0.6) do
      with_fx :vowel, voice: dice(3) do
        sample :loop_breakbeat,amp: dice(8), rate: 0.5
        sleep [1,2,4,8].choose
      end
    end
  end
end
```
