# WCCC_Split

# SplitShapesShifts

For this week's *Creative Code challenge by @sableRaph*: “**Split**”, SplitShapesShifts coded in **LiveCodeLab & SonicPi** explores shapes and sounds being split in various ways.

## Poem

```ocaml
Splits
Division of Space
Reflection of Pace
Introspection through Phase
Shapes
As their interactions Knits
And Drapes
```

## Video

%[https://youtu.be/2F6CkzYtlzo] 

## Code

### LiveCodeLab

```javascript
scale  (time % 20 + 1) / 20

if time % 20> 10
	background black
else if time % 20 < 10 && time % 20 > 5
	background orange
else
	simpleGradient black,yellow,teal

if time % 17 > 11
	rotate time / 10, Math.hypot(wave(sin(time)),time % 10)
else
	rotate cos(time)

move 0, -1.2, -1
rotate pi / 2, 0, 0


if time % 13 > 5
	noStroke
	scale 0.5
else
	scale 1.27


//wave makes it split into strands , larger waves, makes movement

12 times with j
	move 0, 0.5, wave(0.3) 
	37 times with i


		rotate 0, 0.2, wave(sin(0.03))

		if time % 30 > 15
			r = ((i  * 3) + (time * 12)) % 255
			g = ((i * 7) + (time * 30 + 20) * 7) % 255
			b = ((j * 17) + (time * 30 + 40) * 3) % 255
			fill r, g, b
		else
			r = ((i  * 3) + (time * 12)) % 255
			g = abs(((i * 7) - (time * 30 + 20) * 7) % 255)
			b = sin(((j * 17) + (time * 30 + 40) * 3) % 255)
			fill r,g,b


		if time % 35 > 15
			rect 0.3, 0.3
		else
			peg 0.5,0.5
		move 0.5, 0, 0
```

### SonicPi

```ruby
live_loop :innersoul do
  use_random_seed Time.now.to_i / 3
  with_fx :ping_pong, mix: rrand(0.25,0.76) do
    with_fx :echo do
      use_bpm [10,20,40,80].choose
      sample [:drum_bass_soft,:elec_beep,:tabla_ghe2].choose,rate: [0.5,1,-1,-0.5].choose, beat_stretch: [3.6,1,2].choose
    end
    sleep [0.5,1,2,4,8,12,16].choose
  end
end


live_loop :outersoul do
  use_random_seed Time.now.to_i / 2
  with_fx [:echo,:ixi_techno].choose, mix: rrand(0,0.75) do
    use_bpm [60,90,120].tick
    sample [:glitch_perc1,:perc_snap2].choose,rate: [0.5,1,-1,-0.5].choose, beat_stretch: [3.6,1,2].choose
  end
  sleep [0.25,0.5,1,2,4].choose
end

live_loop :voicesofOthers do
  use_random_seed Time.now.to_i / 4
  with_fx :vowel, voice: dice(4) do
    use_bpm [90,270,135,6].choose
    sample [:ambi_glass_hum,:perc_snap2,:elec_blip2,:elec_blip2].choose,rate: [0.5,1,-1,-0.5].choose, beat_stretch: [3.6,1,2].choose
  end
  sleep [0.25,0.5,1].choose
end
```
