Ardour  9.0-pre0-582-g084a23a80d
MidiStreamView Class Reference

#include <midi_streamview.h>

Inheritance diagram for MidiStreamView:
[legend]

Public Member Functions

 MidiStreamView (MidiTimeAxisView &)
 
 ~MidiStreamView ()
 
void get_regions_with_selected_data (RegionSelection &)
 
void set_layer_display (LayerDisplay)
 
void redisplay_track ()
 
double contents_height () const
 
double y_position () const
 
RegionViewcreate_region_view (std::shared_ptr< ARDOUR::Region >, bool, bool)
 
bool paste (Temporal::timepos_t const &pos, const Selection &selection, PasteContext &ctx)
 
void suspend_updates ()
 
void resume_updates ()
 
ArdourCanvas::Containerregion_canvas () const
 
void parameter_changed (std::string const &)
 
uint8_t get_preferred_midi_channel () const
 
void record_layer_check (std::shared_ptr< ARDOUR::Region >, samplepos_t)
 
void set_note_highlight (bool)
 
- Public Member Functions inherited from StreamView
virtual ~StreamView ()
 
RouteTimeAxisViewtrackview ()
 
const RouteTimeAxisViewtrackview () const
 
void attach ()
 
void set_zoom_all ()
 
int set_position (gdouble x, gdouble y)
 
virtual int set_height (double)
 
virtual int set_samples_per_pixel (double)
 
gdouble get_samples_per_pixel () const
 
virtual bool can_change_layer_display () const
 
LayerDisplay layer_display () const
 
uint32_t get_region_color () const
 
void apply_color (uint32_t, ColorTarget t)
 
void apply_color (Gdk::Color const &, ColorTarget t)
 
uint32_t num_selected_regionviews () const
 
RegionViewfind_view (std::shared_ptr< const ARDOUR::Region >)
 
void foreach_regionview (sigc::slot< void, RegionView * > slot)
 
void foreach_selected_regionview (sigc::slot< void, RegionView * > slot)
 
void set_selected_regionviews (RegionSelection &)
 
void _get_selectables (Temporal::timepos_t const &, Temporal::timepos_t const &, double, double, std::list< Selectable * > &, bool within)
 
void get_inverted_selectables (Selection &, std::list< Selectable * > &results)
 
void get_regionviews_at_or_after (Temporal::timepos_t const &, RegionSelection &)
 
void add_region_view (std::weak_ptr< ARDOUR::Region >)
 
void region_layered (RegionView *)
 
double child_height () const
 
ARDOUR::layer_t layers () const
 
void check_record_layers (std::shared_ptr< ARDOUR::Region >, ARDOUR::samplepos_t)
 
virtual void playlist_layered (std::weak_ptr< ARDOUR::Track >)
 
void update_coverage_frame ()
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
 ScopedConnectionList (const ScopedConnectionList &)=delete
 
ScopedConnectionListoperator= (const ScopedConnectionList &)=delete
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 
- Public Member Functions inherited from ViewBackground
 ViewBackground ()
 
virtual ~ViewBackground ()
 
virtual double height () const
 
virtual double width () const
 
- Public Member Functions inherited from SelectableOwner
 SelectableOwner ()
 
virtual ~SelectableOwner ()
 
void get_selectables (Temporal::timepos_t const &start, Temporal::timepos_t const &end, double x, double y, std::list< Selectable * > &sl, bool within=false)
 
- Public Member Functions inherited from MidiViewBackground
 MidiViewBackground (ArdourCanvas::Item *parent)
 
 ~MidiViewBackground ()
 
ARDOUR::NoteMode note_mode () const
 
void set_note_mode (ARDOUR::NoteMode nm)
 
ARDOUR::ColorMode color_mode () const
 
void set_color_mode (ARDOUR::ColorMode)
 
Gtkmm2ext::Color region_color () const
 
void set_note_visibility_range_style (VisibleNoteRange r)
 
VisibleNoteRange visibility_range_style () const
 
uint8_t lowest_note () const
 
uint8_t highest_note () const
 
void maybe_extend_note_range (uint8_t note_num)
 
double note_to_y (uint8_t note) const
 
uint8_t y_to_note (double y) const
 
uint8_t contents_note_range () const
 
