diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 613c91f2b8..c669d6b261 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -874,6 +874,8 @@ Editor::Editor () Config->ParameterChanged.connect (mem_fun (*this, &Editor::parameter_changed)); Route::SyncOrderKeys.connect (mem_fun (*this, &Editor::sync_order_keys)); + _last_normalization_value = 0; + constructed = true; instant_save (); } diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 66b65e7470..7f6aca7fbd 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -1172,6 +1172,7 @@ class Editor : public PublicEditor void reverse_region (); void strip_region_silence (); void normalize_region (); + double _last_normalization_value; void denormalize_region (); 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 fcf9937e90..0530664acd 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4594,6 +4594,7 @@ Editor::normalize_region () spin.set_increments (0.1, 1); spin.set_value (0); hbox.pack_start (spin); + spin.set_value (_last_normalization_value); hbox.pack_start (*manage (new Label (_("dbFS")))); hbox.show_all (); dialog.get_vbox()->pack_start (hbox); @@ -4620,6 +4621,8 @@ Editor::normalize_region () commit_reversible_command (); track_canvas->get_window()->set_cursor (*current_canvas_cursor); + + _last_normalization_value = spin.get_value (); }