Slicer and Smoother
Make a versatile tremolo patch using these two blocks
Last updated
Make a versatile tremolo patch using these two blocks
Last updated
Last time I pulled a fast one and used some blocks without fully explaining what they do. Well there are only so many tangents I can go off on at one time, so I let this one go until now.
The Slicer Block
Let's start with the Slicer block. The most straightforward application of this block is to get a square wave from a sine wave. Set the Slice Level at 50, and the Slicer Out goes high when the Control In is below this amount (which represents a percent of the maximum). When the Control In is above this threshold, the Slicer Out is low. That may seem a little backwards, but that's how it works today (build 1035).
The value of "low" depends on the combo box setting.
0 -> +1 : output goes from 0 (low) to 1.0 (high)
-1 -> +1: output goes from -1 (low) to 1.0 (high)
I'm just going to use 0->+1 for these examples.
Start with an 8 Hz Sine wave, 0 -> 1.0, going into the Slicer's Control In, with the Slice Level pin unconnected.
Turn on the Simulator "Scope":
Warning!
Sending control signals to the outputs lets you use the scope during development to get a better idea of what is going on. It also can send full amplitude square waves to your headphones and speakers which can make those items explode along with your eardrums and head. For this reason, please mute your audio when doing the following tests.
Now, start the simulator and if needed, adjust the scope display settings to view the waveforms. We see a square wave that switches in the middle of the transitions of the sine wave. The high portions of the square wave align with the low portions of the sine wave.
Now set the slice level to 0.95 and restart the simulator.
Now we are getting a very narrow low going pulse switching near the top of the sine wave.
Add a Pot to the Slice Level input.
When the Pot level is varied, the pulse width modulates over its range. Note that if you set the pot to 0, the pulses will actually stop because the slice level is zero.
To set the low range for the pulse width, use a scale/offset block. The actual "Output Low" value should be set to your taste.
In this patch, I didn't use a Smoother after the Slicer simply because I ran out of instructions. The Slicer output goes to a Crossfade which means that it switches from 100% input 1 to 100% input 2.
On one side, we have a Phaser. On the other side, a flanger. Both use the same LFO. So pot 2 switches suddenly from Phaser to Flanger at the 50% point.
On the same pot 2 control, is a Vee that independently boosts the feedback signal for the Phaser and Flanger sides. As you go to 100% on pot 2, the Phaser's feedback is increased. As you go to 0%, the Flanger's feedback is increased. Feedback for both Phaser and Flanger goes to 0 when pot 2 is at 50%.
If I were writing this by hand I'd probably use a pot skip because I think it's fewer instructions.
Proposed improvements to the Slicer block
Add independent sliders to set high and low output levels. This could eliminate the need for a subsequent Scale/Offset if you don't want a 0 to 1 output swing.
Remove combo box for fixed output level selections.
Input low slice threshold could eliminate the overhead of a (likely) separate Scale/Offset block.
The Smoother Block
The primary application for the Smoother block is to add an exponential decay to sharp transitions, such as those that come out of the Slicer block. The Smoother block is nothing more than a 1-pole low pass filter operating at the extreme low edge of frequency that you can set using a single instruction. You can get lower frequencies, but you would have to add more instructions, which this block doesn't do. I don't think it's a big deal because the lowest frequency works pretty well for most applications.
The parameter shown is the corner frequency of the low pass filter. I think that most people would want to conceive of a smoother in terms of its rise time instead, but I have not yet pulled it together to be able to set the coefficient using the rise time for the slider.
I will just show you the effect that the smoother has on the 8 Hz sliced waveform from earlier. At f = 0.51 Hz:
You can see that the Smoother is way slower than the LFO. This setting totally wipes out the LFO at 8 Hz. Let's look at the other extreme, 14.79 Hz.
Change the Time Base to zoom in a bit:
Now you can see that the waveform changes from "mostly off" to "mostly on" as the pot slider is moved (well, you have to imagine that part). I actually think that 14.79 Hz is still too low of a setting. I'd like to maybe double that and switch the slider to showing rise time instead of frequency.
This makes the basis for a nice tremolo patch (download it). The Tremolizer Depth value is set to 0.99 which is "full chop". Set this lower if you are not into full chop. I will explain the Tremolizer in more detail in a future article! Notice that if you decrease the frequency on the Smoother, that you also get less chop as the LFO is taking longer to get from one level to the next.
Note: You may now return to listening to the simulator output.
Proposed improvements to the Smoother block include:
Increase the top frequency, thereby decreasing the minimum rise time.
Set the rise time in the dialog rather than the corner frequency.