Adsr script giving an eror

2 ビュー (過去 30 日間)
Kevin Buinsters
Kevin Buinsters 2020 年 10 月 28 日
コメント済み: Kevin Buinsters 2020 年 11 月 4 日
Hi i found this script to play and White a modulated sound, hoever when i run it an error occurs does somebody know what im doing wrong?

採用された回答

Maadhav Akula
Maadhav Akula 2020 年 11 月 4 日
Hi,
I think the following changes in your script should be made,
Line 9 should be
a = adsr_gen(target,gain,duration);
Also the sampling frequency for singen function should be 16000 as in your adsr_gen function fs is taken as 16000, so line 14 should be:
fs = 16000;
Hope this helps!
  1 件のコメント
Kevin Buinsters
Kevin Buinsters 2020 年 11 月 4 日
Tnx, how could I miss that 🤦🏻♂

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

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by