Add effects to SuperDirt
This help file is based on a file found in the SuperDirt GitHub repository. Report to the original version to get more information or add your improved workflow to this page to help other users. Adding new effects for Tidal and SuperDirt is a three-step process:
- add the desired parameters to Tidal
- add a module definition to SuperDirt, so it can be found when the parameter is not
nil
- add the
SynthDef
to SuperDirt, so it can be played
Adding a local effect
As an example, we’ll add a weird spectral delay to SuperDirt. This assumes that you have an instance of SuperDirt accessible via ~dirt
in the SuperCollider interactive editor.
Tidal Side
We are going to add two parameters: tsdelay
(float, delay time) and xsdelay
(int, delay structure). Run the following Tidal Code (as if it was a tidal pattern):
If you want this the above be automatically available every time you start tidal, then add it to the definitions in your BootTidal.hs boot file.
SuperCollider Side
Add a module for SuperDirt. This adds a responder for the parameters.
You can previsualise the effect order using this command in SuperCollider:
You can reorder the effects if you need to. For instance, if you want the low pass filter to come after the delay, run the following line:
Make a SynthDef
The last step is to declare our spectral delay itself, that will be declared in a classic SuperCollider SynthDef:
Final result
Now you should be able to write the following in Tidal:
Add a global effect
This help file is based on a file found in the SuperDirt GitHub repository. Report to the original version to get more information or add your improved workflow to this page to help other users.
We want to add a new global effect on each orbit
. A global effect is definitely not the same thing as an “effect”. Global effects will always be there on the signal chain, waiting for you to tweak their parameters. Effects, on the contrary, can be used and called specifically for a pattern only. They are instantiated on demand.
We can take a look at all the global effects declared on each orbit using this command in SuperCollider:
As an example, we’ll add a global low-pass filter on every orbit
. First we need to generate a SynthDef
for it:
Building a SynthDef
Adding on the orbits
We need to add this SynthDef
on each SuperDirt orbit:
Tidal Side
Add the following line to your Tidal Boot file:
You can now have fun playing with your new effect: