VMERGE

From STX Wiki
Jump to navigation Jump to search

VMERGE - merge numbers/vectors

Usage:

VMERGE1 x l s

Inputs:
x
The number or vector to be merged
l
The length of the output vector
s
The shift value
Outputs:
y
The merged vector
n
The number of finished vectors
Function:

This atom merges the input data into a larger block. E.g. it can be used to convert outputs of sample generators into a buffer.

The verge function, controlled by type of data input x

Type of x description
number The numbers are shifted into the output vector with l elements. After each s samples the outputs vector is sent to the connected atoms/SPUs. l must be greater than 1 and the shift value s must be in the range 1 <= s <= l.
vector The input vectors are shifted into the output vector with l elements. The output is sent after each input. As shift the length or the input vector is used.