soundsc
Scale data and play as sound.
Syntax
soundsc(y)
soundsc(y, Fs)
soundsc(y, Fs, nBits)
soundsc(y, Fs, nBits, yRange)
Input argument
y - column vector or m-by-2 matrix.
Fs - sample rate, a positive number, 8192 by default.
nBits - bit depth of sample values: 8, 16 (default), 24.
yRange - range of audio data to scale: | two-element vector or [-max(abs(y)),max(abs(y))] default.
Description
soundsc scales the values of audio signal y to fit in the range from –1.0 to 1.0 and play as sound.
Example
See also
audioplayer, playblocking, sound.
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated