# Solved by now, ty all

**URL:** <https://in-thread.sonic-pi.net/t/solved-by-now-ty-all/4628>\
**Category:** Support, Help & Resources\
**Created:** [November 17, 2020, 12:45am UTC](https://in-thread.sonic-pi.net/t/solved-by-now-ty-all/4628 "2020-11-17T00:45:19Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![ethancrawford](https://avatars.discourse-cdn.com/v4/letter/e/a88e4f/32.png) [@ethancrawford](https://in-thread.sonic-pi.net/u/ethancrawford)\
**Post date:** [November 18, 2020, 7:56am UTC](https://in-thread.sonic-pi.net/t/solved-by-now-ty-all/4628/23 "2020-11-18T07:56:56Z")

</div>

The code that is causing that is where, every time it triggers the next slice of the sample, it explicitly sets this to have `amp: 1` - we know then that each slice will start with that. So - if this is not what you need, what did you wish to happen instead?

---

<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:** [November 18, 2020, 8:03am UTC](https://in-thread.sonic-pi.net/t/solved-by-now-ty-all/4628/24 "2020-11-18T08:03:31Z")

</div>

i want to control the samp just like i did with the fx

like here

```ruby
with_fx :slicer, phase_slide: 0.5, phase: 0.125, pulse_width: 0.123, pulse_width_slide: 0.125 do |slice|
  
 
 live_loop :löl do
    
    if tick(:firsttime) == 0 then
      set :slice, slice
    end
    
    
    a = (ring 0.5, 0.5, 0.9, 0).tick #sequencer
    b = (ring 0.6, 0.2, 1, 0.2).tick
    
    
    s = sample :loop_amen, start: a, finish: b, rate: 0.9, amp: 0, amp_slide: 0.3, pitch_slide: 1
  sleep sample_duration :loop_amen, start: a, finish: b, rate: 0.9
    
   end
end

live_loop :control do
  
  sleep 1
  control get[:slice], phase: 0.125, pulse_width: 0.125
  sleep 1
  control get[:slice], phase: 0.125, pulse_width: 0.125
  sleep 1
  control get[:slice], phase: 0.123, pulse_width: 0.123
  sleep 1
  control get[:slice], phase: 0.123, pulse_width: 0.123
  
end

```

---

<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:** [November 18, 2020, 8:10am UTC](https://in-thread.sonic-pi.net/t/solved-by-now-ty-all/4628/25 "2020-11-18T08:10:01Z")

</div>

I just solved it yay, i am getting bette at this xD

```ruby

live_loop :löl do
  

 a = (ring 0.5, 0.5, 0.9, 0).tick #sequencer
  b = (ring 0.6, 0.2, 1, 0.2).tick
  
  
  s = sample :loop_amen, start: a, finish: b, rate: 0.9, amp: get(:a), amp_slide: 0.3, pitch_slide: 1
  
  set(:s, s)
  
  sleep sample_duration :loop_amen, start: a, finish: b, rate: 0.9
  
  end

live_loop :sampiii do
  
  control get(:s), amp: set(:a, 1)
  sleep 1
  control get(:s), amp: set(:a, 0)
  sleep 1
  control get(:s), amp: set(:a, 0)
  sleep 1
  
end

```

---

<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:** [November 18, 2020, 8:11am UTC](https://in-thread.sonic-pi.net/t/solved-by-now-ty-all/4628/26 "2020-11-18T08:11:52Z")

</div>

next problem… now the amp doesn´t slide xD  
oh and i am serious about it, i would really pay some money if someone helps me to the end.

---

<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:** [November 18, 2020, 9:03am UTC](https://in-thread.sonic-pi.net/t/solved-by-now-ty-all/4628/27 "2020-11-18T09:03:43Z")

</div>

i opnened a new Topic for that

[Previous page](https://in-thread.sonic-pi.net/t/solved-by-now-ty-all/4628.md?page=1)
