WAVEIN2

From STX Wiki
Jump to navigationJump to search

WAVEIN2 - real-time signal input

Usage:

WAVEIN2 SR LBUF NBUF LFRM OUT X1 X2

Inputs:
SR
The sampling rate in Hz (number)
LBUF
The recording buffer length in samples (number)
NBUF
The number of recording buffers (number)
LFRM
The length of the output frame (number)
Outputs:
X1, X2
The signal frame buffers of length LFRM samples (vector)
Function:

Records a stereo signal from the selected wave in device. In the evaluation I step the frame buffers X1 and X2 are filled with the signal samples I*LFRM to (I+1)*LFRM-1.

Notes:

If LBUF is not a multiple of LFRM, it is corrected automatically.

The atoms WAVEIN2 and WAVEOUT2 should be used instead of the old atoms WAVEIN and WAVEOUT.

Navigation menu

Personal tools