MinaCoding2024_Imitation

MinaCoding2024_Imitation

Mimicking A Bot

PieingtheSonic

For the 16th day of MinaCoding2024 : "Imitation", PieingtheSonic imitates the SonicPi code styling of the iamnotsonicpi bot and expands the code as if the bot didn't have code restriction.

Poetry

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

Audio

SonicPi

My Version


def sounds (loop,timer)
  #array of notes
  x = [[:D4,:Gs5, :D1],[:A4,:Cs5, :E1] ,[:B4,:Ds2, :B3], [:A3,:Cs2,:Cs4]]

  live_loop loop do
    counter = x.choose #counter
    use_random_seed (Time.now.to_i)/timer #random seed
    with_fx [:level,:whammy,:vowel].choose, mix: rrand(0.2,0.7) do #effects
      use_synth [:prophet,:piano].choose #synth
      play :Cs2 # note
      play choose(counter) ,amp: rrand(0.2,2) #notes
      sleep [0.25,0.5,0.75,1].choose
    end
  end
end

sounds(:berdy,2)
sounds(:birdy,3)
sounds(:bordy,4)
sounds(:bardy,5)

Original

live_loop :Berdychiv do 
 with_fx :level do 
 play :Cs2      
 play choose( [ :D4, :Gs5,  :D1 ] )     ,amp: 0.1 
 sleep 0.25 
 end 
 end