Array Expand/Compress

Changes the size of an array by compress or expand its elements. Provides a linear interpolation.

For example, with a 512 array length in input and Factor of 0.5 we obtain a 0.5*512=256 array length output.

Can be used to expand or compress the spectra of a sound.

input array expand with factor=2 expand with factor=0.5


Bypasses the module.

array in

input array.

array out

compressed / expanded array.


compress expand factor:

  • if factor < 1, provides a compression.
  • if factor > 1, provides an expansion.
  • if factor = 1, no changes.