Adsr script giving an eror
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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!
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!