How to save p5.js sound file with effects?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lando19
    New Member
    • Nov 2020
    • 2

    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:

    Code:
    soundFile.setVolume(3);
    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!
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 655

    #2
    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.

    Comment

    • lando19
      New Member
      • Nov 2020
      • 2

      #3
      What library should I use?

      Comment

      • dev7060
        Recognized Expert Contributor
        • Mar 2017
        • 655

        #4
        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.

        Comment

        Working...