double note_height () const
 
void apply_note_range (uint8_t lowest, uint8_t highest, bool to_children)
 
virtual void set_size (double w, double h)
 

Protected Member Functions

void setup_rec_box ()
 
void update_rec_box ()
 
bool updates_suspended () const
 
- Protected Member Functions inherited from StreamView
 StreamView (RouteTimeAxisView &, ArdourCanvas::Container *canvas_group=0)
 
void transport_changed ()
 
void transport_looped ()
 
void rec_enable_changed ()
 
void sess_rec_enable_changed ()
 
void create_rec_box (samplepos_t sample_pos, double width)
 
void cleanup_rec_box ()
 
virtual void remove_region_view (std::weak_ptr< ARDOUR::Region >)
 
void display_track (std::shared_ptr< ARDOUR::Track >)
 
virtual void undisplay_track ()
 
void layer_regions ()
 
void playlist_switched (std::weak_ptr< ARDOUR::Track >)
 
void setup_new_rec_layer_time (std::shared_ptr< ARDOUR::Region >)
 
- Protected Member Functions inherited from MidiViewBackground
void color_handler ()
 
void parameter_changed (std::string const &)
 
void note_range_adjustment_changed ()
 
void draw_note_lines ()
 
bool update_data_note_range (uint8_t min, uint8_t max)
 
void update_contents_height ()
 
void sync_data_and_visual_range ()
 

Protected Attributes

ArdourCanvas::Container_region_group
 
- Protected Attributes inherited from StreamView
RouteTimeAxisView_trackview
 
ArdourCanvas::Container_canvas_group
 
ArdourCanvas::Rectanglecanvas_rect
 
RegionViewList region_views
 
double _samples_per_pixel
 
sigc::connection screen_update_connection
 
std::vector< RecBoxInforec_rects
 
std::list< std::pair< std::shared_ptr< ARDOUR::Region >, RegionView * > > rec_regions
 
bool rec_updating
 
bool rec_active
 
uint32_t region_color
 Contained region color. More...
 
uint32_t stream_base_color
 Background color. More...
 
PBD::ScopedConnectionList playlist_connections
 
PBD::ScopedConnection playlist_switched_connection
 
ARDOUR::layer_t _layers
 
LayerDisplay _layer_display
 
double height
 
PBD::ScopedConnectionList rec_data_ready_connections
 
samplepos_t last_rec_data_sample
 
samplepos_t _new_rec_layer_time
 
- Protected Attributes inherited from MidiViewBackground
bool _range_dirty
 
double _range_sum_cache
 
uint8_t _lowest_note
 currently visible More...
 
uint8_t _highest_note
 currently visible More...
 
uint8_t _data_note_min
 in data More...
 
uint8_t _data_note_max
 in data More...
 
ArdourCanvas::LineSet_note_lines
 
ARDOUR::NoteMode _note_mode
 
Gtkmm2ext::Color _region_color
 
ARDOUR::ColorMode _color_mode
 
VisibleNoteRange _visibility_note_range
 

Private Member Functions

RegionViewadd_region_view_internal (std::shared_ptr< ARDOUR::Region >, bool wait_for_waves, bool recording=false)
 
void display_region (MidiRegionView *region_view, bool load_model)
 
void display_track (std::shared_ptr< ARDOUR::Track > tr)
 
void update_contents_height ()
 
void update_contents_metrics (std::shared_ptr< ARDOUR::Region > r)
 
void color_handler ()
 
void apply_note_range_to_children ()
 

Private Attributes

bool _updates_suspended
 

Additional Inherited Members

- Public Types inherited from StreamView
enum  ColorTarget { RegionColor , StreamBaseColor }
 
- Public Types inherited from MidiViewBackground
enum  VisibleNoteRange { FullRange , ContentsRange }
 
- Public Attributes inherited from StreamView
sigc::signal< void, RegionView * > RegionViewAdded
 
sigc::signal< void > RegionViewRemoved
 
sigc::signal< void > ContentsHeightChanged
 
- Public Attributes inherited from MidiViewBackground
Gtk::Adjustment note_range_adjustment
 
sigc::signal< void > NoteRangeChanged
 
PBD::Signal< void()> HeightChanged
 
