# WCCC_GreekMyths

# MInotaurs&Zeus

For this week's Creative Code challenge by @sableRaph:***"Greek Mythology”,*** MInotaurs & Zeus is coded in ***LiveCodingYoutube, SonicPi & Hydra***

It uses gameplay footage from #TABS (Totally Accurate Battle Simulator) to represent the theme of the challenge as reenactment/ lost footage. The sound design aids in furthering this concept through SonicPi. 

##   
Poem

```ocaml
The Bolts come quick
But the minotaurs dodge by being swift
It can occur in the day or night
As Zeus and the Minotaurs show their might
```

## Video

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

## Code

### LiveCodingYoutube - Snippets Per Section

```javascript
Spooky = "MjuQtdAv3HI"
Ice = "UdEQDfefQiw"

create(2,4, Ice)
cue([0,3,5,6],Spooky)

speed([0,1,6,7],2)
speed([2,3],-2)
speed([4,5],1)

play(all)

jump([0,1,2,3],0.5,0.5)
jump([4,5,6,7],3,3)
```

```javascript
Spooky = "MjuQtdAv3HI"
Ice = "UdEQDfefQiw"

/*Either or*/
//create(2,4, Ice)
//create(2,4, Spooky)


speed([0,1,6,7],2)
speed([2,3],-2)
speed([4,5],1)

play(all)

jump([0,1,2,3],0.5,0.5)
jump([4,5,6,7],3,3)
jump([1,7],-10,-10)
```

### Hydra - Snippets Per Section

```javascript
s0.initScreen()


src(s0).scale(2).blend(src(s0).scale(0.75)).out()
```

```javascript
s0.initScreen()


src(s0).scale(2).blend(src(s0).scale(0.75)).
blend(src(s0).scale(0.5)).add(src(s0).scale(3)).out()
```

### SonicPi ( Sped Up , SlowDown + More)

Previously used in [https://blog.illestpreacha.com/wccchallengecirclecreations](https://blog.illestpreacha.com/wccchallengecirclecreations)

```ruby
#using 6 circles to make the sound


def circles1(radius,loop)
  
  circumference = 2 * Math::PI * radius
  area = Math::PI * (radius ** 2)
  
  live_loop loop do
    with_fx :ping_pong,mix: 0.75 do
      with_fx :gverb, damp: 0.5 do
        use_synth :piano
        play [circumference,circumference/2], decay: rrand(1,4), amp: 2
        sample [:ambi_drone,:elec_beep].choose, beat_stretch: area / 80,amp: dice(5)
      end
    end
    sleep [0.25,0.5,1,2,4,8].choose
  end
  
end

def circles2(radius,loop)
  
  circumference = 2 * Math::PI * radius
  area = Math::PI * (radius ** 2)
  
  live_loop loop do
    with_fx :ixi_techno,mix: 0.75 do
      with_fx :vowel, voice: dice(3) + 1 do
        use_synth :chipbass
        play [circumference/2,circumference/3,circumference].choose, sustain: dice(3), amp: 2
        sample [:tabla_ghe2,:elec_pong,:drum_bass_hard].choose, rate: area / 100, attack: dice(5), amp: dice(5)
      end
    end
    sleep [0.25,0.5,1,2,4,8].choose
  end
  
end


circles1(2,:circle1)
circles2(4,:circle2)
circles2(5,:circle3)
circles1(7,:circle4)
circles2(9,:circle5)
circles1(12,:circle6)
```

Previously used in [https://blog.illestpreacha.com/wcccbeneaththesurface](https://blog.illestpreacha.com/wcccbeneaththesurface)

```ruby
#l stands for line of poetry



l1 = ("under".to_i(32) - "&".to_i(32) + "beneath".to_i(32) - "the".to_i(32) + "sea".to_i(32) ) % 2024
l2 = ("what".to_i(32) - "is".to_i(32) + "in".to_i(32) - "this".to_i(32) + "deep".to_i(32) - "void".to_i(32) ) % 2024
l3 = ("below".to_i(36) - "to".to_i(32)  - "join".to_i(32)) % 2024
l4 = ("or".to_i(36) + "willing".to_i(33) - "to".to_i(32) + "flee".to_i(27)) % 2024


live_loop :dance do
  use_random_seed Time.now.to_i / 3
  with_fx :ping_pong do
    use_bpm l4/l3
    sample [:glitch_perc1,:glitch_perc3,:glitch_bass_g].tick, amp: 1.5, rate: [l3/l4,l4/l3,l1/l4,l2/l3].tick + 0.1 if spread(l2,l1).look
    sleep [0.5,1,2,4,8].choose
  end
end

live_loop :dance1 do
  use_random_seed Time.now.to_i / 2
  with_fx :ping_pong do
    sample [:bd_zome,:ambi_piano,:elec_bong].choose, amp: 1.5, rate: [l3/l4,l4/l3,l1/l4,l2/l3].choose + 0.1 if spread(l2,l1).look
    sleep [0.25,0.5,1,2].choose
  end
end

live_loop :dance2 do
  use_random_seed Time.now.to_i
  with_fx :ixi_techno do
    sample [:guit_e_fifths,:elec_chime,:bd_boom].choose, pitch: 7, pitch_stretch: [1,2].tick, amp: 1.5, rate: [l3/l4,l4/l3,l1/l4,l2/l3].choose + 0.1 if spread(l2,l1).look
    sleep [0.25,0.5,1,2,4].choose
  end
end
```
