Hello from Sweden :-)

Hi!

My name is Drond and Iā€™m from Sweden and I have been using Sonic Pi for like the last 8 hours hours. I have almost finished reading parts of the tutorial for the program. Some parts I will probably have to read again, others not.

Anyway here are some code i wrote today. Still a beginner and some concepts are kinda tricky to understand. You may use it as you want to except to laugh at it. Now i need a break and I gonna close the application. But I will open it up tomorrow :slight_smile:

use_bpm 124

in_thread do
  loop do
    
    cue :kick
    
    sleep 1
    
  end
end

in_thread do
  loop do
    cue :hats
    
    sleep 0.25
  end
end


in_thread(name: :kick) do
  loop do
    with_fx :distortion, distort: 0.3 do
      
      sync :kick
      
      kick_sample = :bd_haus
      
      
      #dry kick
      sample kick_sample
      
      #add some reverb
      with_fx :reverb, room: 0.55, amp: 0.8  do
        
        sample kick_sample, amp: 0.60
        
      end
      
      #add some echo
      with_fx :echo, amp: 0.15, mix: 1, phase: 0.25, decay: 2 do
        
        sample kick_sample, amp: 0.5
        
      end
    end
  end
end


in_thread(name: :hats) do
  
  hat_sample = :drum_cymbal_open
  
  loop do
    
    sync :hats
    
    2.times do
      sleep 0.25
    end
    
    1.times do
      sample hat_sample, attack: 0.1, sustain: 0, release: 0.1
      sleep 0.25
    end
    
    1.times do
      sleep 0.25
    end
    
  end
end

Second day in Sonic Pi and I made this

use_bpm 130


with_fx :mono do
  live_loop :main_kick do
    
    sample :bd_tek, amp: (ring, 1.5, 1.0).tick
    sample :bd_sone, amp: (ring 1.5, 1.0).tick, attack: 0.02, release: 0.02, lpf: 68
    
    with_fx :reverb, room: 0.68, damp: 1.0 do
      with_fx :distortion, distort: 0.6, mix: 0.4 do
        sample :bd_sone, amp: (ring 1.0, 0.8 ).tick, attack: 0.02, release: 0.02, hpf: 10, lpf: 88
      end
    end
    
    sleep 1
    
  end
  
  live_loop :snare do
    
    sleep 0.998
    
    sample :bd_zome, amp: 0.5, release: 0.5, hpf: 40, lpf: 100
    
    with_fx :reverb, room: 0.88, damp: 1.0 do
      with_fx :distortion, distort: 0.4, mix: 0.3 do
        sample :bd_zome, amp: 0.5, attack: 0.1, release: 0.3, hpf: 40, lpf: 100
      end
    end
    
    sleep 1.002
    
  end
  
  live_loop :close_hats do
    
    sample :drum_cymbal_soft, amp: 0.3, attack: 0.001, sustain: 0.004, release: 0.05, hpf: 72, lpf: 128
    sleep 0.25
    
  end
  
  
  live_loop :open_hats do
    sleep 0.50
    sample :drum_cymbal_soft, amp: 0.3, attack: 0.001, sustain: 0.004, release: 0.16, hpf: 72
    sleep 0.50
    
  end
end
1 Like