Skip to main content

Command Palette

Search for a command to run...

MinaCoding2024_Imitation

Mimicking A Bot

Updated
1 min read
MinaCoding2024_Imitation

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

MinaCoding2024

Part 15 of 30

Creations and Outputs created for the MinaCoding2024

Up next

MInaCoding2024_AnotherPlace

Block Based Coding