Ardour  9.0-pre0-822-g12e3bc5c20
RhythmFerret Class Reference

#include <rhythm_ferret.h>

Inheritance diagram for RhythmFerret:
[legend]

Public Types

enum  AnalysisMode { PercussionOnset , NoteOnset }
 
enum  Action { SplitRegion , SnapRegionsToGrid , ConformRegion }
 

Public Member Functions

 RhythmFerret (Editor &)
 
void set_session (ARDOUR::Session *)
 
void on_response (int)
 
- Public Member Functions inherited from ArdourDialog
 ArdourDialog (const std::string &title, bool modal=false, bool use_separator=false)
 
 ArdourDialog (Gtk::Window &parent, const std::string &title, bool modal=false, bool use_separator=false)
 
 ~ArdourDialog ()
 
bool on_focus_in_event (GdkEventFocus *)
 
bool on_focus_out_event (GdkEventFocus *)
 
bool on_delete_event (GdkEventAny *)
 
void on_unmap ()
 
void on_show ()
 
void set_ui_sensitive (bool)
 
void disallow_idle ()
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual ARDOUR::Sessionsession () const
 

Protected Member Functions

void on_hide ()
 
- Protected Member Functions inherited from ArdourDialog
void pop_splash ()
 
void close_self ()
 
- Protected Member Functions inherited from ARDOUR::SessionHandlePtr
virtual void session_going_away ()
 

Private Member Functions

void clear_transients ()
 
AnalysisMode get_analysis_mode () const
 
Action get_action () const
 
void analysis_mode_changed ()
 
int get_note_onset_function ()
 
void run_analysis ()
 
int run_percussion_onset_analysis (std::shared_ptr< ARDOUR::AudioReadable > region, ARDOUR::sampleoffset_t offset, ARDOUR::AnalysisFeatureList &results)
 
int run_note_onset_analysis (std::shared_ptr< ARDOUR::AudioReadable > region, ARDOUR::sampleoffset_t offset, ARDOUR::AnalysisFeatureList &results)
 
void do_action ()
 
void do_split_action ()
 
void do_region_split (RegionView *rv, const ARDOUR::AnalysisFeatureList &)
 

Private Attributes

Editoreditor
 
Gtk::ComboBoxText operation_selector
 
Gtk::ComboBoxText analysis_mode_selector
 
Gtk::Adjustment detection_threshold_adjustment
 
Gtk::HScale detection_threshold_scale
 
Gtk::Adjustment sensitivity_adjustment
 
Gtk::HScale sensitivity_scale
 
Gtk::Button analyze_button
 
Gtk::ComboBoxText onset_detection_function_selector
 
Gtk::Adjustment peak_picker_threshold_adjustment
 
Gtk::HScale peak_picker_threshold_scale
 
Gtk::Adjustment silence_threshold_adjustment
 
Gtk::HScale silence_threshold_scale
 
Gtk::Adjustment trigger_gap_adjustment
 
Gtk::SpinButton trigger_gap_spinner
 
Gtk::Button action_button
 
std::vector< std::string > analysis_mode_strings
 
std::vector< std::string > onset_function_strings
 
std::vector< std::string > operation_strings
 
ARDOUR::AnalysisFeatureList current_results
 
ARDOUR::RegionList regions_with_transients
 

Additional Inherited Members

- Protected Attributes inherited from ArdourDialog
bool _sensitive
 
- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 

Detailed Description

Definition at line 45 of file rhythm_ferret.h.

Member Enumeration Documentation

◆ Action

Enumerator
SplitRegion 
SnapRegionsToGrid 
ConformRegion 

Definition at line 56 of file rhythm_ferret.h.

◆ AnalysisMode

Enumerator
PercussionOnset 
NoteOnset 

Definition at line 51 of file rhythm_ferret.h.

Constructor & Destructor Documentation

◆ RhythmFerret()

RhythmFerret::RhythmFerret ( Editor )

Member Function Documentation

◆ analysis_mode_changed()

void RhythmFerret::analysis_mode_changed ( )
private

◆ clear_transients()

void RhythmFerret::clear_transients ( )
private

◆ do_action()

void RhythmFerret::do_action ( )
private

◆ do_region_split()

void RhythmFerret::do_region_split ( RegionView rv,
const ARDOUR::AnalysisFeatureList  
)
private

◆ do_split_action()

void RhythmFerret::do_split_action ( )
private

◆ get_action()

Action RhythmFerret::get_action ( ) const
private

◆ get_analysis_mode()

