# MinaCoding2023_Freestyle

# ColorSplashingRoundly

For the **MinaCoding Prompt** of Free to Do What**,** I did a livecoding session in Hydra. The code was previously done but in this session, added more ***arrays, scrolling, pixelation*** and ***Math.cbrt*** functions to the sketch.

After doing the livecoding session, I overlayed the sketch with a mirrored version of itself. For the sound, I added the **SonicPi Composition: *Auditory ReRemixing.***

## Video

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

## Poem

```ocaml
Evaluating the past
By adding lessons from the future
Merging the realms and their cultures
Not for the thought of what shall last
But rather
To lets thoughts go wild and further
```

## Hydra Code

```javascript
osc(10, 0.9, 300)
.color(0.9, 0.7, 0.8)
.diff(
  osc(45, 0.3, 100)
  .color(0.75, 1.9, 2.9)
  .rotate(0.175)
  .pixelate([1100,2000,4000,1100,2000])
  .kaleid([47,13,5,4,3,1,4,5,13,46].smooth())
)
.scrollX([2,1,0.5,-0.5,-1,-2].smooth())
.scrollY([0.5,-1,1.5,-1,-0.5,1,-0.2].smooth())
.colorama([3,2,1,0.5,0.3,0.1,0.3,1,2].smooth())
.luma(()=> (time % 10 + 1)/14)
.repeatX(()=> Math.cbrt(time % 24 + 1))
.repeatY(()=> Math.cbrt(time % 24 + 1))
.modulate(
  osc(1, -0.9, 320)
)
.scale(16)
.out()

speed = 0.125
```

## SonicPi Code

```ruby

live_loop :Donetsk do
  use_bpm 30
  with_fx :hpf, mix: 0.67 do
    with_fx [:whammy,:ixi_techno,:ixi_techno].choose, mix: 0.24 do
      use_synth [:piano,:chipbass].choose
      play choose( [:G4,:Bs3,:Ds4])
      with_fx :echo, mix: 0.78 do
        sample [:elec_blup,:elec_bell],amp: dice(4), beat_stretch: dice(4), rate: (dice(3) + 1) / (dice(7) + 1) + 0.3
      end
      sleep [0.25,0.5,1,2].choose
    end
  end
end


live_loop :Dontsk2 do
  use_bpm 15
  with_fx [:whammy,:flanger,:vowel,:ping_pong].choose, mix: rrand(0.24,0.45) do
    with_fx :ping_pong, mix: [0.5, 0.4,0.3,0.2,0.1,0.2,0.3,0.4,0.5].choose do
      with_fx :hpf, mix: 0.67 do
        use_synth [:piano,:chipbass].choose
        play choose( [:F4,:Cs3,:A3])
        with_fx :echo, mix: 0.78 do
          sample [:elec_blip2,:elec_blip,:perc_till].choose,amp: dice(4), beat_stretch: dice(4), rate: (dice(3) + 1) / (dice(7) + 1) + 0.3
        end
        sleep [0.25,0.5,1,2,4].choose
      end
    end
  end
end


```
