I'm trying to merge 2 identical audio files. The Audio file is nothing more than white noise generated using MATLAB commands
block_len = 4096; Y = wgn(block_len, 1, 5, 120, 'dBm', 'real');
Rather than generating a longer block of data, i would like to make a longer file by concatenating the block of 4096 samples.
Therefore I tried a simple,
datat = [Y;Y;Y;Y;Y]; soundsc(datat)
The output file is not smooth enough. There is an audible periodic pattern that indicates the multiple 'Y' segments. I believed this could be due to the imperfect combination at the beginning and End of each Y segment.
Therefore I added the lines
Y(1) = 0; Y(end) = 0;
Concatenating after these still does not have a smoothness to it. I searched on stackoverflow and found this link.
I tried the code based on the link above. I still can't get a smoothness to the white noise. What other methods can i try to make the sound as smooth as possible?