# MinaCoding2023_Random

# TrailOfRandomness

For the **MinaCoding Prompt** of **Random,** I decided to code with **SonicPi**: **TrailOfRandomness.** Which is a Random Soundscape that the sounds just occur while weaving in and out of the foreground.

The functions in the SonicPi Code that represent the concept of random are ***dice(),.choose & rrand().*** Then put through filtering via **PaulXStretch**

## Poem

```ocaml
Audio derived from the Random
Through its chances were summoned
The soundscape shall prevail
As the randomness can be consider a trail
A Trail that isn’t quite sudden
```

## **Audio**

<iframe width="100%" height="300" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/1552322788&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe>

[IllestPreacha](https://soundcloud.com/llestreacha) · [MinaCoding Random: TrailOfRandomness](https://soundcloud.com/llestreacha/minacoding-random-trailofrandomness)

## Code

### SonicPi

```ruby


live_loop :home2 do
  use_bpm 240
  with_fx [:krush,:flanger,:whammy].choose, mix: rrand(0.2,0.67) do
    use_synth [:hollow,:hollow,:piano].choose
    play :Cs2 ,attack: 0.2 ,release: 3 ,amp: dice(2)
    sample [:ambi_dark_woosh,:elec_ping].choose , decay: dice(5) + 1, sustain: dice(3)
    sample :drum_splash_hard ,rate: 0.76, beat_stretch: 0.4, sustain: 5
    sleep [0.5,1,2,4].choose
  end
end


live_loop :vocalfx do
  use_bpm 60
  with_fx :echo,amp: rrand(0.1,0.79) do
    with_fx [:distortion,:flanger,:echo].choose , mix: rrand(0.20,0.75) do
      sample :elec_blip2, beat_stretch: ((dice(5) + 1)/5).abs + 0.1
    end
    sleep dice(5) + 1
  end
  sleep [0.5,1,2,4].choose
end



# time_warp addition



live_loop :home do
  time_warp [-2,-1,0,1,2].choose do
    with_fx :ixi_techno,amp: 14.6 do
      with_fx :krush, amp: 14.6 do
        use_bpm 21.2 + 140
        with_fx [:vowel,:krush,:ixi_techno].choose, amp: dice(4), mix: rrand(0.202,0.519),amp: 1.568 do
          #use_synth :prophet
          sample [:drum_bass_hard,:guit_e_fifths,:perc_snap].choose, rate: 5.356, beat_stretch: 0.519,sustain: 7.810 ,release: 5.356, pitch: 22.936/12.477
          sleep [100/50,54/27,100/79].choose
        end
      end
    end
  end
  sleep [0.5,1,2,4].choose
end

live_loop :home4 do
  use_synth [:piano,:piano,:chipbass].choose
  play [:ds4,:As4,:c3].choose, attack: 4, sustain: [3,4,5,2,1].choose  ,release: 3 ,amp: 0.5
  sample [:perc_snap2,:guit_harmonics,:bass_thick_c,].choose , decay: dice(5) + 2.5, sustain: dice(3) + 2.3, amp: dice(8) + 3
  sleep [0.5,1,2,4,8].choose
end



live_loop :home1 do
  time_warp rrand(-0.5,0.5) do
    with_fx [:whammy,:ixi_techno].choose, mix: rrand(0.2,0.7), amp: 1.356 do
      with_fx [:distortion,:krush,:ixi_techno].choose, amp: 1.356 do
        use_bpm 79 + 54 + 100
        with_fx [:vowel,:ixi_techno,:flanger].choose, amp: 1.356, mix: rrand(0.202,0.519),amp: 1.568 do
          #use_synth :prophet
          sample [:loop_mehackit1,:elec_hollow_kick].choose, amp: dice(8) + 2, rate: 1.913, beat_stretch: 0.519,sustain: 7.810 ,release: 5.356, pitch: dice(11)
          sleep [100/50,54/27,100/79].choose
        end
      end
    end
  end
  sleep [1,2,4].choose
end
```
