How to make a audio file (.wav) from a colored noise object?
Show older comments
Hi,
i would like to make an audio (.wav) file for pink noise. the length of the file should be 8 mins. and i want fs=44100. using the Matlab documentation i could make a colored noise object. now i want to make an audio file from it. so far my code is this-
cn = dsp.ColoredNoise(1,44100,1,'Color','pink');
noiseOut= cn();
noiseOut creates only one sample or one frame of coloured noise data. now how do i make/write an audio file of length 8 mins and save it as a .wav file?
Accepted Answer
More Answers (0)
Categories
Find more on Signal Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!