The wavetable oscillator in SynthR supports creating custom
wave tables from expressions.
They can be really short and simple but can be extended to longer expressions.
These expressions are build from normal math operators, numbers, variables and functions.
||Current time position in wave table from -1 to 1
||Like x but from 0 to 1
||Current table position from -1 to 1
||Current table position from 0 to 1
||Raised cosine (Hann) windowing function
||half sine window
||A wider version of window1
||Give sign of value, 1 for positive values, -1 for negative
||Round to nearest int
||triangle fold. Whenever a value goes above 1 it mirrors back, same with below -1
||Full triangle wave from 0 to 1. Same as tfold(4*input)
||Wraps values to stay inside -1 and 1
||Full saw wave from 0 to 1. Same as wrap(2*input)
||Full square wave from 0 to 1. Same as sign(wrap(inputx*2))
Lets make a nice squealy wavetable, step by step.
Lets start with a simple triangle wave.
That's all for making a simple triangle wave! So far it is same
for all wave table positions, let's fix that by making use of
the z variable.
Lets break this down. z goes from 0 to 1, but we rather want to
start with 1. that's why we add the
5*z is added to make the effect a bit more
Now we go from one triangle cycle to a total of 6 cycles when
moving the "pos" knob.
This is already quite useful hard sync like sound but can be
When not having an integer number of triangle cycles it will
end on something not 0 thus having a sharp edge. This can indeed
sound good but it is not quite what we want here so lets add a
window. Just multiply the whole expression window3.
Let's take things one step further and add triangle folding in
to the shape. This is done by wrapping the expression in
To have anything folded back we need to increase
the volume within so lets use the same trick with z as
before by multiplying with
Now we have a nie wavetable!
We can make simple changes that will have dramatic effects like
changing tri to square or saw, or replacing tfold with wrap.
A tip if you if you think your wavetables sound too ringy or
squealy try adding some phase modulation (Rightmost knob in
wavetable). Set to "asym plus", a little bit goes a long way.