# MinaCoding2023_Images

# EmojionalChaos

For the MinaCoding Prompt: **Images.** I will be remixing **EmojionalMovements** which was coded for the MinaCoding prompt: **Moving People:** [https://blog.illestpreacha.com/minacoding2023movingpeople](https://blog.illestpreacha.com/minacoding2023movingpeople), with more **Hydra** **LiveCodingYoutube & SonicPi**

\-Decided to use emojis, since they are images and as I already had a base to play with, having a chaotic world of emojis was an interesting concept to follow through with.

\-For the **Hydra** Code, I used code from my WCCChallenge submission for text adventure: [https://blog.illestpreacha.com/wccchallenge-text-adventure](https://blog.illestpreacha.com/wccchallenge-text-adventure)

\-The **LiveCodingYoutube** code is to ensure, there is a chaotic but rhythmic feeling to the piece.

\-**SonicPi** is being used for the coded soundscape

## Video

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

## Poem

```javascript
Sometimes they are colourful, sometimes they are gray
sometimes they are moving, sometimes they just stay
but the Emojional Reflections
are part of a digital introspection
As the reflections become in sync
in sync with their movements
in sync with their achievements
as the inner depths
are seen through their outer steps
```

## Code

### Hydra

```javascript
s0.initScreen()

src(s0).scale(()=> (time % 27)/5).kaleid([4,3,2,1,2,3,4].fit(0.5)).scrollX([0.5,0.3,-0.1,-0.2]).scrollY([0.3]).out(o0)

src(s0).colorama(()=> (time % 12 + 1)/14).pixelate([100,50,1000,700,2000,10000]).out(o1).

src(s0).rotate(0.5,0.3).kaleid([4,3,2,1,2,3,4].fit(0.5)).color(()=> (time % 10)/10, [0.1,0.2,0.3,0.4,0.4,0.3,0.2].smooth(0.5), ()=> (time % 20)/25).out(o2)

src(s0).rotate(()=> time % 180).scale(()=> (time % 27)/5).kaleid([4,3,2,1,2,3,4].fit(0.5)).colorama(()=> (time % 12 + 1)/22).repeat(()=> time % 4 + 0.2).out(o3)

speed = 0.4

render()
```

### LiveCodingYoutube

```javascript

emojional = 'lNBvFhZarjs'

create(3,3,emojional)
play(all)
speed([0,4,7],0.5)
speed([1,8,5,2],-1)
```

### SonicPi - Drone Sounds

```ruby
mag = [3,21,7,13,22,19]
win = [20,5,10,7,14,32]
ooo = [7,12,3,15,21,7]

#puts magic[3]

i = 5
live_loop :drone1  do
  use_bpm 180
  sample :ambi_drone, beat_stretch: mag[i]
  puts mag[i]
  sleep mag[i]
  i -= 1
  if i < 0
    i = 5
  end
end


live_loop :drone2  do
  use_bpm 180
  sample :loop_electric, beat_stretch: win[i]
  puts win[i]
  sleep win[i]
  i -= 1
  if i < 0
    i = 5
  end
end

live_loop :drone3  do
  use_bpm 180
  sample :perc_swoosh, beat_stretch: ooo[i]
  puts ooo[i]
  sleep ooo[i]
  i -= 1
  if i < 0
    i = 5
  end
end
```

### SonicPi - Drum Kick

```ruby

#remixing an older piece

with_fx :reverb, mix: 0.6 do
  live_loop :bassflow do
    use_bpm 120
    if one_in(2)
      sample :drum_bass_hard
      sleep 0.5
    else
      sample :drum_bass_soft
      sleep 0.25
    end
  end
end

live_loop :rift do
  use_bpm 120
  if one_in(2)
    sample :bd_haus
    use_synth :prophet
    play (knit :e2, 24, :c2, 8).tick
    sleep 0.5
  end
  sleep 0.5
end

live_loop :rift1 do
  if one_in(2)
    use_bpm  120
    sample :bd_808
    use_synth :pretty_bell
    play (knit 45 , 22, 33, 11).tick
    sleep 0.5
  end
  sleep 0.5
end

with_fx :ixi_techno do
  live_loop :heavydrum do
    if one_in(2)
      use_bpm 120
      sample :drum_cymbal_closed
      sleep 0.5
    else
      sample :drum_heavy_kick
      sleep 0.25
    end
  end
end

with_fx :gverb, mix: 0.4, decay: 0.6 do
  live_loop :moredrums do
    if one_in(2)
      use_bpm 120
      sample :drum_cymbal_closed
      sleep 0.5
    else
      use_bpm 60
      sample :drum_heavy_kick
      play 45
      sleep 0.25
    end
  end
end

Effects_Swap1 = [:ixitechno, :reverb, :panslicer]

with_fx Effects_Swap1[rand(4)] do
  live_loop :drumming do
    sample :drum_cymbal_pedal
    sample :drum_splash_hard
    sleep 8
  end
end

with_fx :echo, mix: 0.7, amp: 3 do
  live_loop :moredrums do
    sample :drum_tom_mid_soft
    sleep 1
  end
end
```
