More music that can entertain your ears for a few minutes

Un-commenting / switching out code intended.

live_loop :k do
  sleep 0.5
end

live_loop :q do
  ##| stop
  sync :k
  d = [1, 0.5].tick
  sample :bd_haus, rate: d, cutoff: [50, 50, 60].look, amp: 1.25
end


live_loop :l do
  ##| stop
  sync :k
  with_fx :reverb, damp: 0.9, room: 0.99 do
    sample :bd_sone, amp: 0.25, rate: [1, 1.2, 3, 4].tick
  end
  sleep 0.5
end

live_loop :p do
  ##| stop
  sync :k
  
  sample :bd_zum, amp: 0.667 #, pitch: rrand(-6, 6)
  sleep 2
end

live_loop :m do
  ##| stop
  sync :k
  #with_fx :reverb, damp: 0.9, room: 0.99 do
  sample :bd_fat, amp: 1 #, pitch: rrand(-6, 6)
  #end
  sleep 4
end

y = 17

use_random_seed 7
x = line(30, 42, steps: y).pick(9)


live_loop :n, amp: 0.5 do
  ##| stop
  sync :k
  
  ##| if one_in(20)
  ##|   print "change it up!"
  ##|   x = line(30, 42, steps: y).pick(9)
  ##| end
  
  with_fx ([:bitcrusher, :slicer, :slicer, :slicer, :slicer, :slicer, :tanh, :slicer]).choose, phase: rrand(0.125, 1.5) do
    with_fx :ping_pong, mix: 0.5, pan_start: -0.3 do
      with_fx :krush, mix: 0.1 do
        use_synth :sine
        play x.tick, amp: 0.5 #[60.333,62.5,64.667,67.5,58.5].choose, amp: 0.2
        use_synth :tri
        play x.look, amp: 0.5
        use_synth :tri
        play x.tick + 12/y/2, amp: 0.667
      end
    end
  end
  sleep 0.667
end

Adding in some of

s = "C:/Users/jimkg/samp/"

live_loop :j do
  sync :k
  ##| stop
  d = choose([rrand(0.6, 1.2), rrand(0.6, 1.2), rrand(-0.8, -1.6)])
  sample s, choose(["hit_", "loop_", "hit_", "hit_"]) + choose(["1", "2", "3", "4", "5", "6", "7"]), rate: d, amp: 0.25
  sleep 0.5 * sample_duration(s) * d.abs + 2
end

can help.

1 Like