# WCCC_Flipping

# InvertedMoves

For this week's Creative Code challenge by @sableRaph: *“Flipping”,* **InvertedMoves** contains flips in various matters (From Pixels to Audio, Movement to Position).Coded in ***SonicPi, HydraVideoSynth & Locomotion*** with additional digital art techniques

## Poem

```ruby
What is Set,
Can still change
Upside down
Inverted
As new moments are inserted
Right to left, all around
As the change enters new range
For new depth
```

## Video

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

  

## Code

### Locomotion

```javascript
point {x = range 0 17 (osc 0.15), z = range 0 6 (osc 0.35) , intensity = range 8 25 (osc 0.5), color = 0xdda1c0};
directional {z = 6, intensity = range 0 10 (osc 0.5), color = 0xff0000};



c n = dancer { url= "raccoon",animation = n*2/4,ry = 180 + range 45 -45 (osc 0.35), size = 0.25 + range 1.5 -1.5 (osc 0.15), x= -5 + n/2, y = -1.2, z = -2,dur = 10}; for [1..25] c;
d n = dancer { url= "orDroid",ly = 180 + range 145 -145 (osc 0.35), size = 0.25 + range 0.5 -0.5 (osc 0.35), x= -6 + n/2, y = 0.2, z = -2,dur = 5}; for [1..25] d;
e n = dancer { url= "dataGhost ",aanimation = n*2/3,ly = range 0 360 (osc 0.35), size = 0.25 + range 0.5 -0.5 (osc 0.25), x= -7 + n/2, y = 1.2, z = -2, dur = 2.5}; for [1..25] e;
f n = dancer { url= "orDroid",animation = n*2/3,ry = 180 + range 45 -45 (osc 0.35), size = 0.25 + range 1.5 -1.5 (osc 0.0345), x= -8 + n/2, y = 2.2, z = -2, dur = 1.25}; for [1..25] f;
```

### HydraVideoSynth

```javascript


s0.initScreen()

src(s0).scale(1.3).out(o0)

src(s0).rotate(135).scale(1.3).repeat(2,2)..out(o1)


src(s0).rotate(135).scale(3.6).invert(2).out(o2)

//Inversion is a flip
src(s0).invert(3).scale(1.3).out(o3)


render()
```

### SonicPi

```ruby
live_loop :flippage do
  with_fx :whammy do
    use_random_seed Time.now.to_i / 3
    use_bpm [240,120,60,30,15,7.5].choose
    sample :loop_garzul, beat_stretch: dice(5), pitch: [4,3,2].tick
    sleep [0.5,1,2,4,8].choose
  end
end

live_loop :flippage2 do
  use_random_seed Time.now.to_i / 4
  with_fx [:ixi_techno,:echo].choose, mix: [0.3,0.5,0.75].tick do
    use_bpm [10,20,30,40,60,80,100,200].choose
    sample :loop_electric, beat_stretch: dice(2), rate: [0.5,-0.25,-1,0.35,-0.75,1,1.25].choose
    sleep [0.5,1,2,4,8].choose
  end
end

live_loop :flippage3 do
  use_random_seed Time.now.to_i / 5
  with_fx [:whammy,:wobble,:flanger].choose,mix: [0.3,0.5,0.75].choose  do
    use_bpm [20,40,60,120].choose
    sample [:loop_garzul,:loop_electric].choose, beat_stretch: dice(3), rate: [0.5,-0.25,-1,0.35,-0.75,1,1.25].choose
    sleep [0.25,0.5,1,2,4,8].choose
  end
end
```
