# WCCC_Layers

# JammingPixelation

For this week's *Creative Code challenge by @sableRaph*: “**Layers**”, ***JammingPixelation*** coded in **HydraVideoSynth & Foxdot** with the sketch being layered multiple times upon itself.

## Poem

```ocaml
Movement occurring with each step
Flowing for depth
Overpacked and layered
But as they heard
The movements packed
And the layers are stacked
```

## Video

%[https://youtu.be/ICKtmr-3_F4] 

## Code

### HydraVideoSynth

```javascript

osc(1[0,2,0.5,0.75,0.15],1).kaleid([4,3,2,3,4].smooth()).luma([0.3,0.25,0.124,0.4,0.7].smooth()).
modulatePixelate(noise(1,[3,2,0.5,1,2.5],[1,0.75,0.5,0.25,0.5,0.75,1].smooth() ).
scale([0.75,1,1.24,0.35,2,1.005].smooth()).kaleid([1,2,3,4,3,1].smooth())).
modulateRotate(noise(3,[1,0.5,0.25,2,0.75],1).pixelate(500,500).luma(0.5)).out()

speed = 0.125
```

### FoxDot (Python)

```python
import random as rand

Clock.bpm = 120

rd_int = rand.randint(4,9)

# Tutorial 2: Algorithmic Manipulation

# The code below plays the first four notes of the default scale on repeat:
p1 >> pads([0,1,rd_int,3,rd_int,0,rd_int])
d1 >> play("x-o[-x-x-]")
d2 >> play("x-o[-x--xxox-x-]")
d3 >> play("x-o[-x-ooox-xxox-x-]")


Scale.default.set("major")
Scale.default.set(Scale.major)
Scale.default.set([0,2,4,rd_int,7,rd_int,11])

Scale.default.set("minor")
Scale.default.set(Scale.minor)
Scale.default.set([7,5,3,1,3,5,6,8])
```
