Copy and Paste parts of a audio file

Hi. I am new in sound processing and Processing too. I want to copy pieces from a audio file and paste in a different order and save it. How I can make this? Wich sound library is better for do it? Can you orient me in the right direction? Thank you.

Hello,

There is the Processing Sound library.

I always start by looking through what is available in the resources.

There are resources (tutorials, references, examples, etc.) here:
https://processing.org/

And examples that come with Processing:

image

And the JavaDocs:
https://processing.github.io/processing-sound/processing/sound/SoundFile.html

The Minim library may be of interest.

image

I was able to set loop points and play once with some changes to code.
You may be able to cue and play what you want with this strategy.

This would require more exploration.
I just took a quick look.

:)

1 Like

Thanks, glv. Iā€™m fighting with Sound, Beads, Minim and others and I learned a lot but not how cut segments of a sound and rewrite in different order. ;(

1 Like

Thanks. I go to try with cue and record or something like this. :smiley:

1 Like

Hello,

In the setLoopPoints example I did this to play once:

void keyPressed()
  {
  snip.loop(0);
  }

I was experimenting and got lucky!
I am sure there is a reference for that somewhere.

Have fun!

:)

Thanks, glv. Hav fun you too. :smiley:

I think snip.loop() is the answer for all troubles of the humanity.