From 828d1245c997ab54f9b589ef76cb2b36b99388d6 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 6 Jun 2022 14:04:43 -0500 Subject: [PATCH] range analysis was only accessible by context-click; add to main menu --- gtk2_ardour/ardour.menus.in | 6 ++++++ gtk2_ardour/editor_actions.cc | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/gtk2_ardour/ardour.menus.in b/gtk2_ardour/ardour.menus.in index 2554e6493a..7c56127275 100644 --- a/gtk2_ardour/ardour.menus.in +++ b/gtk2_ardour/ardour.menus.in @@ -257,6 +257,12 @@ + + + + + + diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc index 9b7062e3da..b8ce9cd073 100644 --- a/gtk2_ardour/editor_actions.cc +++ b/gtk2_ardour/editor_actions.cc @@ -170,6 +170,7 @@ Editor::register_actions () ActionManager::register_action (editor_menu_actions, X_("SelectMenu"), _("Select")); ActionManager::register_action (editor_menu_actions, X_("SeparateMenu"), _("Separate")); ActionManager::register_action (editor_menu_actions, X_("ConsolidateMenu"), _("Consolidate")); + ActionManager::register_action (editor_menu_actions, X_("AnalyzeMenu"), _("Analyze")); ActionManager::register_action (editor_menu_actions, X_("SetLoopMenu"), _("Loop")); ActionManager::register_action (editor_menu_actions, X_("SetPunchMenu"), _("Punch")); ActionManager::register_action (editor_menu_actions, X_("Solo"), _("Solo")); @@ -402,6 +403,13 @@ Editor::register_actions () act = reg_sens (editor_actions, "editor-consolidate", _("Consolidate Range"), sigc::bind (sigc::mem_fun(*this, &Editor::bounce_range_selection), ReplaceRange, false)); ActionManager::time_selection_sensitive_actions.push_back (act); + act = reg_sens (editor_actions, "editor-analyze-loudness", _("Loudness Analysis"), sigc::mem_fun(*this, &Editor::loudness_analyze_range_selection)); + ActionManager::time_selection_sensitive_actions.push_back (act); + act = reg_sens (editor_actions, "editor-analyze-spectrum", _("Spectral Analysis"), sigc::mem_fun(*this, &Editor::spectral_analyze_range_selection)); + ActionManager::time_selection_sensitive_actions.push_back (act); + act = reg_sens (editor_actions, "editor-loudness-assistant", _("Loudness Assistant"), sigc::bind (sigc::mem_fun(*this, &Editor::loudness_assistant), true)); + ActionManager::time_selection_sensitive_actions.push_back (act); + reg_sens (editor_actions, "editor-cut", _("Cut"), sigc::mem_fun(*this, &Editor::cut)); reg_sens (editor_actions, "editor-delete", _("Delete"), sigc::mem_fun(*this, &Editor::delete_)); reg_sens (editor_actions, "alternate-editor-delete", _("Delete"), sigc::mem_fun(*this, &Editor::delete_));