Modify ongoing sounds with control busses
This page introduces the feature known as control busses, which was introduced on Tidal 1.7.
Control busses let you route an effect via a bus. In practice, this means you can pattern the effects of a sound while it’s playing.
Why we need control busses
Let’s say we want to modify the sax
sample as it’s playing, applying distinct values of the squiz
effect:
This won’t work. As the structure is defined by sound "sax"
there is only one event per cycle, so squiz
will always take the first value (1
).
There are some workarounds we can try:
Now the structure is taken from the right part, so there will be 4
events per cycle, each one with a different squiz
value. But the sample will be triggered 4
times from the beginning. We’d like to modify squiz
as the sample is playing, not by retriggering it.
Another idea is using chop
:
This cuts the sax
sample into four pieces, and applies one of the squiz
values to each piece. As the sample doesn’t last for exactly one cycle, there is a noticeable change in sound at the cut points, and sound is not smooth.
Using control busses
The above problem can be easily solved using a control bus:
Now we are modifying the squiz
amount while the sample is playing.
squizbus
is defined like this:
The first parameters is an identification for the control bus. It needs to be unique, so if you were controlling two effects separately you would need to use different numbers:
This identification needs to be unique across all patterns, unless you wanted two subpatterns to be controlled from the same source. In that case, you would probably have e.g. one control pattern like lpfbus 2 "1000 5000"
and others receiving only like hpfrecv 2
:
Here, you can hear how the low pass filter and the high pass filter change as the sample plays, but using both the same values.
hpfrecv
is defined like this:
You can even pattern that identification:
Most effects have a bus
and a recv
function to be used this way.
Control busses can also be used to create LFOs on effects:
Note that in these examples, we use segment
to sample the value of sine
and smooth
, as these are continuous patterns and won’t work directly.
Additionally, you can prepare patterns to receive control signals, and then send them from other patterns:
Limitations
Not all control parameters can be controlled via a bus. The following is the whole list of parameters that can’t be:
Note that note
, n
, gain
and accelerate
are in this list, but amp
is not.
If you try to use a bus on one of these parameters, you will receive an error message like this:
panbus
will work, but in the range -1 to 1 instead of 0 to 1:
Control busses and MIDI
It is possible to map MIDI CC numbers to control busses, and use an external MIDI controller to modify parameters in real time.
In the above example, CC number 21
is mapped to djf
. cF
indicates that the MIDI CC value is to be treated as a float, and the 0-127
value from the MIDI signal is automatically converted to a 0-1
range. 0.5
is the default starting value.
In this example, roombus 3 ("^23")
maps CC number 23
to the room
parameter, without specifying any initial value.
In some cases, you’ll need to adapt the default CC values range:
squiz
amount doesn’t have a 0-1 range for its values. We need values greater or equal than 1
for this.
In the last example, the 0-1
range is modified, getting a range from 1
to 8
, which are good values for squiz
.
The whole example and the resulting sound is available at this forum post by @cleary.