필터 지우기
필터 지우기

Adsr script giving an eror

조회 수: 4 (최근 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개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by