[SOLVED] How to extract multiple segments from audio file?

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
kozikowski
Forum Staff
Posts: 69367
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: [newbie] How to extract multiple segments from audio fil

Post by kozikowski » Sun Dec 27, 2015 7:32 pm

I don't think there is any provision to do that. Delete "everything I don't want" is dangerous. One wrong move and your show goes away. Isn't there an "Invert Selection?" One of my editors can do that.

Labels became more important than you would think because particularly if you're used to a video editor, Audacity doesn't have edit markers. The only way to mark an action region is Labels.

Koz

Shohreh
Posts: 48
Joined: Mon Apr 02, 2012 4:32 pm
Operating System: Please select

Re: [newbie] How to extract multiple segments from audio fil

Post by Shohreh » Sun Dec 27, 2015 7:39 pm

It doesn't matter: That's what CTRL+Z is for.

Yes, I was looking for either a "Delete unselected parts", or "Invert Selection" followed by "Delete selected parts", but so far, nothing.

Surely, there must quite a few users like me who need to 1) select some parts they want to keep, and 2) have Audacity remove the rest of the audio.

kozikowski
Forum Staff
Posts: 69367
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: [newbie] How to extract multiple segments from audio fil

Post by kozikowski » Sun Dec 27, 2015 7:55 pm

I think the closest we get is File > Export Selection.

Koz

Shohreh
Posts: 48
Joined: Mon Apr 02, 2012 4:32 pm
Operating System: Please select

Re: [newbie] How to extract multiple segments from audio fil

Post by Shohreh » Sun Dec 27, 2015 7:55 pm

But File > Export selection would export each audio section, re-encoding the audio in the process, before having to re-combine the parts, and re-encoding them. Definitely not what I want.

Found a work-around:
  1. Launch a second instance of Audacity
  2. In the first instance, create regions for each segment you want to keep
  3. For each region: Select it by clicking on its label in the Label Track, select Edit > Copy, switch to the other instance of Audacity, select Edit > Paste
Maybe there's a faster way, but it does the job.

Thank you.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: [SOLVED] How to extract multiple segments from audio fil

Post by steve » Sun Dec 27, 2015 9:52 pm

Shohreh wrote:But File > Export selection would export each audio section, re-encoding the audio in the process,
It will only encode if you choose a format that requires encoding. If you choose 32-bit float WAV format then the exported file is identical to the original audio in Audacity.
Shohreh wrote:Found a work-around:
1) Launch a second instance of Audacity
You can also do it in the same Audacity session. Just create a new track (Tracks menu) and then copy and paste parts from the first track into the second track. To listen to just one of the tracks, use the "Solo" button on the panel on the left end of the track (easiest if you set the solo button behaviour to "simple" (Edit menu > Preferences > Tracks).

If you want to crossfade the audio clips there are two effects that make this simple to do:
http://manual.audacityteam.org/o/man/cr ... clips.html
http://manual.audacityteam.org/o/man/cr ... racks.html

The reason that I initially suggested creating separate files for each part is that if you change your mind about which parts in which order, it can be much easier if you are working with discrete files. There are however many ways to do this type of work and some approaches are more efficient with some projects than others. The "multiple files" approach is nice because it provides lots of flexibility and safety.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Shohreh
Posts: 48
Joined: Mon Apr 02, 2012 4:32 pm
Operating System: Please select

Re: [SOLVED] How to extract multiple segments from audio fil

Post by Shohreh » Sun Dec 27, 2015 11:25 pm

Thanks much. A bit more involved than I expected this to be, but it does the job.

After adding a stereo audio track, I notice that hitting the End key jumps to the end of the imported audio track, even after making sure the focus is put on the new audio track: Is there a way to jump to the end of the new audio track instead?

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: [SOLVED] How to extract multiple segments from audio fil

Post by steve » Mon Dec 28, 2015 12:41 am

Shohreh wrote: Is there a way to jump to the end of the new audio track instead?
"K" (Moves the cursor to the end of the selected track)
See: http://manual.audacityteam.org/o/man/ke ... rence.html
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: [SOLVED] How to extract multiple segments from audio fil

Post by Gale Andrews » Mon Dec 28, 2015 2:23 am

kozikowski wrote:Isn't there an "Invert Selection?"
If Edit > Labeled Audio had a Trim command, or if there was Tracks > Invert Labels, the task would have been much easier.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Shohreh
Posts: 48
Joined: Mon Apr 02, 2012 4:32 pm
Operating System: Please select

Re: [SOLVED] How to extract multiple segments from audio fil

Post by Shohreh » Mon Dec 28, 2015 6:47 pm

I'm stuck at how to crossfade the parts I copy/pasted from the full file above to the new audio tracks below:
Audacity.crossfade.tracks.jpg
Audacity.crossfade.tracks.jpg (107.15 KiB) Viewed 786 times
Effect > Crossfade Tracks says "Nyquist: Only 1 track selected. 'Crossfade Tracks' requires 2 tracks."

OTOH, although it looks like what I need, the Crossfade Clips article on the Audacity site contains no URL from which to download this plug-in.
---
Edit: clipfix.ny is listed in "c:\Program Files\Audacity\Plug-Ins\", but Edit > Preferences seems to show no way to enable/disable plug-ins: Why is Crossfade Clip not listed in the Effect menu?

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: [SOLVED] How to extract multiple segments from audio fil

Post by steve » Mon Dec 28, 2015 8:07 pm

Shohreh wrote:OTOH, although it looks like what I need, the Crossfade Clips article on the Audacity site contains no URL from which to download this plug-in.
It is included in Audacity 2.1.1
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked