1
#ifndef __gtk2_ardour_rhythm_ferret_h__
2
#define __gtk2_ardour_rhythm_ferret_h__
5
#include <gtkmm/scale.h>
6
#include <gtkmm/spinbutton.h>
7
#include <gtkmm/radiobutton.h>
8
#include <gtkmm/radiobuttongroup.h>
9
#include <gtkmm/frame.h>
10
#include <gtkmm/image.h>
11
#include <gtkmm/comboboxtext.h>
12
#include <gtkmm/button.h>
13
#include <gtkmm/label.h>
15
#include "ardour_dialog.h"
24
class RhythmFerret : public ArdourDialog {
26
/* order of these enums must match the _analyse_mode_strings
40
RhythmFerret (PublicEditor&);
43
void set_session (ARDOUR::Session*);
48
Gtk::HBox upper_hpacker;
49
Gtk::HBox lower_hpacker;
51
Gtk::Frame operation_frame;
52
Gtk::Frame selection_frame;
53
Gtk::Frame ferret_frame;
55
Gtk::VBox op_logo_packer;
61
Gtk::RadioButtonGroup operation_button_group;
62
Gtk::RadioButton region_split_button;
63
Gtk::RadioButton tempo_button;
64
Gtk::RadioButton region_conform_button;
68
Gtk::VBox ferret_packer;
69
Gtk::ComboBoxText analysis_mode_selector;
70
Gtk::Label analysis_mode_label;
71
Gtk::Adjustment detection_threshold_adjustment;
72
Gtk::HScale detection_threshold_scale;
73
Gtk::Label detection_threshold_label;
74
Gtk::Adjustment sensitivity_adjustment;
75
Gtk::HScale sensitivity_scale;
76
Gtk::Label sensitivity_label;
77
Gtk::Button analyze_button;
78
Gtk::Adjustment trigger_gap_adjustment;
79
Gtk::SpinButton trigger_gap_spinner;
80
Gtk::Label trigger_gap_label;
82
Gtk::Label operation_clarification_label;
83
Gtk::Button action_button;
85
std::vector<std::string> analysis_mode_strings;
87
ARDOUR::AnalysisFeatureList current_results;
89
AnalysisMode get_analysis_mode () const;
90
Action get_action() const;
93
int run_percussion_onset_analysis (boost::shared_ptr<ARDOUR::Readable> region, nframes64_t offset, ARDOUR::AnalysisFeatureList& results);
96
void do_split_action ();
97
void do_region_split (RegionView* rv, const ARDOUR::AnalysisFeatureList&);
100
#endif /* __gtk2_ardour_rhythm_ferret_h__ */