How do i create a upward compressor, and upward expander from the code/blocks in audio system toolbox in simulink...

1 回表示 (過去 30 日間)
Add reverse ratios to the simulink blocks code and regenerate block as such ? Not sure how to do this, any suggestions ? this seems like a simple project...

回答 (1 件)

Gabriele Bunkheila
Gabriele Bunkheila 2017 年 10 月 31 日
Hi Brent,
Thank you for posting a question on this topic. I work at MathWorks so I thought I'd take a stab at answering (I also had issues with notifications, hence the late reply!).
My first suggestion would be to try re-creating your own block. Most blocks in Audio System Toolbox are written using MATLAB code, which you can easily inspect to get a bit of inspiration. For example, try
>> edit compressor
and navigate to the computeGain method (make sure you don't modify the shipping code though!).
To create your own Simulink block based on MATLAB code, you can use the MATLAB System Block or the MATLAB Function Block - Start from the latter if you are more comfortable writing functions than objects.
I hope this helps.
Regards,
Gabriele.
  1 件のコメント
Brent Cartwright
Brent Cartwright 2017 年 10 月 31 日
Thanks Gabriele, Ill try when i get a chance. peace hope love and thanks for the reply.

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

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by