My first attempt in sonic-pi

Hi there

I learned about this on a video on youtube.
So I had to try this.

It is so cool.

And I have created a few lines.
I like those samples.

So here ist the code:

# written by mechatronikzygote for lazy afternoons;-)

in_thread do
  live_loop :flibble do
    sample :bd_boom, rate: 20
    sample :bass_hit_c,beat_stretch: 8
    sleep 1
  end
end
in_thread do
  live_loop :flibble1 do
    sample :bd_boom, rate: 15
    sample :bass_hit_c,beat_stretch: 12
    sleep 2
  end
end
in_thread do
  live_loop :flibble2 do
    sample :bd_boom, rate: 10
    sample :bass_hit_c,beat_stretch: 10
    sleep 0.5
  end
end
in_thread do
  live_loop :dixi do
    sample :bd_zome, rate: 3, amp: 6
    sleep 0.5
    sample :guit_em9, amp: 2
    sleep 2
    sample :elec_mid_snare, rate: 3,amp: 6
    sleep 2
    sample :bd_mehackit, amp: 2
    sleep 0.5
    sample :bass_voxy_c, amp: 1
    sleep 6
  end
end
in_thread do
  live_loop :dixi1 do
    sample :bd_zome, rate: 3, amp: 6
    sleep 1
    sample :guit_em9, amp: 2
    sleep 4
    sample :elec_mid_snare, rate: 3,amp: 6
    sleep 4
    sample :bd_mehackit, amp: 2
    sleep 1
    sample :bass_voxy_c, amp: 1
    sleep 12
  end
end

Please enjoy, if ther eis anyone reading this :wink:

well done for a first try :wink:

just a tip for the forum : use 3 backticks at the beginning and at the end of a code block to highlight it. One single backtick is for inline code.

Enjoy sonicpi !

Welcome!

I agree. It sounds really good for your first attempt.

My only suggestion at this point is that you should try using ‘delay’ on some of the instruments to make them come into the mix later rather than all at once. Here’s the example from the documentation:

# this sample is not triggered at time 0 but after 1 beat
  in_thread delay: 1 do
    sample :ambi_lunar_land
  end

# Note 80 is played at time 0
  play 80   

Hi nlb
Thank you. It is just amazing what you can do with code.
It really leaves me flabbergasted.
Greetings from Austria :wink:

mechatronikzygote

Hi Doffu

Thank you, for your kind words and your war welcome. I will try your suggestion after work.
I am still going through all those tutorial for the very beginners.
I wish one day could have more hours, so that every topic in life wil find its proper place.
Greetings from Austria

Mechatronikzygote