Home > freetb4matlab > audio > soundsc.m

soundsc

PURPOSE ^

% error: soundsc(x, fs, limit) or soundsc(x, fs, [ lo, hi ])

SYNOPSIS ^

function data_r = soundsc(data, rate, range)

DESCRIPTION ^

% error: soundsc(x, fs, limit) or soundsc(x, fs, [ lo, hi ])
%
% soundsc(x)
%    Scale the signal so that [min(x), max(x)] -> [-1, 1], then 
%    play it through the speakers at 8000 Hz sampling rate.  The
%    signal has one column per channel.  
%
% soundsc(x,fs)
%    Scale the signal and play it at sampling rate fs.
%
% soundsc(x, fs, limit)
%    Scale the signal so that [-|limit|, |limit|] -> [-1, 1], then
%    play it at sampling rate fs.  If fs is empty, then the default
%    8000 Hz sampling rate is used.
%
% soundsc(x, fs, [ lo, hi ])
%    Scale the signal so that [lo, hi] -> [-1, 1], then play it
%    at sampling rate fs.  If fs is empty, then the default 8000 Hz
%    sampling rate is used.
%
% y=soundsc(...)
%    return the scaled waveform rather than play it.
%
% See sound for more information.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003