How Can Custom Samples be Used?

To use custom samples with TidalCycles and SuperDirt the samples must be loaded into SuperDirt.  To do this, enter the following into the SuperDirt IDE

~dirt.loadSoundFiles("full/path/to/directory/*")

Be sure to include the * as a wildcard so that all sub-directories of samples  in the directory are loaded.

Position the cursor in the line and press Shift + Enter to evaluate the code.  You should see something like

loading 52 sample banks

along with the names of any folders within the directory and the number of samples loaded for each sample directory.

Now the samples can be referenced by directory name and used in TidalCycles.

Leave a Reply

Your email address will not be published. Required fields are marked *