This page will present you all the functions that can be used to slice, cut, reverse or explode your audio samples, incoming signals or oscillators. Each function will be presented following the same model:
- Type signature: how the function is declared on the Haskell side.
- Description: verbal description of the function.
- Examples: a small list of examples that you can copy/paste in your editor.
chop cuts each sample into the given number of parts, allowing you to explore a technique known as 'granular synthesis'. It turns a pattern of samples into a pattern of parts of samples. For example:
In the above, each sample is chopped into 16 bits, resulting in 64 (16*4) events. You can pattern that first parameter:
You end up with a pattern of the chopped up bits of samples. You'll already be able to hear this more clearly if you for example reverse the pattern, as you'll reverse the order of the sample parts:
Lets try that reverse in just one speaker:
Different values of
chop can yield very different results, depending on the samples used:
You can also use
striate) with very long samples, to cut it into short chunks and pattern those chunks. The following cuts a sample into 32 parts, and plays it over 8 cycles:
loopAt takes care of changing the speed of sample playback so that the sample fits in the given number of cycles perfectly. As a result, in the above the granules line up perfectly, so you can’t really hear that the sample has been cut into bits. Again, this becomes more apparent when you do further manipulations of the pattern, for example
rev to reverse the order of the cut up bits:
striate is a kind of granulator, cutting samples into bits in a similar to
chop, but the resulting bits are organised differently. For example:
This plays the loop the given number of times, but triggering progressive portions of each sample. So in this case it plays the loop three times, the first time playing the first third of each sample, then the second time playing the second third of each sample, and then finally the last third of each sample.. Compare this with
You can hear that the striate version 'interlaces' the cut up bits of samples together, whereas the chop version plays the bits from each chopped up sample in turn. It might be worth listening to the samples without granulation, in case that helps understand what’s happening in the above:
striateBy (formerly called
striate') is a variant of
striate, with an extra parameter, which specifies the length of each part.
striate still scans across the sample over a single cycle, but if each bit is longer, it creates a sort of stuttering effect. For example the following will cut the bev sample into 32 parts, but each will be 1/16th of a sample long:
Note that striate uses the
end parameters internally. This means that if you’re using
striateBy you probably shouldn’t also specify begin or end.
slice is similar to
striate, in that it's used to slice samples up into bits. The difference is that it allows you to rearrange those bits as a pattern.
The above slices the sample into eight bits, and then plays them backwards, equivalent of applying
rev $ chop 8. Here's a more complex example:
Note that the order of the first two parameters changed since tidal version
splice is similar to slice, but the slices are automatically pitched up or down to fit their 'slot'.
randslice chops the sample into the given number of pieces and then plays back a random one each cycle:
fast to get more than one per cycle;
chew works the same as bite, but speeds up/slows down playback of sounds as well as squeezing / contracting the slices of pattern.
loopAt makes sample fit the given number of cycles. Internally, it works by setting the unit control to "c", changing the playback speed of the sample with the speed parameter, and setting the density of the pattern to match.
It’s a good idea to use this in conjuction with
chop, so the break is chopped into pieces and you don’t have to wait for the whole sample to start/stop.
Like all Tidal functions, you can mess about with this considerably. The below example shows how you can supply a pattern of cycle counts to
smash is a combination of
striate - it cuts the samples into the given number of bits, and then cuts between playing the loop at different speeds according to the values in the list. So this:
Is a bit like this:
smash but based on
chop instead of
for a dramatic difference.
segment 'samples' the pattern at a rate of
n events per cycle. Useful for turning a continuous pattern into a discrete one. In this example, the pattern originates from the shape of a sine wave, a continuous pattern. Without segment the samples will get triggered at an undefined frequency which may be very high.
segment used to be known as
discretise. The old name remains as an alias and will still work, but may be removed or repurposed in a future version of Tidal.
sig takes a function of time and turns it into a pattern. It's very useful for creating continuous patterns such as
perlin. For example,
saw is defined as