Clicks when switching patterns

Hi there,
I am getting a click when changing between patterns, here is what I have:
Pattern 1 is just a drone recorded from a mono synth, it is thick and fat, I have two running on tracks 1&2 and adjust the start time to produce phase effects.
Pattern 2 is those same two samples, same start time (0) with the introduction of LFO on the sample level to produce a swelling rhythmic effect.

When I swap between the two I get a click. I have adjusted the envelope attack of both to ‘11’, plenty enough to cancel any clicks from non-zero start points on the sample.

The only way I have managed to stop it is by adjusting the length of the drones to be 15.5 instead of 16, but this gives a small gap in sound at the end of each bar.

Has anyone encountered this, and has a solution?
Cheers

It’s likely to be an issue with cutting the sound off not on a zero crossing (that is, if you imagine the waveform going up and down around the central zero line, it is being cut off when it is away from
0, which results in a click). As each track of the Digitakt is monophonic, this can happen when you cut off one sound with another (even if it’s the same sound). Unfortunately I don’t think it adds a quick fade to compensate.

Solutions that come to mind are maybe see if you can trim the sample more exactly so that it ends at a zero crossing before the end of your pattern (so if it is not already exactly however many beats long your pattern is, you’d need to first resample it at the correct length, then edit the end point).

Alternatively you could add a very quick fade in an audio editor just before the loop point (so it stops at a zero crossing), or use a different two channels on the second pattern (and have nothing on patterns 1 and 2) so that it can play out the release phase without being cut off. This would mean allocating 4 channels to your sound though which may not be acceptable!