MinaCoding2024_FreeCoding

PieingtheSonic5

For the 30th day of MinaCoding2024 : "Free Coding", PieingtheSonic5 takes PieingtheSonic and does another coded remix with SonicPi & track layering.

Poetry

Imitation
Inspiration
Indention
When they merge
And the thoughts finally diverges
What outcome emerges?

Audio

SonicPi Code


def sounds (bpm,loop,synth1,synth2,sample1,timer)
  #array of notes
  x = [[:D4,:Gs5, :D1],[:A4,:Cs5, :E1] ,[:B4,:Ds2, :B3], [:A3,:Cs2,:Cs4],[:F3,:Ds2,:Bs4],[:C4,:A3,:A2]]
  use_bpm bpm
  live_loop loop do
    counter = x.choose #counter
    use_random_seed (Time.now.to_i)/timer #random seed
    with_fx [:level,:whammy,:vowel,:ping_pong].choose, mix: rrand(0.2,0.7) do #effects
      use_synth [synth1,synth2,:piano].choose #synth
      play :Cs2 # note
      sample sample1, beat_stretch: timer / 3 + 0.2
      sleep [0.25,0.5,1].choose
      play choose(counter) ,amp: rrand(0.2,2)#, sustain: dice(2), decay: dice(2) #notes,
      sleep [0.25,0.5,0.75,1].choose
    end
  end
end

sounds([15,60,120,240].tick,:burdy,:chiplead,:pretty_bell,:guit_e_slide,1)
sounds([15,30,60,240].tick,:berdy,:prophet,:piano,:guit_e_slide,2)
sounds([15,60,120].tick,:birdy,:hollow,:piano,:ambi_piano,3)
sounds([60,30,240].tick,:bordy,:prophet,:pretty_bell,:elec_bong,4)
sounds([30,60,120].tick,:bardy,:hollow,:prophet,:ambi_piano,5)
0
Subscribe to my newsletter

Read articles from Kofi / Illestpreacha directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Kofi / Illestpreacha
Kofi / Illestpreacha