How do you use the waveshapernode in the web audio api? particular the curve Float32Array attribute?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Feel free to look at an example here.
In detail, I create a waveshaper curve with this function:
Then “load” it in a waveshaper node like this:
Everytime I need to change the distortion parameter, I re-create the waveshaper curve:
(I use distCorrect to make the distortion sound nicer, values found euristically).
You can find the algorithm I use to create the waveshaper curve here