250514 Evolving arp sketch YT

# 250514 2250 Evolving arp
# Saved 250514 2250
# https://in-thread.sonic-pi.net/t/250514-evolving-arp-sketch-1/9690
# https://youtu.be/COo2Hsc3ios

set_volume! 2

with_fx :reverb, room: 0.9 do
  
  live_loop :a1 do
    tick
    
    / kick /
    sample :bd_fat, amp: 2 if spread(1,4).look
    
    / bass /
    use_synth :saw
    use_synth_defaults cutoff: 80+line(-10,50,steps: 64).mirror.look, release: 0.1+line(-0.05,0.1,steps: 32).mirror.look
    j = 32
    play :c3+knit(0,j*2, -2,j, -5,j, -4,j).look if spread(5,7).rotate(rrand_i(0,5)).look
    
    / arp /
    use_synth knit(:saw, 128, :square, 128, :pluck, 128, :dtri,128).look #:square
    
    i = 32
    r = 16
    play :c5+[0,knit(3,i,2,i,5,i,3,i).look,7].look, pan: rdist(knit(0,r, 0.25,r, 0.5,r,0.75,r, 1,r).mirror.look) if spread(3,5).rotate(rrand_i(0,0)).look
    
    
    # use_synth :beep
    # play :c6 if spread(1,16).look
    
    sleep 0.125
    
  end
  
  live_loop :a2 do
    tick
    use_synth_defaults cutoff: 80+line(-10,50,steps: 64).mirror.look, release: 0.1+line(-0.05,0.1,steps: 32).mirror.look
    #    use_synth :beep
    n = :c6
    
    s = 0.125
    q = s*4
    
    pat = 0
    p = 4
    #pat = knit(0,p,1,p,2,p,3,p,4,p).look
    pat = knit(1,p,2,p,3,p,4,p).look
    pat = knit(0,p*4, 1,p,2,p,3,p,4,p).look
    
    case pat
    when 0
      #sleep [q*4-s*2,s*4,q*8-s*2].look
    when 1
      notes = [n, n, n+2]
      play notes.look #if spread(1,4).look
      # sleep [q*4-s*2,s*4,q*8-s*2].look
    when 2
      notes = [n, n, n+3]
      play notes.look #if spread(1,4).look
      # sleep [q*4-s*2,s*4,q*8-s*2].look
    when 3
      notes = [n, n, n+7]
      play notes.look #if spread(1,4).look
      # sleep [q*4-s*2,s*4,q*8-s*2].look
    when 4
      notes = [n, n, n+5]
      play notes.look #if spread(1,4).look
      # sleep [q*4-s*2,s*4,q*8-s*2].look
    end
    sleep [q*4-s*2,s*4,q*8-s*2].look
  end
end
5 Likes

I love how you overlap and offset simple melodic, rhythmic and LFO patterns, creating kaleidoscopic textures, I’m a huge fan. Again, i would love to see how you live code these textures in real time, if you’re so inclined.

PD-Pi

4 Likes

Hi Brendan
Thank you for all the kind and inspirational words.
I have added this to my next empty page in Sonic Pi.
Kind regards
Mikael

/ Record the process from scratch /
1 Like

Many thanks. I will also do a live coding video very soon

PD-Pi

1 Like

another one that will go to my study session!!! already finished the previous one!

1 Like