How to trim a sound in p5.js

edited January 2018 in p5.js

Hi, I'm recording sound file from computer mic with p5.SoundRecorder(); I display the waveform, and the user is then able to select the part he want to listen (I use loop([startTime],[rate],[amp],[cueLoopStart],[duration]).

I would like to be able to save the part the user select as an audio file. I guess it shouldn't be so complicated : i guess I have to copy selected audio frames as a new audio file, but I don't find how to do this...

Somebody can help with this?

Thanks for your help!

A.

Sign In or Register to comment.