Shuffle CHOP

TouchDesigner

The Shuffle CHOP reorganizes the samples in a set of channels.

Remember, in CHOPs the first index of a channel is index number 0 even though TouchDesigner shows the index with number 1.

This operator has 4 general methods and their sub-methods:

Swap Channels and Samples

When we Swap Channels and Samples we create channels by grouping all the samples of the same index of all channels. We group all samples at sample index 0 for the first channel, all samples at sample index 1 for the second channel, etc.

Sequence Channels by Name

In general when we sequencing channels we are selecting all samples of a channel (in a horizontal way).

When sequencing channels by name in TouchDesigner, channels with similar names are grouped together, and their samples are merged sequentially. For example, earth1 and earth3 would be combined into one channel, and mars2 and mars4 into another. Furthermore, the channels are sorted alphabetically, resulting in mars2 samples being positioned before mars4, even if mars4 appears first in the input.

Sequence All Channels

Here TouchDesigner sequences all samples of all channels with the same order they appear in the input.

Sequence N Channels

N = 2

When we sequence 2 channels we sequence the samples of the 1st and 2nd channel, then the samples of the 3rd and 4th channel, then the samples of the 5th and 6th channel etc. If there are no remaining channels, samples with value 0 are inserted.

N = 3

When we sequence 3 channels we sequence the samples of the 1st, 2nd and 3rd channel, then the samples of the 4th, 5th and 6th channel, etc. If there are no remaining channels, samples with value 0 are inserted.

N = 4

Same logic as above.

N = 5

Same logic as above.

Sequence Every Nth Channel

By Sequencing every Nth Channel we select and sequence all samples of all selected channel.

N = 1

N = 2

N = 3

N = 4

With N greater than the number of channels the output stays the same.

Sequence All Samples

In general when we sequencing samples we are selecting samples sequencing the indices of the input: index 1, then index 2 etc (in a vertical way).

For Sequence All Samples, as it names suggests, we take all samples at index 1, then all samples at index 2, etc. and we put them in one channel.

Sequence All Samples by Name

In this method we group the channels by their name and we sequencing their samples one by one.

Sequence All Samples Every Nth Channel

When we Sequencing All Samples Every Nth Channel we select every Nth channel and then we are sequencing their samples.

N = 2

N = 3

N = 4

N = 5

N = 6

Split All Samples

When we split samples we select group of samples and then we make a channel out of them.

Split N Samples

We group N samples of individual channels and we make new channels. If we exceed the channel's length we select samples based on the extend mode of the channel (hold, slope, cycle, mirror, default value).

N = 2

N = 3

N = 4

N = 5

N = 6

Split Every Nth Sample

For splitting every Nth samples we group the samples every Nth channel and make new channels.

N = 2

N = 3

N = 4

N = 5

N = 8 (and extend with value 100)