AnalysisMode RhythmFerret::get_analysis_mode ( ) const
private

◆ get_note_onset_function()

int RhythmFerret::get_note_onset_function ( )
private

◆ on_hide()

void RhythmFerret::on_hide ( )
protected

◆ on_response()

void RhythmFerret::on_response ( int  )
virtual

Reimplemented from ArdourDialog.

◆ run_analysis()

void RhythmFerret::run_analysis ( )
private

◆ run_note_onset_analysis()

int RhythmFerret::run_note_onset_analysis ( std::shared_ptr< ARDOUR::AudioReadable region,
ARDOUR::sampleoffset_t  offset,
ARDOUR::AnalysisFeatureList results 
)
private

◆ run_percussion_onset_analysis()

int RhythmFerret::run_percussion_onset_analysis ( std::shared_ptr< ARDOUR::AudioReadable region,
ARDOUR::sampleoffset_t  offset,
ARDOUR::AnalysisFeatureList results 
)
private

◆ set_session()

void RhythmFerret::set_session ( ARDOUR::Session )
virtual

Reimplemented from ARDOUR::SessionHandlePtr.

Member Data Documentation

◆ action_button

Gtk::Button RhythmFerret::action_button
private

Definition at line 102 of file rhythm_ferret.h.

◆ analysis_mode_selector

Gtk::ComboBoxText RhythmFerret::analysis_mode_selector
private

Definition at line 75 of file rhythm_ferret.h.

◆ analysis_mode_strings

std::vector<std::string> RhythmFerret::analysis_mode_strings
private

Definition at line 104 of file rhythm_ferret.h.

◆ analyze_button

Gtk::Button RhythmFerret::analyze_button
private

Definition at line 83 of file rhythm_ferret.h.

◆ current_results

ARDOUR::AnalysisFeatureList RhythmFerret::current_results
private

Definition at line 108 of file rhythm_ferret.h.

◆ detection_threshold_adjustment

Gtk::Adjustment RhythmFerret::detection_threshold_adjustment
private

Definition at line 79 of file rhythm_ferret.h.

◆ detection_threshold_scale

Gtk::HScale RhythmFerret::detection_threshold_scale
private

Definition at line 80 of file rhythm_ferret.h.

◆ editor

Editor& RhythmFerret::editor
private

Definition at line 71 of file rhythm_ferret.h.

◆ onset_detection_function_selector

Gtk::ComboBoxText RhythmFerret::onset_detection_function_selector
private

Definition at line 87 of file rhythm_ferret.h.

◆ onset_function_strings

std::vector<std::string> RhythmFerret::onset_function_strings
private

Definition at line 105 of file rhythm_ferret.h.

◆ operation_selector

Gtk::ComboBoxText RhythmFerret::operation_selector
private

Definition at line 73 of file rhythm_ferret.h.

◆ operation_strings

std::vector<std::string> RhythmFerret::operation_strings
private

Definition at line 106 of file rhythm_ferret.h.

◆ peak_picker_threshold_adjustment

Gtk::Adjustment RhythmFerret::peak_picker_threshold_adjustment
private

Definition at line 88 of file rhythm_ferret.h.

◆ peak_picker_threshold_scale

Gtk::HScale RhythmFerret::peak_picker_threshold_scale
private

Definition at line 89 of file rhythm_ferret.h.

◆ regions_with_transients

ARDOUR::RegionList RhythmFerret::regions_with_transients
private

Regions that we have added transient marks to

Definition at line 112 of file rhythm_ferret.h.

◆ sensitivity_adjustment

Gtk::Adjustment RhythmFerret::sensitivity_adjustment
private

Definition at line 81 of file rhythm_ferret.h.

◆ sensitivity_scale

Gtk::HScale RhythmFerret::sensitivity_scale
private

Definition at line 82 of file rhythm_ferret.h.

◆ silence_threshold_adjustment

Gtk::Adjustment RhythmFerret::silence_threshold_adjustment
private

Definition at line 90 of file rhythm_ferret.h.

◆ silence_threshold_scale

Gtk::HScale RhythmFerret::silence_threshold_scale
private

Definition at line 91 of file rhythm_ferret.h.

◆ trigger_gap_adjustment

Gtk::Adjustment RhythmFerret::trigger_gap_adjustment
private

Definition at line 99 of file rhythm_ferret.h.

◆ trigger_gap_spinner

Gtk::SpinButton RhythmFerret::trigger_gap_spinner
private

Definition at line 100 of file rhythm_ferret.h.


The documentation for this class was generated from the following file: