Borrar filtros
Borrar filtros

Adsr script giving an eror

4 visualizaciones (últimos 30 días)
Kevin Buinsters
Kevin Buinsters el 28 de Oct. de 2020
Comentada: Kevin Buinsters el 4 de Nov. de 2020
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?

Respuesta aceptada

Maadhav Akula
Maadhav Akula el 4 de Nov. de 2020
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 comentario
Kevin Buinsters
Kevin Buinsters el 4 de Nov. de 2020
Tnx, how could I miss that 🤦🏻♂

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by