ardour
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
RhythmFerret Class Reference

#include <rhythm_ferret.h>

Inheritance diagram for RhythmFerret:
ArdourDialog ARDOUR::SessionHandlePtr

Public Types

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

Public Member Functions

 RhythmFerret (Editor &)
 
void set_session (ARDOUR::Session *)
 
- Public Member Functions inherited from ArdourDialog
 ArdourDialog (std::string title, bool modal=false, bool use_separator=false)
 
 ArdourDialog (Gtk::Window &parent, 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 ()
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 

Protected Member Functions

void on_hide ()
 
- 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 (boost::shared_ptr< ARDOUR::Readable > region, ARDOUR::frameoffset_t offset, ARDOUR::AnalysisFeatureList &results)
 
int run_note_onset_analysis (boost::shared_ptr< ARDOUR::Readable > region, ARDOUR::frameoffset_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
 
RegionSelection regions_with_transients
 

Additional Inherited Members

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

Detailed Description

Definition at line 43 of file rhythm_ferret.h.

Member Enumeration Documentation

Enumerator
SplitRegion 
SnapRegionsToGrid 
ConformRegion 

Definition at line 53 of file rhythm_ferret.h.

Enumerator
PercussionOnset 
NoteOnset 

Definition at line 48 of file rhythm_ferret.h.

Constructor & Destructor Documentation

RhythmFerret::RhythmFerret ( Editor e)

Definition at line 71 of file rhythm_ferret.cc.

Member Function Documentation

void RhythmFerret::analysis_mode_changed ( )
private

Definition at line 160 of file rhythm_ferret.cc.

void RhythmFerret::clear_transients ( )
private

Definition at line 405 of file rhythm_ferret.cc.

void RhythmFerret::do_action ( )
private

Definition at line 319 of file rhythm_ferret.cc.

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

Definition at line 341 of file rhythm_ferret.cc.

RhythmFerret::Action RhythmFerret::get_action ( ) const
private

Definition at line 185 of file rhythm_ferret.cc.

RhythmFerret::AnalysisMode RhythmFerret::get_analysis_mode ( ) const
private

Definition at line 173 of file rhythm_ferret.cc.

int RhythmFerret::get_note_onset_function ( )
private

Definition at line 262 of file rhythm_ferret.cc.

void RhythmFerret::on_hide ( )
protected

Definition at line 397 of file rhythm_ferret.cc.

void RhythmFerret::run_analysis ( )
private

Definition at line 197 of file rhythm_ferret.cc.

int RhythmFerret::run_note_onset_analysis ( boost::shared_ptr< ARDOUR::Readable region,
ARDOUR::frameoffset_t  offset,
ARDOUR::AnalysisFeatureList results 
)
private

Definition at line 281 of file rhythm_ferret.cc.

int RhythmFerret::run_percussion_onset_analysis ( boost::shared_ptr< ARDOUR::Readable region,
ARDOUR::frameoffset_t  offset,
ARDOUR::AnalysisFeatureList results 
)
private

Definition at line 234 of file rhythm_ferret.cc.

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

Reimplemented from ARDOUR::SessionHandlePtr.

Definition at line 390 of file rhythm_ferret.cc.

Member Data Documentation

Gtk::Button RhythmFerret::action_button
private

Definition at line 94 of file rhythm_ferret.h.

Gtk::ComboBoxText RhythmFerret::analysis_mode_selector
private

Definition at line 71 of file rhythm_ferret.h.

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

Definition at line 96 of file rhythm_ferret.h.

Gtk::Button RhythmFerret::analyze_button
private

Definition at line 79 of file rhythm_ferret.h.

ARDOUR::AnalysisFeatureList RhythmFerret::current_results
private

Definition at line 100 of file rhythm_ferret.h.

Gtk::Adjustment RhythmFerret::detection_threshold_adjustment
private

Definition at line 75 of file rhythm_ferret.h.

Gtk::HScale RhythmFerret::detection_threshold_scale
private

Definition at line 76 of file rhythm_ferret.h.

Editor& RhythmFerret::editor
private

Definition at line 67 of file rhythm_ferret.h.

Gtk::ComboBoxText RhythmFerret::onset_detection_function_selector
private

Definition at line 83 of file rhythm_ferret.h.

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

Definition at line 97 of file rhythm_ferret.h.

Gtk::ComboBoxText RhythmFerret::operation_selector
private

Definition at line 69 of file rhythm_ferret.h.

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

Definition at line 98 of file rhythm_ferret.h.

Gtk::Adjustment RhythmFerret::peak_picker_threshold_adjustment
private

Definition at line 84 of file rhythm_ferret.h.

Gtk::HScale RhythmFerret::peak_picker_threshold_scale
private

Definition at line 85 of file rhythm_ferret.h.

RegionSelection RhythmFerret::regions_with_transients
private

Regions that we have added transient marks to

Definition at line 104 of file rhythm_ferret.h.

Gtk::Adjustment RhythmFerret::sensitivity_adjustment
private

Definition at line 77 of file rhythm_ferret.h.

Gtk::HScale RhythmFerret::sensitivity_scale
private

Definition at line 78 of file rhythm_ferret.h.

Gtk::Adjustment RhythmFerret::silence_threshold_adjustment
private

Definition at line 86 of file rhythm_ferret.h.

Gtk::HScale RhythmFerret::silence_threshold_scale
private

Definition at line 87 of file rhythm_ferret.h.

Gtk::Adjustment RhythmFerret::trigger_gap_adjustment
private

Definition at line 91 of file rhythm_ferret.h.

Gtk::SpinButton RhythmFerret::trigger_gap_spinner
private

Definition at line 92 of file rhythm_ferret.h.


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