<< sound | Audio playback | stop >> |
soundsc(y) |
soundsc(y, Fs) |
soundsc(y, Fs, nBits) |
soundsc(y, Fs, nBits, yRange) |
column vector or m-by-2 matrix.
sample rate, a positive number, 8192 by default.
bit depth of sample values: 8, 16 (default), 24.
range of audio data to scale: | two-element vector or [-max(abs(y)),max(abs(y))] default.
soundsc scales the values of audio signal y to fit in the range from –1.0 to 1.0 and play as sound.
signal = rand(2, 44100) - 0.5;
soundsc(signal, 44110, 16)
audioplayer, playblocking, sound.
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET