Synthesize and Channelize Audio
Synthesize a series of four stereo signals into a broadband signal by using the Channel Synthesizer block. At the receiving end of the model, split this broadband signal back into the individual narrowband signals by using the Channelizer block.
The inputs to the model are four stereo signals.
Each signal has a size of 1024-by-2 samples. The two channels represent the left channel and the right channel of the stereo signal. To store the stereo channels, each signal is converted into complex, and multiplexed by a Matrix Concatenate block to form a 1024-by-4 matrix. The Channel Synthesizer block synthesizes these four signals into a single broadband signal of size 4096-by-1. The Channelizer block that follows splits this broadband signal back into narrow subbands. The output of the Channelizer block is a 1024-by-4 matrix, with each channel representing a narrow band.
Open the model.
model = fullfile(matlabroot,'examples','dsp','channelizer_synthesizer'); open_system(model)
Select the audio signal you want to listen to and play this signal using the Audio Device Writer block.
Run the model. View the spectra of the input, muxed, and output signals.
The Muxed Spectrum window shows the spectrum of the broadband signal. The Channelized Spectrum window shows the spectra of the four narrowband signals. The input and output spectra match for any selected signal.
If you make any changes to the model, save the model before closing the model.