469,953 Members | 1,936 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,953 developers. It's quick & easy.

How to save p5.js sound file with effects?

I am making a simple audio recorder and editor with p5.js and p5.sound. I have searched the docs and Google for this answer and have not found it. So I am asking the professionals. I want to know how to save the p5.js sound file with the effects added. For example, I tried this:

Expand|Select|Wrap|Line Numbers
  1. soundFile.setVolume(3);
  2. save(soundFile, "mySound.wav");
It will play like that, but it will not save with the volume effect added. Is there any way to do this? If so, how? Thanks for all your help in advance!
Nov 5 '20 #1
3 3528
dev7060
535 Expert 512MB
It will play like that, but it will not save with the volume effect added.
Because it just sets the volume for playing and doesn't manipulate the properties of the original audio.

I have searched the docs and Google for this answer and have not found it.
You may need another library that is capable of making changes to the audio file especially the amplification and modulation part.
Nov 11 '20 #2
What library should I use?
Nov 11 '20 #3
dev7060
535 Expert 512MB
What library should I use?
I have used p5 before but never worked on audio manipulation so I wouldn't know. Own research using a search engine would help.
Nov 12 '20 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Paul Moore | last post: by
3 posts views Thread by Franklin P Patchey | last post: by
2 posts views Thread by Ehsan Sadeghi | last post: by
1 post views Thread by Lam | last post: by
6 posts views Thread by martin1 | last post: by
1 post views Thread by sumitkumarsingh | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.