Generate different types of audio-noise
5 次查看(过去 30 天)
显示 更早的评论
Given a general shape of a intensity-frequency relationship, I want to be able to generate a corresponding noise .wav file. Is there a way of doing this?
I would then like to produce similar graphs for audiofiles I have recorded.
EDIT: How do I change the PSD of noise?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1044480/image.png)
Thank you very much.
3 个评论
Mathieu NOE
2022-6-29
Hello Rowan
see the magnitude vs frequency shape - use that to create a FIR or IIR filter using invfreqs or invfreqz, then pass a white noise (random numbers) into that "shaping" filter and you're done !
回答(1 个)
Eamon Gekakis
2022-6-24
audiowrite might be a good solution here.
2 个评论
Eamon Gekakis
2022-6-24
Generally, a transfer function or filter stack will be used to "shape" the PSD data from my understanding, a combination of peak filters, bandpass filters, notches, etc.
This may be a useful write-up on matlab filter design, using the designfilt signal processing toolbox function.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!