Generate different types of audio-noise

6 ビュー (過去 30 日間)
Rowan Humphreys
Rowan Humphreys 2022 年 6 月 24 日
コメント済み: Mathieu NOE 2022 年 6 月 29 日
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 件のコメント
Rowan Humphreys
Rowan Humphreys 2022 年 6 月 24 日
Hi Mathieu - how does one shape a PSD?
Mathieu NOE
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
Eamon Gekakis 2022 年 6 月 24 日
audiowrite might be a good solution here.
  2 件のコメント
Rowan Humphreys
Rowan Humphreys 2022 年 6 月 24 日
Thanks Eamon, I have been using that to save the files. I meant more specifically how do you shape the PSD of the noise?
Eamon Gekakis
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.
The Transfer Function matlab function may also be usefil here.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFilter Analysis についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by