# WCCC_Leaves

# LeavesInAutumnCycle

For this week's Creative Code Challenge by @sableraph: ***"Leaves”, LeavesInAutumnCycle***  coded with **Locomotion & SonicPi.** Layered Coded Sketches of Leaf-Based Entities Falling in line with the Autumn Cycle.

## Poetry

```javascript
Piles of Leaves
Floating to the whims
Produced by the wind
Produced by these lines
That are attempting to reenact
The cycle
That is presented by nature
Seen in various cultures
A cycle that withstand time
As the leaves shed their skin
Their hues and features
To perform their choreo
Soon to be intact
As the cycle recycles
Floating to the whims
Produced by the wind

```

## Video

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

  

## Code

### Locomotion

```javascript
-- Triple 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 };
point {x = range 0 17 (osc 0.15), z = range 0 6 (osc 0.35) , intensity = range 15 35 (osc 0.25), color = 0xFAB2CD };
point {x = range 0 17 (osc 0.15), y = range 0 8 (osc 0.16), z = range 0 6 (osc 0.35) , intensity = range 20 45 (osc 0.05), color = 0xCD1FB2 };



b n = dancer {url = "Camille", animation = [13,1,n,1,n+3,1,25,1,7,1,1] , 
size =  ((n +1)/26), y = 3 + range 0 5 (phase 16 (n/10) * 2 + (-1)), x = n /2, 
z = range -3 3 (phase 1 (n/50) * 2 + (-1)), rx = n * 27, dur = 8.5, x = range -3 3 (phase 16 (n/10) * 2 + (-1)), sy = range 1 10 (osc 0.65),sx = range 1 10 (osc 0.64)  };
for [0..25] b;


d n = dancer { url="camille", animation = [13,1,n,1,n+3,1,25,1,7,1,1] ,x = -2 + n*0.005 + n/10,y = n/100 + range 2 -2 (osc 0.135), z = sin(n)*3 + range 4 -10 (osc 0.15), ry=3.14, size= n / 10 + range -5 5 (osc 0.54), rx = range -90 90 (osc 0.3), sx = range 1 3 (osc 0.37) }; for[0..30] d;

```

### SonicPi (15%, 30%, 60% Slowdown of Audio Layered)

```ruby
def magic(looper,timer, x,sust,sleeper,sampling)
  live_loop looper do
    use_random_seed Time.now.to_i * timer
    use_bpm  x.choose
    with_fx [:ping_pong,:wobble,:gverb].tick, mix: 0.65 do
      with_fx :ixi_techno , mix: [0.6,0.3,0.1].tick do
        with_fx :reverb, mix: 0.7, pre_mix: 0.4 do
          with_fx :vowel, voice: dice(4), mix: 0.25 do
            #synth [:pretty_bell,:piano,:hollow,:piano,:chiplead].choose
            sample sampling if spread([2,3,4,5].tick,[8,7,6,9].choose).mirror.shuffle
            play scale([4,12,38,46,11,29,66,21].choose, [:minor,:major].tick), sustain: sust
            sleep sleeper
          end
        end
      end
    end
  end
end




magic(:changeGameTunes,2,[60,90,120,45,60,15],dice(5),[1,2,4].choose,[:ambi_drone,:ambi_lunar_land,:perc_snap].choose )
magic(:changeGameTunes2,4,[12,12,10,9,24],[1,2,4].tick,[0.5,1,2,4,8].choose, [:elec_blip2,:elec_bong].tick)
magic(:changeGameTunes3,6,[5,10,20,30,25,10],[5,4,3,2,1].choose,[0.25,0.5,1,2,4].choose, [:perc_snap,:guit_harmonics,:drum_bass_soft ].choose)


```
