Delete extraneous labels

Help for Audacity 2.x.x on Windows.
Forum rules
ImageThis forum is for Audacity 2.x.x 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.
Briansdad1
Posts: 8
Joined: Thu Oct 24, 2013 10:02 pm
Operating System: Please select

Delete extraneous labels

Post by Briansdad1 » Thu Oct 24, 2013 10:36 pm

I like to use "Silence Finder" to divide my recordings and set label locations. Sometimes that takes a lot of tweaking of the parameters and still I might get 1 or 2 "extra" labels generated in the silent sections or in a pause in the ongoing track. I can't seem to find a way to just delete the extraneous label. Can someone help?

Bill
Attachments
Delete extra label.jpg
Delete extra label.jpg (26.51 KiB) Viewed 1837 times

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

Re: Delete extraneous labels

Post by steve » Fri Oct 25, 2013 1:08 am

Firstly, I'm currently working on "Silence Finder" to try and make it more accurate at detecting sounds/silences with less extraneous labels. Progress is good so far, but it will still take a while to complete the work.

Secondly, to delete a label, click at the end of the text in the label, then use the backspace key to delete the text. When you have deleted all of the text characters, one more backspace will delete the label.

Thirdly, I've been looking into having a right-click menu item for deleting labels as I think that this would be far easier that having to delete "all the text then one more". Is this a feature that you would like to see in Audacity?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Briansdad1
Posts: 8
Joined: Thu Oct 24, 2013 10:02 pm
Operating System: Please select

Re: Delete extraneous labels

Post by Briansdad1 » Fri Oct 25, 2013 1:16 am

First, thank you for your reply. Secondly, yes. context menu delete choice! Right clicking was the first thing I tried to find a "delete label." The next place i looked was in the tracks menu.

Thank you for your work on this project.

Bill

Edgar
Forum Crew
Posts: 1519
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 7
Contact:

Re: Delete extraneous labels

Post by Edgar » Fri Oct 25, 2013 1:22 am

Code: Select all


/// Remove Label if remove menu item is selected
void TrackPanel::OnRemoveLabel(wxCommandEvent &event)
{
   LabelTrack *lt = (LabelTrack *)mPopupMenuTarget;
   int labelIndex =  lt->getSelectedIndex();
   lt->DeleteLabel(labelIndex);
   MakeParentPushState(_("Removed Label"),
                          _("Label Remove"),
                          true /* consolidate */);
  // RefreshTrack(lt);
}

Briansdad1
Posts: 8
Joined: Thu Oct 24, 2013 10:02 pm
Operating System: Please select

Re: Delete extraneous labels

Post by Briansdad1 » Fri Oct 25, 2013 1:30 am

Nice script but i have no Idea how to use it :?
Anyway, knowing the "one more backspace" trick, all is good.

BTW, I was supposed to tell you: I'm ising windows 8 and Audacity 2.0.5

Edgar
Forum Crew
Posts: 1519
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 7
Contact:

Re: Delete extraneous labels

Post by Edgar » Fri Oct 25, 2013 4:29 am

Briansdad1 wrote:Nice script but i have no Idea how to use it :?
That was just a hint for Steve :-)>

waxcylinder
Forum Staff
Posts: 9494
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10
Location: Manchester, UK

Re: Delete extraneous labels

Post by waxcylinder » Fri Oct 25, 2013 9:47 am

steve wrote:Thirdly, I've been looking into having a right-click menu item for deleting labels as I think that this would be far easier that having to delete "all the text then one more". Is this a feature that you would like to see in Audacity?
Yes please :)

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * * Audacity Wiki * * * * *

waxcylinder
Forum Staff
Posts: 9494
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10
Location: Manchester, UK

Re: Delete extraneous labels

Post by waxcylinder » Fri Oct 25, 2013 9:51 am

The other cute trick you can use to delete a label or group of labels (but perhaps not useful in this case as the extraneous labels are clumped with a label that is required) is to select over the labels with click and drag, just in the label track and NOT in the audio track - then use the keyboard shortcut Ctrl+Alt+K

I use this a lot - and find it extremely useful.

See this page in the Audacity Manual: http://manual.audacityteam.org/o/man/la ... tml#remove

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * * Audacity Wiki * * * * *

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

Re: Delete extraneous labels

Post by steve » Fri Oct 25, 2013 12:35 pm

Edgar wrote:

Code: Select all

/// Remove Label if remove menu item is selected
void TrackPanel::OnRemoveLabel(wxCommandEvent &event)
{
   LabelTrack *lt = (LabelTrack *)mPopupMenuTarget;
   int labelIndex =  lt->getSelectedIndex();
   lt->DeleteLabel(labelIndex);
   MakeParentPushState(_("Removed Label"),
                          _("Label Remove"),
                          true /* consolidate */);
  // RefreshTrack(lt);
}
Thanks Edgar. I think we must have discussed this before because that is identical to part of my "RemoveLabels-05.patch" ;)

I doubt that there would be much enthusiasm for adding just one right click option for label tracks, but the developers don't like to review huge patches either, so perhaps I'll see if I can get it committed as "experimental" while we sort out other useful right click label track items.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

waxcylinder
Forum Staff
Posts: 9494
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10
Location: Manchester, UK

Re: Delete extraneous labels

Post by waxcylinder » Fri Oct 25, 2013 1:03 pm

steve wrote:I doubt that there would be much enthusiasm for adding just one right click option for label tracks, but the developers don't like to review huge patches either, so perhaps I'll see if I can get it committed as "experimental" while we sort out other useful right click label track items.
But you would not be creating a drop-down menu with just one item - there are already three there.

And I suspect the developers may be receptive to smaller incremental changes rather that a big bang approaching adding several menu functions all in one go.

Jus this one change would make a huge difference to usability - the current method of deletion is somewhat cack-handed with the delete-delete-delete ... - and the "cute trick" Ctrl+Alt+K whilst powerful isn't always useful. Implementing a delete label in the right-click drop-down menu would save an awful lot of clicking (especially as I do sometimes with classical pieces).

Peter.
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * * Audacity Wiki * * * * *

Post Reply