Sonic Pi loop_drone_g_97 tabla and saw riff with Hydra visuals

Sonic Pi loop_drone_g_97 tabla and saw riff with Hydra visuals

Hydra code
You can change “render(o3)” to render(), render(o0), render(o1), render(o2)
and press PLAY
CTRL+SHIFT+h to hide/show hydra code

Tip: To record this I had Hydra open in 5 different TABS in Chrome and used CTRL+1, CTRL+2, … to switch TABS.

If you wanna learn how to create scenes in Hydra. Checkout Dortmund workshop on


# 220621 0232 tabla and sawmelriff with Hydra (done)
# My performance https://youtu.be/gLbVWXRj-2U
# Created by https://linktr.ee/relaxnow

live_loop :time, delay: 0.01 do
  sleep 1
end

with_fx :reverb, room: 0.6 do
  live_loop :fo, sync: :time do
    #    stop
    sample  :loop_drone_g_97, amp: 2#, rpitch: 12
    sleep sample_duration(:loop_drone_g_97)
  end
  
  a=0  # 0 2
  
  
  live_loop :tabla, sync: :time do
    sample :tabla_na, amp: a, pan: 0.5 if spread(5,7).tick
    # sample :tabla_na, amp: a, pan: 0.5 if spread(5,7).tick
    #sample :tabla_na, amp: a, pan: 0.5 if spread(3,6).tick
    #sample :tabla_na, amp: a, pan: 0.5 if spread(4,12).tick
    #sample :tabla_na, amp: a, pan: 0.5 if spread(7,16).tick
    sleep 0.25
  end
  
  live_loop :tabla2, sync: :time do
    sample :tabla_na_s, amp: a, pan: -0.5 if spread(3,5).tick
    # sample :tabla_na_s, amp: a, pan: -0.5 if spread(2,6).tick
    #sample :tabla_na_s, amp: a, pan: -0.5 if spread(3,12).tick
    
    #sample :tabla_na_s, amp: a, pan: -0.5 if spread(3,5).tick
    #sample :tabla_na_s, amp: 4, pan: -0.5 if spread(4,16).tick
    
    sleep 0.25
  end
  
  live_loop :noisehat, sync: :time do
    stop
    use_synth :noise
    play :g4, release: 0.025, cutoff: 110, amp: 2 if spread(5,16).tick
    sleep 0.25
  end
  
  
end



with_fx :reverb, room: 0.95 do
  
  #                # A B  ABC Intro
  #                # 1 2  123 4567891  10                Intro
  #                           457 69 89   1 2  1 123       4 9 5 123
  sawmelriff = 0
  
  
  #            1   # chord 1
  #            2   # chord 2
  #            3   # chord 3
  #            4   # single note
  
  live_loop :sawmel, sync: :time do
    #stop
    
    case sawmelriff
    
    
    when 0
      stop
    when 1
      notes = [:g4,:d4,:bb4,:g5]  # nice
      #notes = [:g3,:c4,:bb4,:g5]
    when 2
      notes = [:g3,:c4,:ds4,:c5] # nice
    when 3
      notes = [:g4,:c4,:bb4,:ds5]  # nice
    when 4
      notes = [:g4]
    when 5
      notes = [:g4, :ds5]
    when 6
      notes = [:g4, :f5]
    when 7
      notes = [:g4, :c5]
    when 8
      notes = [:g4, :as4]
    when 9
      notes = [:g4, :c5, :ds5]
      
    when 10
      notes = [:g3,:g4,:c4,:ds4,:c5].tick(:asdasadasda)+12
    end
    
    use_synth :saw
    play notes, release: 0.2, cutoff: range(70,120,step: 5).mirror.tick(:r), amp: 4 if spread(5,16).tick(:asdas)
    
    sleep 0.25
  end
  
  
  
  live_loop :kick, sync: :time do
    stop
    sample :bd_haus, cutoff: 90 , amp: 4 if spread(2,16).tick
    sleep 0.25
  end
  
end

# Hydra visuals
# https://hydra.ojack.xyz/?code=czAuaW5pdEltYWdlKCUyMmh0dHBzJTNBJTJGJTJGdXBsb2FkLndpa2ltZWRpYS5vcmclMkZ3aWtpcGVkaWElMkZjb21tb25zJTJGNSUyRjVmJTJGUHVsY2hyaXRpYV9kb3JzaWNvcm51dGFfLV9ab29LZXlzLTM0Mi0wMDEtZzAwMS5qcGclMjIpJTBBJTBBcmVuZGVyKG8zKSUwQSUwQSUyRiUyRiUyMG8wJTIwdmVyeSUyMG5pY2UlMjBwYXR0ZXJuJTBBbm9pc2UoMiUyQzAuMSUyQzIpJTBBLm1vZHVsYXRlKG5vaXNlKDIlMkMwLjAyKS5jb2xvcmFtYSgtMiUyQzElMkMxMiklMkMwLjEpJTBBLmRpZmYobzAlMkMuMikuc2NhbGUoMSUyQzklMkYxNiklMEEua2FsZWlkKDIpJTBBLmRpZmYoczAlMkMwLjkpJTBBLnJvdGF0ZSgwJTJDMC4wMSklMEEuc2hpZnQoMTAwMCklMEElMjAlMjAub3V0KG8wKSUwQSUwQSUyRiUyRiUyMG8xJTIwdmVyeSUyMG5pY2UlMjBwYXR0ZXJuJTIwd2l0aCUyMG9zYyUwQW9zYygyMDAlMkMwLjAxJTJDMjApJTBBLnRocmVzaCglNUIwLjElMkMwLjQlMkMyJTJDLTAuMSU1RC5mYXN0KDAuNikuc21vb3RoKCkpJTBBLmJsZW5kKG8wJTJDMC43KS5tb2R1bGF0ZShzMCUyQzAuMDEpJTBBJTIwJTIwLmludmVydCgpJTBBJTIwJTIwLm91dChvMSklMEElMEFub2lzZSgyJTJDMC4yKS5waXhlbGF0ZSgyJTJDNCklMEElMjAlMjAuZGlmZihvMSUyQzAuMikub3V0KG8yKSUwQSUwQSUwQW5vaXNlKDElMkMwLjElMkMyKSUwQSUyMCUyMC5hZGQobzElMkMwLjk5KSUyMCUyMCUyRiUyRndvcmtzJTBBJTJGJTJGLmJsZW5kKG8xJTJDMC4yOSklMjAlMjAlMkYlMkZleHBsb3JpbmclMEElMjAlMjAubW9kdWxhdGUobm9pc2UoMC4xKS5yb3RhdGUoMCUyQzAuMSkuc2NhbGUoMiUyQzIpJTJDMC4wMSklMEElMkYlMkYudGhyZXNoKDAuNSklMEEubHVtYSgwLjEpJTBBLmludmVydCgpJTBBLnNoaWZ0KDEpJTBBLm91dChvMyklMEElMEE%3D

# I need to learn to fade in and our
# look at https://in-thread.sonic-pi.net/t/smoothly-fading-samples-and-synths/528/8

1 Like