summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-09-09 16:39:33 +0000
committerCarl Hetherington <carl@carlh.net>2009-09-09 16:39:33 +0000
commit58f5ad640672d3ac0193b36befaa8d53dddefecf (patch)
treee1157ebf92169ef93435897130cf02673094e2df
parent33860700148e2ea34c0f5cc259c4d551d05db635 (diff)
Clean up some confusion about offering a denormalize menu option when a region may not necessarily be normalized.
git-svn-id: svn://localhost/ardour2/branches/3.0@5649 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/editor.cc9
-rw-r--r--gtk2_ardour/editor.h2
-rw-r--r--gtk2_ardour/editor_ops.cc4
3 files changed, 7 insertions, 8 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index e3fdb84ee8..394a4611d3 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -1815,10 +1815,9 @@ Editor::add_region_context_items (StreamView* sv, boost::shared_ptr<Region> regi
items.push_back (SeparatorElem());
}
- if (ar->scale_amplitude() != 1.0f) {
- items.push_back (MenuElem (_("DeNormalize"), mem_fun(*this, &Editor::denormalize_region)));
- } else {
- items.push_back (MenuElem (_("Normalize"), mem_fun(*this, &Editor::normalize_region)));
+ items.push_back (MenuElem (_("Normalize"), mem_fun(*this, &Editor::normalize_region)));
+ if (ar->scale_amplitude() != 1) {
+ items.push_back (MenuElem (_("Reset Gain"), mem_fun(*this, &Editor::reset_region_scale_amplitude)));
}
} else if (mr) {
@@ -1826,7 +1825,7 @@ Editor::add_region_context_items (StreamView* sv, boost::shared_ptr<Region> regi
items.push_back (SeparatorElem());
}
- items.push_back (MenuElem (_("Strip silence..."), mem_fun (*this, &Editor::strip_region_silence)));
+ items.push_back (MenuElem (_("Strip Silence..."), mem_fun (*this, &Editor::strip_region_silence)));
items.push_back (MenuElem (_("Reverse"), mem_fun(*this, &Editor::reverse_region)));
items.push_back (SeparatorElem());
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h
index 9f791e5901..56a7755051 100644
--- a/gtk2_ardour/editor.h
+++ b/gtk2_ardour/editor.h
@@ -1079,7 +1079,7 @@ class Editor : public PublicEditor
void strip_region_silence ();
void normalize_region ();
double _last_normalization_value;
- void denormalize_region ();
+ void reset_region_scale_amplitude ();
void adjust_region_scale_amplitude (bool up);
void quantize_region ();
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index d27727348d..d23c83eaf1 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -4687,7 +4687,7 @@ Editor::normalize_region ()
void
-Editor::denormalize_region ()
+Editor::reset_region_scale_amplitude ()
{
if (!session) {
return;
@@ -4701,7 +4701,7 @@ Editor::denormalize_region ()
return;
}
- begin_reversible_command ("denormalize");
+ begin_reversible_command ("reset gain");
for (RegionSelection::iterator r = rs.begin(); r != rs.end(); ++r) {
AudioRegionView* const arv = dynamic_cast<AudioRegionView*>(*r);