- Protected Types inherited from StreamView
typedef std::list< RegionView * > RegionViewList
 

Detailed Description

Definition at line 60 of file midi_streamview.h.

Constructor & Destructor Documentation

◆ MidiStreamView()

MidiStreamView::MidiStreamView ( MidiTimeAxisView )

◆ ~MidiStreamView()

MidiStreamView::~MidiStreamView ( )

Member Function Documentation

◆ add_region_view_internal()

RegionView* MidiStreamView::add_region_view_internal ( std::shared_ptr< ARDOUR::Region ,
bool  wait_for_waves,
bool  recording = false 
)
privatevirtual

Implements StreamView.

◆ apply_note_range_to_children()

void MidiStreamView::apply_note_range_to_children ( )
privatevirtual

Implements MidiViewBackground.

◆ color_handler()

void MidiStreamView::color_handler ( )
privatevirtual

Implements StreamView.

◆ contents_height()

double MidiStreamView::contents_height ( ) const
inlinevirtual

Reimplemented from ViewBackground.

Definition at line 72 of file midi_streamview.h.

◆ create_region_view()

RegionView* MidiStreamView::create_region_view ( std::shared_ptr< ARDOUR::Region ,
bool  ,
bool   
)
virtual

Reimplemented from StreamView.

◆ display_region()

void MidiStreamView::display_region ( MidiRegionView region_view,
bool  load_model 
)
private

◆ display_track()

void MidiStreamView::display_track ( std::shared_ptr< ARDOUR::Track tr)
private

◆ get_preferred_midi_channel()

uint8_t MidiStreamView::get_preferred_midi_channel ( ) const
virtual

Implements MidiViewBackground.

◆ get_regions_with_selected_data()

void MidiStreamView::get_regions_with_selected_data ( RegionSelection )

◆ parameter_changed()

void MidiStreamView::parameter_changed ( std::string const &  )
virtual

Reimplemented from StreamView.

◆ paste()

bool MidiStreamView::paste ( Temporal::timepos_t const &  pos,
const Selection selection,
PasteContext ctx 
)

◆ record_layer_check()

void MidiStreamView::record_layer_check ( std::shared_ptr< ARDOUR::Region ,
samplepos_t   
)
virtual

Implements MidiViewBackground.

◆ redisplay_track()

void MidiStreamView::redisplay_track ( )
virtual

Implements StreamView.

◆ region_canvas()

ArdourCanvas::Container* MidiStreamView::region_canvas ( ) const
inlinevirtual

Reimplemented from StreamView.

Definition at line 85 of file midi_streamview.h.

◆ resume_updates()

void MidiStreamView::resume_updates ( )

◆ set_layer_display()

void MidiStreamView::set_layer_display ( LayerDisplay  )
virtual

Reimplemented from StreamView.

◆ set_note_highlight()

void MidiStreamView::set_note_highlight ( bool  )
virtual

Implements MidiViewBackground.

◆ setup_rec_box()

void MidiStreamView::setup_rec_box ( )
protectedvirtual

Implements StreamView.

◆ suspend_updates()

void MidiStreamView::suspend_updates ( )

◆ update_contents_height()

void MidiStreamView::update_contents_height ( )
privatevirtual

Reimplemented from StreamView.

◆ update_contents_metrics()

void MidiStreamView::update_contents_metrics ( std::shared_ptr< ARDOUR::Region r)
privatevirtual

Reimplemented from StreamView.

◆ update_rec_box()

void MidiStreamView::update_rec_box ( )
protectedvirtual

Reimplemented from StreamView.

◆ updates_suspended()

bool MidiStreamView::updates_suspended ( ) const
inlineprotectedvirtual

Reimplemented from MidiViewBackground.

Definition at line 95 of file midi_streamview.h.

◆ y_position()

double MidiStreamView::y_position ( ) const
virtual
Returns
y position, or -1 if hidden

Reimplemented from MidiViewBackground.

Member Data Documentation

◆ _region_group

ArdourCanvas::Container* MidiStreamView::_region_group
protected

Definition at line 97 of file midi_streamview.h.

◆ _updates_suspended

bool MidiStreamView::_updates_suspended
private

true if updates to the note lines and regions are currently suspended

Definition at line 113 of file midi_streamview.h.


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