# WCCC_Revolutions

# RevolutionsRevving

For this week's Creative Code Challenge by @sableraph: ***"Revolutions”, RevolutionsRevving***  coded with **SonicPi & Locomotion** has locomotion raccoons altered physically while revolving around multiple orbits as they find their journey.

## Poetry

```javascript
Revving The Seams of the Scenes
Rotational Aspirations as the Orbit Leaves
Even during return
The revolution still churns
```

## Video

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

## Code

### Locomotion

```javascript

 --Light Points
point {x = range 0 17 (osc 0.15), z = range 0 6 (osc 0.35) , intensity = range 8 35 (osc 0.15), color = 0x808080 };


--racoon
 b n = dancer { url = "raccoon" , size =  n / 30, x = -8 + range n 8 (osc 0.015), sx = range 0.25 1 (osc 0.15 ), rz = n * range -275 275 (osc 0.030), rx = n / range -180 180 (osc 0.75), animation = n , ry = n +  range 0 180 (osc 0.16),y =  sin(n), dur = 3 }; for [0..32] b;


--racoon
 c n = dancer { url = "raccoon" , size =  n / 30, x = -8 + range n 8 (osc 0.015), sx = range 0.25 1 (osc 0.15 ), rz = n * range -275 275 (osc 0.030), rx = n / range -360 180 (osc 0.75), animation = n , ry = n + range -90 180 (osc 0.16),y =  sin(n), dur = 3 }; for [0..32] c;

```

### SonicPi

```ruby
#Coordinates

# 1 = :guit_e_slide
# 4 = :loop_mika
# 6 = :elec_filt_snare
# 9 = :drum_snare_soft





# Hamilton Path replaced with the samples representing the coordinates
x = [:guit_e_slide,:loop_mika,:loop_mika,:guit_e_slide,:drum_snare_soft,:elec_filt_snare,:elec_filt_snare,:drum_snare_soft]
y = [:guit_e_slide,:elec_filt_snare,:loop_mika,:drum_snare_soft,:drum_snare_soft,:loop_mika,:elec_filt_snare,:guit_e_slide]



counter = 0
live_loop :transversal do
  
  use_random_seed Time.now.to_i/ 5
  
  with_fx :distortion do #effect for the x coordinates
    sample x[counter % 8], rate: [0.5,0.25,0.1,2].choose
  end
  
  with_fx :ixi_techno do #effect for the y coordiantes
    sample y[counter % 8], rate: [0.5,0.25,0.1,2].choose
  end
  
  counter = counter + 1
  
  puts counter
  sleep [0.5,1,2].choose
  
end
```
