Slicer

amp:

1

mix:

1

pre_amp:

1

phase:

0.25

amp_min:

0

amp_max:

1

pulse_width:

0.5

phase_offset:

0

wave:

1

invert_wave:

0

Modulates the amplitude of the input signal with a specific control wave and phase duration. With the default pulse wave, slices the signal in and out, with the triangle wave, fades the signal in and out and with the saw wave, phases the signal in and then dramatically out. Control wave may be inverted with the arg invert_wave for more variety.

with_fx :slicer do
play 50
end

Introduced in v2.0

 amp:

The amplitude of the resulting effect.
Default: 1
must be zero or greater
May be changed whilst playing
Has slide parameters to shape changes

 mix:

The amount (percentage) of FX present in the resulting sound represented as a value between 0 and 1. For example, a mix of 0 means that only the original sound is heard, a mix of 1 means that only the FX is heard (typically the default) and a mix of 0.5 means that half the original and half of the FX is heard.
Default: 1
must be a value between 0 and 1 inclusively
May be changed whilst playing
Has slide parameters to shape changes

 pre_amp:

Amplification applied to the input signal immediately before it is passed to the FX.
Default: 1
must be zero or greater
May be changed whilst playing
Has slide parameters to shape changes
Scaled with current BPM value

 phase:

The phase duration (in seconds) of the slices
Default: 0.25
must be greater than zero
May be changed whilst playing
Has slide parameters to shape changes
Scaled with current BPM value

 amp_min:

Minimum amplitude of the slicer
Default: 0
must be zero or greater
May be changed whilst playing
Has slide parameters to shape changes

 amp_max:

Maximum amplitude of the slicer
Default: 1
must be zero or greater
May be changed whilst playing
Has slide parameters to shape changes

 pulse_width:

The width of the pulse wave as a value between 0 and 1. A width of 0.5 will produce a square wave. Different values will change the timbre of the sound. Only valid if wave is type pulse.
Default: 0.5
must be a value between 0 and 1 exclusively
May be changed whilst playing
Has slide parameters to shape changes

 phase_offset:

Initial phase offset.
Default: 0
must be a value between 0 and 1 inclusively
Can not be changed once set

 wave:

Control waveform used to modulate the amplitude. 0=saw, 1=pulse, 2=tri, 3=sine
Default: 1
must be one of the following values: [0, 1, 2, 3]
May be changed whilst playing

 invert_wave:

Invert control waveform (i.e. flip it on the y axis). 0=normal wave, 1=inverted wave.
Default: 0
must be one of the following values: [0, 1]
May be changed whilst playing

Slide Parameters

Any parameter that is slidable has three additional parameters named _slide, _slide_curve, and _slide_shape. For example, 'amp' is slidable, so you can also set amp_slide, amp_slide_curve, and amp_slide_shape with the following effects:

 _slide:

Amount of time (in seconds) for the parameter value to change. A long parameter_slide value means that the parameter takes a long time to slide from the previous value to the new value. A parameter_slide of 0 means that the parameter instantly changes to the new value.
Default: 0

 _slide_shape:

Shape of curve. 0: step, 1: linear, 3: sine, 4: welch, 5: custom (use curvature param), 6: squared, 7: cubed
Default: 5

 _slide_curve:

Shape of the slide curve (only honoured if slide shape is 5). 0 means linear and positive and negative numbers curve the segment up and down respectively.
Default: 0