Generation of Audio Test Signals with Matlab Implementation
The present submission is a set of seven Matlab functions that provides a generation of wave packets of:
1) Sine wave signal
2) Square wave signal
3) Chirp signal
4) Pink noise signal
5) White noise signal
6) Sinc wave signal (sin(x)/x) (as odd or even function)
Each function passes the generated signal to the analog output of the sound card so one can use it for acoustic, audio or other measurements. The signals could be followed by pause with arbitrary duration, and each signal could be formed in wave packets.
A brief example is given to clarify the usage of the functions. The input and output arguments are given in the beginning of each function.
Warning: The code is available only for sound devices that can be used with the Legacy Interface on 32-bit MATLAB.
References:
[1] Signal Processing Toolbox User’s Guide.pdf. The MathWorks Inc, 1999.
[2] Data Acquisition Toolbox User’s Guide.pdf. The MathWorks Inc, 2005.