Array Expand Compress

Resizes an array by expanding or compressing it using interpolation. The output size equals factor x input size.

For example, a 512-element input with factor = 0.5 produces a 256-element output, and factor = 2 produces a 1024-element output.

Useful for stretching or shrinking spectra, lookup tables, or any array data.

input array

expand with factor=2

expand with factor=0.5

Settings

bypass

Bypasses the module processing when activated (ON).

  • OFF (0): Module processes normally
  • ON (1): Input passes directly to output without processing

array in

Array input flow(s).

array out

Array output flow(s).

factor

Compress expand factor:

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

mode

Interpolation mode used to calculate the new array:

  • linear interpolation -- blends between neighboring values for smooth results. Best for audio and continuous data.
  • accumulation -- adds input values into the nearest output bin. Useful for histograms or spectral data.
     newIndex = trunc(factor*oldIndex);
     output[newIndex] := output[newIndex]+input[oldIndex]
  • no interpolation -- nearest-neighbor mapping, no blending. Best for arrays of discrete values such as colors or indices.
     inIndex = trunc(outIndex/factor);
     output[outIndex] := input[inIndex]
Common Settings

info

show manual

Opens the web browser to display information or help about the selected object, if it exists.

For more details about information/help creation, see create-help-file.

description

Description of the module for internal help purposes only. The description is not displayed in the interface.

ID's

visible only in god mode, see setup-panel-tab-expert.

unique ID

Current private ID for this control used to identify the object.

preset ID

Current private preset ID for this control used for presets.

recreate ID

If you experience difficulties in Polyphonic mode, try to recreate new id(s) with this button.

repair ID s

Each Patch shared on the local network uses its own ID (identification number). If you experience issues of Patches that don't send information to the good target, this button will rebuild all these id's.

Object Remote Address

absolute

Absolute remote address. see objects-address.

local

Local to the current patch remote address. see objects-address.

user addr

User defined remote address. see objects-address.

See also

version 7.0.250121

Edit All Pages