# A little tune :)

**URL:** <https://in-thread.sonic-pi.net/t/a-little-tune/5078>\
**Category:** Creations & Ideas\
**Created:** [February 1, 2021, 12:10am UTC](https://in-thread.sonic-pi.net/t/a-little-tune/5078 "2021-02-01T00:10:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![holz](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/holz/32/1664_2.png) [@holz](https://in-thread.sonic-pi.net/u/holz)\
**Post date:** [February 1, 2021, 12:10am UTC](https://in-thread.sonic-pi.net/t/a-little-tune/5078/1 "2021-02-01T00:10:02Z")

</div>

Hi guys, a little tune i made, i hope u enjoy or maybe even advance from there 😜

```ruby

live_loop :metro do
 sleep 2
end

live_loop :roots do
 24.times do
   set :s, (ring 3,3,6,6,1,1).tick(:a20) + (ring 1,0,0).tick(:a1)
   sleep (ring 0.5, 0.25,0.25, 0.25,0.5).tick(:a2)
 end
 12.times do
   set :s, (ring 3,3,6,6,1,1).take(4).reverse.tick(:a3) + (ring 1,0,0).tick(:a4)
   sleep (ring 0.5, 0.25,0.25, 0.25,0.5).tick(:a2)
 end
end

live_loop :roots2 do
 use_random_seed 10
 24.times do
   set :ss,get(:s) + (ring 0,3,0,2).tick(:a6)
   sleep 0.25
 end
 12.times do
   set :ss,get(:s) + (ring 0,2,0,3).reverse.tick(:a7)
   sleep 0.25
 end
end

use_synth :tb303

live_loop :bass, sync: :metro do
 
 use_synth_defaults wave: 0, res: 0.3, pulse_width: 0.25
 12.times do
   
   play degree(get(:s), :d2, :minor),attack: 0 , sustain: (ring 0.25, 0.25, 0.5).tick(:a9), release: (ring 0.25, 0.25, 0.5).tick(:a8) , amp: 0.13
   
   sleep (ring 0.5, 0.25,0.25, 0.25,0.5).tick(:a10)
 end
 8.times do
   
   play degree(get(:s), :d2, :minor),attack: 0,sustain: (ring 0.25, 0.25, 0.5).tick(:a9) , release: (ring 0.25, 0.25, 0.5).tick(:a8), amp: 0.13
   
   sleep (ring 0.5, 0.25,0.25, 0.25,0.5).reverse.tick(:a10)
 end
 1.times do
   
   play degree(get(:s), :d2, :minor),attack: 0,sustain: (ring 0.5).tick(:a50) , release: (ring 1).tick(:a14), amp: 0.13
   
   sleep (ring 1).reverse.tick(:a15)
 end
end

live_loop :leads, sync: :metro do
 
 with_fx :slicer, phase: 0.25, pulse_width: 0.4, phase_slide: 0.5, pulse_width_slide: 0.5 do |x|
   with_fx :ixi_techno,phase: 10 do
     use_synth :pluck
     12.times do
       
       play degree(get(:ss), :d3, :minor), amp: 0.35, slide: 0.5
       sleep (ring 0.25,0.25).tick(:a17)
       
       
     end
     8.times do
       play degree(get(:ss), :d3, :minor), amp: 0.35, slide: 0.5
       sleep (ring 0.25,0.25).tick(:a17)
       control x, phase: 0.5, pulse_width: 0.8
     end
     1.times do
       play degree(get(:ss), :d3, :minor), amp: 0.35, release: 0.5, slide: 0.5
       sleep (ring 0.5).tick(:a18)
       control x, phase: 0.25, pulse_width: 0.4
     end
   end
 end
end

live_loop :drums, sync: :metro do
 
 sample :bd_boom, amp: 1
 sleep (ring 1,0.5,1,0.25,0.25).tick(:a33)
end

live_loop :drums1, sync: :metro do
 
 sample :drum_cymbal_closed, amp: 0.5
 sleep (ring 2,2,3).tick(:a55)
end

```

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [February 1, 2021, 6:49am UTC](https://in-thread.sonic-pi.net/t/a-little-tune/5078/2 "2021-02-01T06:49:06Z")

</div>

Hi,

I like your tick names 😨 but just point that when there is only one tick in your live\_loop you don’t need to give it a name.  
Cheers

---

<div class="post-metadata">

**Author:** ![holz](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/holz/32/1664_2.png) [@holz](https://in-thread.sonic-pi.net/u/holz)\
**Post date:** [February 1, 2021, 12:01pm UTC](https://in-thread.sonic-pi.net/t/a-little-tune/5078/3 "2021-02-01T12:01:54Z")

</div>

i edited the tick names 😜 i did not really care about their names.  
i am aware that they dont need a name if they are alone, but if i want to add something its ready to go.

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [February 1, 2021, 12:17pm UTC](https://in-thread.sonic-pi.net/t/a-little-tune/5078/4 "2021-02-01T12:17:54Z")

</div>

> [@holz](#):
>
> i am aware

Nice ! Your tick names seem to be the result of a long sliding finger on your computer keyboard. ☺  
By the way, give name with a meaning may be useful if then you have to use look in a your loop.  
Cheers
