# About :slicer and :panslicer specs

I have a question about the behavior of :slicer and :panslicer.

Noise at the end of the sound.

# No noise when sustain is 3.99, noise when sustain is 3.999.

``````with_fx :slicer,phase: 1,pulse_width:0.5,wave:0 do
play 60,sustain:4,release:0
sleep 4
end
sleep 1
with_fx :slicer,phase: 1,pulse_width:0.5,wave:1 do
play 60,sustain:4,release:0
sleep 4
end
sleep 1
with_fx :slicer,phase: 1,pulse_width:0.5,wave:2 do
play 60,sustain:4.0,release:0
sleep 4
end
sleep 1
with_fx :slicer,phase: 1,pulse_width:0.5,wave:3 do
play 60,sustain:4.0,release:0
sleep 4
end
``````

Volume change with slicer by audacity

Is the volume change a little different?
Noise at the end of the sound.

# No noise when sustain is 3.99, noise when sustain is 3.999.

``````with_fx :panslicer,phase: 1,pulse_width:0.5,wave:0 do
play 60,sustain:4,release:0
sleep 4
end
sleep 1
with_fx :panslicer,phase: 1,pulse_width:0.5,wave:1 do
play 60,sustain:4,release:0
sleep 4
end
sleep 1
with_fx :panslicer,phase: 1,pulse_width:0.5,wave:2 do
play 60,sustain:4.0,release:0
sleep 4
end
sleep 1
with_fx :panslicer,phase: 1,pulse_width:0.5,wave:3 do
play 60,sustain:4.0,release:0
sleep 4
end
``````

Volume change with panslicer by audacity

Hi there,

the clicks you’re hearing are the `:slicer` and `:panslicer` shifting from 0 to 1 at the start of a square or saw wave cycle. If there’s even a small amount of sound which is being silenced by the current value of 0, when it switched instantly to 1 that creates a click. This isn’t observed in the triangle or sine wave variants as these shift from 0 to 1 gradually rather than instantly.

To combat this, check out the `smooth` opts which let you smooth out these harsh changes if necessary. There’s `smooth`, `smooth_up` and `smooth_down`.

Thank you very much.

The noise could be removed with smooth:0.2 or smooth_up:0.2.
Is it my understanding that the difference in waveforms is trivial to the auditory sense?

Apologies - I don’t quite understand what you mean by this question. Just to clarify - the waveforms for these particular FX are not at a high enough frequency to be heard. They’re what’s typically called ‘control-rate’ waves - they oscillate at the kind of speed your hand might move a slider or knob - although in the case of the square or saw waves, there are moments when the wave moves from one end of the value range immediately to the other in an instant.

The reason you can hear a click is that if the wave is controlling the amplitude and moves from a position where it is making the signal silent (a value of 0) to a full value (1), then this can make the speaker instantly move to a more distant position which results in a sudden click.

You’re not hearing the control wave, you’re hearing a rapid shift form silent to non-silent.

In the case of ”:panslicer”, the question is why the shape of the wave:0-3 volume waveform is different from the description in the slicer section described in mehackit.