Calm exploring tb303 bass and arp pluck YT

# 241222 0054 Calm exploring tb303 bass and arp pluck YT moon
# Saved 241222 0054
# https://youtu.be/ACKX5K0wxF8
# https://in-thread.sonic-pi.net/t/calm-exploring-tb303-bass-and-arp-pluck/9392


/ Two fuctions that shortens "spread() to s()" and "rotate() to r()"/
define :s do |a,b|
  spread(a,b)
end

class SonicPi::Core::RingVector # r() only works on s() - doesnt work on an array like [].r()
  def r(n)
    self.rotate(n)
  end
end

set_volume! 2

use_bpm 77


with_fx :ixi_techno, phase: 32, mix: 0.6, res: 0.2 do
  with_fx :reverb, room: 0.97 do
    
    live_loop :a1 do
      tick
      use_synth :pluck
      use_synth_defaults cutoff: 70, amp: 0.25, release: 0.8
      t = 32
      n = :c4
      s = play n+[0,12,5,7,].look #if s(1,16).look
      a = 2
      b = a+a
      control s, cutoff: [60,70,80,90,100,110,120,130].choose, amp: [a,0,0,b, 0,a,b,0].look, pan: rdist(0.75)
      sleep 0.25
    end
    
    live_loop :a2 do
      tick
      use_synth :pluck
      use_synth_defaults cutoff: 70, amp: 0.25, release: 0.8
      t = 32
      n = :c3
      s = play n+[0,12,5,7,].look #if s(1,16).look
      a = 2
      b = a+a
      control s, cutoff: [60,70,80,90,100,110,120,130].choose, amp: [a,0,0,b, 0,a,b,0].rotate(4).look, pan: rdist(0.5)
      sleep 0.25
    end
    
    live_loop :a3 do
      tick
      pat = knit(0,32+32, -2,32, -5,32,-4,32)
      
      use_synth :saw
      play :c2+pat.look, amp: 4, attack: 3, pan: rdist(0.25) if s(1,32).look
      
      use_synth :tb303
      play :c3+pat.look, amp: 2 if s(1,16).rotate(5).look
      
      sleep 0.25
    end
    
    live_loop :a4 do
      tick
      sample :bd_fat, amp: 4 if s(1,16).look
      sample :sn_generic, finish: 0.15, amp: 2 if s(0,16).look
      sleep 0.125
    end
    
  end
end


## Idea Hydra webcam pixelated nice
## https://hydra.ojack.xyz/?code=JTBBcmVuZGVyKG8zKSUwQSUwQXMwLmluaXRJbWFnZSglM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