ASIGIN

From STX Wiki
Jump to navigation Jump to search

ASIGIN - read signal (blocked)

This atom reads the signal from the shell-wave-item and stores the signal in the output buffers. The signal is read block by block without overlap. If the length of the wave-item is not a multiple of L the last block is filled with zeros. This function can be used to feed signal to simple time domain signal processing methods (like copy, amplify, ...). The values of the outputs SR and N are set during the initialization. The output I is initialized with 0 and incremented by 1 after each read cycle. The input REV can be used to reverse the signal in time.

Usage:

ASIGIN sig rev l k d

Inputs:
sig
The name of the shell wave item. There is no default.
rev
The reverse read direction (NO|0, YES|1). The default is NO.
l
The number of samples per block. This must be greater or equal to 4. The default is 1024.
k
The amplification factor. The default is 1.
d
The differentiation factor. This is any value from 0 to 1. The default is 1.
Outputs:
Xi
The signal of the channel i. This signal has l samples.
sr
The sampling rate in Hz.
n
The number of blocks.
i
The block counter.