Untitled

mail@pastecode.io avatar
unknown
ruby
11 days ago
2.3 kB
4
Indexable
Never
use_bpm 140

$bpat0 = ring(:a1, :a2, :g2, :a1, :a1, :d2, :g2, :d2)
def blin0 (dns1=1, dns2=2)
  attackpat = ring(0 , 2, 0, 1)
  density dns1 do
    8.times do |x|
      tick
      density dns2 do
        4.times do |x|
          synth :bass_foundation, attack: attackpat.look, note: $bpat0.look, release: 4
          mp = synth :blade, attack: attackpat.look, note: $bpat0.look+7,  sustain: 2, release: 4, on: (x%4==0), note_slide: 1, pitch_slide: 1
          mp.control(pitch: -24, amp: 1.5)
          sleep 1
        end
      end
    end
  end
end
def sn1
  2.times do |x|
    2.times do |y|
      sleep 2
      sample :drum_snare_hard
      sleep 1
      sample :drum_snare_hard, on: x==1 && y==1
      sleep 1
    end
  end
  2.times do |x|
    2.times do |y|
      sleep 2
      sample :drum_snare_hard
      sleep 1
      density 2 do
        sample :drum_snare_hard, on: x==1 && y==1
        sleep 1
      end
    end
  end
end

live_loop :l1 do
  in_thread do
    blin0
  end
  in_thread do
    sn1
  end
  2.times do |x|
    4.times do |y|
      4.times do |z|
        sample :drum_bass_hard
        ##| sample :drum_cymbal_hard
        panring = ring(0.5,-0.5)
        pitchring = ring(-2,-7,-2,-5)
        pitchtick = tick(:pitchtick)
        if !(z==3&&y%2==0)
          1.times do
            density 2 do
              pantick = tick(:pantick)
              with_fx :wobble, phase: 0.5 , decay: 1.5, max_phase: 0.75, mix: 0.5, phase_offset: 0.125/2 do
                with_fx :bitcrusher, mix: 1, bits: 16, amp: 1 do
                  sample :drum_cymbal_hard, pitch: pitchring[pitchtick], pan: panring[pantick], amp: 0.8
                  
                end
                sleep 0.5
              end
            end
            sample :drum_bass_hard, on: z%2==0&&y%2==0
            sample :drum_cymbal_closed
            sleep 0.5
          end
        else
          sample :drum_cymbal_hard, pitch: pitchring[pitchtick]
          sample :drum_cymbal_open, on: x==1&&z==1, amp: 2
          sleep 0.25
          sample :drum_cymbal_closed
          sleep 0.25
          sample :drum_bass_hard, amp: 2
          2.times do |z1|
            sample :drum_bass_hard, on: z1==1&&z%2==0&&y%2==0
            sample :drum_cymbal_closed
            sleep 0.25
          end
        end
      end
    end
  end
end
Leave a Comment