Generate different types of audio-noise
조회 수: 4 (최근 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?
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에서 Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!