# Hello from Sweden :-)

**URL:** https://in-thread.sonic-pi.net/t/hello-from-sweden/7384
**Category:** Introductions & Stories
**Created:** [December 29, 2022, 4:51pm UTC](https://in-thread.sonic-pi.net/t/hello-from-sweden/7384 "2022-12-29T16:51:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![drond](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@drond](https://in-thread.sonic-pi.net/u/drond)
#### Post date: [December 29, 2022, 4:51pm UTC](https://in-thread.sonic-pi.net/t/hello-from-sweden/7384/1 "2022-12-29T16:51:02Z")

</div>

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 🙂

```ruby
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

```

---

<div class="post-metadata">

### Author: ![drond](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@drond](https://in-thread.sonic-pi.net/u/drond)
#### Post date: [January 2, 2023, 5:17pm UTC](https://in-thread.sonic-pi.net/t/hello-from-sweden/7384/2 "2023-01-02T17:17:09Z")

</div>

Second day in Sonic Pi and I made this

```ruby
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

```
