WAVEIN2

From STX Wiki
< Programmer Guide‎ | SPU Reference
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump 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.