# Genuary2023_10minutes

### **The prompt for Genuary 2023 Day 2 is**

## Made in 10 minutes

I decided to Livecode two 10 minute sessions from scratch, Using a mixture of **SonicPi** for Audio and **Hydra & Livecodelab** for Visuals

***600 seconds of coding  
How can I show the process that starts to flow in  
the process that comes from the mind as if it is snowing  
settling along what has the mind soaked in  
and through the code, shows what has been spoken  
in the open***

### Round 1

<iframe width="560" height="315" src="https://www.youtube.com/embed/CXHRZe_FSW0"></iframe>

```ruby
#Final SonicPI Code

live_loop :do do
  with_fx :distortion, mix: [0.5,0.3,0.1,0.9].choose do
    sample :drum_bass_hard, beat_stretch: dice(6)
    sleep [0.5,1,2].choose
  end
end


live_loop :do2 do
  with_fx :whammy, amp: dice(4), mix: [0.5,0.3,0.1].choose do
    sample [:elec_blip,:drum_bass_hard].choose, amp: dice(4), beat_stretch: [2,4,5].choose
    sleep [0.5,1,2].choose
  end
end

live_loop :do3 do
  with_fx :vowel do
    with_fx :ping_pong, mix: [0.5,0.3,0.1,0.9].choose do
      sample :loop_electric, rate: rrand(0.5,1.5), amp: dice(4), beat_stretch: [2,4,5].choose
      sleep [0.25,0.5,1,2].choose
    end
  end
end
```

```javascript
//LivecodeLab Code

scale 0.5 + wave(0.3)

if time % 40 > 20
	simpleGradient red,blue,orange
else
	simpleGradient darkgreen,brown,rose



if time % 10 > 5
	animationStyle paintOver
else
	animationStyle motionBlur

rotate time % 12, time % 10, sin(time % 3)
move wave(0.3), sin(wave(time % 4)/1000), tan(time % 12 + 1)
box 1,sin(time % 5), cos(wave(0.003)),time / sin(wave(0.03)


//Hydra Code

s0.initScreen()

osc(5,3,1).blend(s0).scale(s0,0.5).blend(s0).kaleid([1,2,3,45,6,4,3,2,3]).out()
```

### Round 2

<iframe width="560" height="315" src="https://www.youtube.com/embed/CXHRZe_FSW0"></iframe>

```ruby
#Final Sonic Pi COde

live_loop :guitar do
  
  with_fx [:ixi_techno,:ping_pong,:flanger].choose, amp: dice(5) ,mix: rrand(0.1,0.9) do
    sample [:ambi_swoosh,:bd_fat,:ambi_drone].choose, sustain: dice(3)
  end
  sleep [0.25,0.5,0.75,1].choose
end



live_loop :blip do
  with_fx :gverb, mix: 0.25 do
    with_fx [:whammy,:distortion,:whammy].choose, amp: dice(5) ,mix: rrand(0.1,0.9) do
      sample [:elec_blip,:ambi_swoosh,:perc_snap2], beat_stretch: 2, decay: dice(2)
    end
  end
  
  sleep [0.25,0.5,0.75,1].choose
end
```

```javascript
//Hydra Code
 
osc(3,2,1).blend(noise(3,1,[1,2,3,4,3,2,1])).kaleid([4,5,6,4,3]).out(o0)
osc(3,2,1).kaleid(40).pixelate([5000.2500,50,10000]).scale(()=> time % 4 + 1).out(o1)
osc(3,2,1).repeat(()=> time % 5).blend(o1).mask(o3).out(o2)
voronoi(3,2,1).blend(o1).add(o2).diff(o0).out(o3)

render() 

speed =  0.25
```
