# I know I'm doing something stupid... I just cant see it

**URL:** <https://in-thread.sonic-pi.net/t/i-know-im-doing-something-stupid-i-just-cant-see-it/3581>\
**Category:** Creations & Ideas\
**Created:** [April 5, 2020, 2:18am UTC](https://in-thread.sonic-pi.net/t/i-know-im-doing-something-stupid-i-just-cant-see-it/3581 "2020-04-05T02:18:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Eli](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/eli/32/116_2.png) [@Eli](https://in-thread.sonic-pi.net/u/Eli)\
**Post date:** [April 5, 2020, 12:44pm UTC](https://in-thread.sonic-pi.net/t/i-know-im-doing-something-stupid-i-just-cant-see-it/3581/4 "2020-04-05T12:44:19Z")

</div>

Okay, so this seems to work… I just wanted to understand the  
code in this post, and see if I could put the slide into it…

> [@Public Energy - Three o' three with Sonic Pi](http://in-thread.sonic-pi.net/t/public-energy-three-o-three-with-sonic-pi/3548):
>
> Hi, I recreated the 303 house classic with Sonic Pi using the TB303 I am new to Spi so bare with me slight_smile The only thing I struggled with, are the slide effects from the real TB-303 which combines notes… Can I do this with spi? Here is the code use\_bpm 134 t = 0.25 #general sleep value x = 0.25 #general release value lfo1 = () lfo2 = () lfo3 = () live\_loop :lfo do lfo1 = (range 80,130,0.5).mirror.tick #for cutoff lfo2 = (range -0.5,0.5,0.05).mirror.tick #for panning sle…

Now I hear it play, I think I could probably manage a good imitation of Harold  
Faltermyers ‘Axel F’ track… but I probably wont try.

Eli…

```ruby
use_bpm 134
t = 0.25 #general sleep value
x = 0.5 #general release value
lfo1 = lfo2 =lfo3 = ()

notes=(ring :r,:a2,:a2,:r,:r,:c2,:r,:r,:a2,:r,:a2, :a2,:r,:a2,:r,:a2,:d3,:e3,:g3,
       :r,:g2,:r,:as2, :r,:r,:r,:as2, :r,:as3,:as3, :gs2,:r,:as3, :r)

releases=(ring x,x*2,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x*2,x)

sleeps=(ring t,t,t*4, t,t,t,t, t,t,t,t, t,t,t,t, t,t,t,t, t,t,t,t, t,t*2,t, t,t*2,t)

slides=(ring x,x,x*4, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x*2,x, x,x,x,x,)

live_loop :lfo do
  lfo1 = (range 80,130,0.5).mirror.tick #for cutoff
  lfo2 = (range -0.5,0.5,0.05).mirror.tick #for panning
  sleep 1
end

live_loop :resonance do
  lfo3 = (range 0.5,1,0.01).mirror.tick #for resonance
  sleep 2
end

define :t303 do |nte,rls,slp, sld|
  live_loop :player do
    s = synth :supersaw, note: nte.look+12
    if nte.tick != :r
      control s, note: nte.look+12, note_slide: sld.look
    end
    sleep slp.look
  end
end

t303(notes, releases, sleeps, slides)

```

---

_[View the full topic](https://in-thread.sonic-pi.net/t/i-know-im-doing-something-stupid-i-just-cant-see-it/3581)._
