Programmer Guide/SPU Reference/VMERGE: Difference between revisions
From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import) |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 34: | Line 34: | ||
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. | 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 <var>x</var>{| | The verge function, controlled by type of data input <var>x</var> | ||
{| | |||
|- | |- | ||
|Type of x | |Type of x |
Latest revision as of 09:45, 28 October 2015
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. |