| 
    Ardour
    9.0-pre0-1982-ga458a302d1
    
   | 
 
#include <midi_view_background.h>
Classes | |
| struct | NoteRangeSuspender | 
Public Types | |
| enum | VisibleNoteRange { FullRange , ContentsRange , UserRange } | 
| enum | RangeCanMove { CanMoveTop = 0x1 , CanMoveBottom = 0x2 } | 
Public Member Functions | |
| MidiViewBackground (ArdourCanvas::Item *parent, EditingContext &ec) | |
| ~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) | 
| int | note_height () const | 
| int | note_to_y (uint8_t note) const | 
| uint8_t | y_to_note (int y) const | 
| uint8_t | contents_note_range () const | 
| bool | apply_note_range (uint8_t lowest, uint8_t highest, bool to_children, RangeCanMove=RangeCanMove(CanMoveTop|CanMoveBottom)) | 
| void | maybe_apply_note_range (uint8_t lowest, uint8_t highest, bool to_children, RangeCanMove=RangeCanMove(CanMoveTop|CanMoveBottom)) | 
| virtual int | y_position () const | 
| virtual uint8_t | get_preferred_midi_channel () const =0 | 
| virtual void | set_note_highlight (bool)=0 | 
| virtual void | record_layer_check (std::shared_ptr< ARDOUR::Region >, samplepos_t)=0 | 
| virtual void | set_size (int w, int h) | 
| virtual ARDOUR::InstrumentInfo * | instrument_info () const =0 | 
| void | get_note_positions (std::vector< int > &numbers, std::vector< int > &pos, std::vector< int > &heights) const | 
| EditingContext & | editing_context () const | 
| bool | update_data_note_range (uint8_t min, uint8_t max) | 
| uint8_t | highest_data_note () const | 
| uint8_t | lowest_data_note () const | 
  Public Member Functions inherited from ViewBackground | |
| ViewBackground () | |
| virtual | ~ViewBackground () | 
| virtual int | height () const =0 | 
| virtual int | width () const =0 | 
| virtual int | contents_height () const =0 | 
Public Attributes | |
| Gtk::Adjustment | note_range_adjustment | 
| sigc::signal< void > | NoteModeChanged | 
| sigc::signal< void > | NoteRangeChanged | 
| PBD::Signal< void()> | HeightChanged | 
| sigc::signal< void, bool > | NoteVisibilityShouldChange | 
Protected Member Functions | |
| void | color_handler () | 
| void | parameter_changed (std::string const &) | 
| void | note_range_adjustment_changed () | 
| void | setup_note_lines () | 
| void | update_contents_height () | 
| virtual void | apply_note_range_to_children ()=0 | 
| virtual bool | updates_suspended () const | 
| void | sync_data_and_visual_range () | 
Protected Attributes | |
| EditingContext & | _editing_context | 
| 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::RectSet * | _note_lines | 
| ARDOUR::NoteMode | _note_mode | 
| Gtkmm2ext::Color | _region_color | 
| ARDOUR::ColorMode | _color_mode | 
| VisibleNoteRange | _visibility_note_range | 
| bool | note_range_set | 
A class that provides various context for a MidiVieww: = note ranges color information etc.
Definition at line 55 of file midi_view_background.h.
| Enumerator | |
|---|---|
| CanMoveTop | |
| CanMoveBottom | |
Definition at line 115 of file midi_view_background.h.
| Enumerator | |
|---|---|
| FullRange | |
| ContentsRange | |
| UserRange | |
Definition at line 76 of file midi_view_background.h.
| MidiViewBackground::MidiViewBackground | ( | ArdourCanvas::Item * | parent, | 
| EditingContext & | ec | ||
| ) | 
| MidiViewBackground::~MidiViewBackground | ( | ) | 
| bool MidiViewBackground::apply_note_range | ( | uint8_t | lowest, | 
| uint8_t | highest, | ||
| bool | to_children, | ||
| RangeCanMove |  = RangeCanMove(CanMoveTop|CanMoveBottom)  | 
        ||
| ) | 
      
  | 
  protectedpure virtual | 
Implemented in PianorollMidiBackground, and MidiStreamView.
      
  | 
  protectedvirtual | 
Reimplemented from ViewBackground.
      
  | 
  inline | 
Definition at line 86 of file midi_view_background.h.
      
  | 
  inline | 
Definition at line 109 of file midi_view_background.h.
      
  | 
  inline | 
Definition at line 137 of file midi_view_background.h.
| void MidiViewBackground::get_note_positions | ( | std::vector< int > & | numbers, | 
| std::vector< int > & | pos, | ||
| std::vector< int > & | heights | ||
| ) | const | 
      
  | 
  pure virtual | 
Implemented in PianorollMidiBackground, and MidiStreamView.
      
  | 
  inline | 
Definition at line 142 of file midi_view_background.h.
      
  | 
  inline | 
Definition at line 95 of file midi_view_background.h.
      
  | 
  pure virtual | 
Implemented in PianorollMidiBackground, and MidiStreamView.
      
  | 
  inline | 
Definition at line 143 of file midi_view_background.h.
      
  | 
  inline | 
Definition at line 94 of file midi_view_background.h.
| void MidiViewBackground::maybe_apply_note_range | ( | uint8_t | lowest, | 
| uint8_t | highest, | ||
| bool | to_children, | ||
| RangeCanMove |  = RangeCanMove(CanMoveTop|CanMoveBottom)  | 
        ||
| ) | 
| void MidiViewBackground::maybe_extend_note_range | ( | uint8_t | note_num | ) | 
      
  | 
  inline | 
Definition at line 99 of file midi_view_background.h.
      
  | 
  inline | 
Definition at line 82 of file midi_view_background.h.
      
  | 
  protected | 
      
  | 
  inline | 
Definition at line 103 of file midi_view_background.h.
      
  | 
  protectedvirtual | 
Reimplemented from ViewBackground.
      
  | 
  pure virtual | 
Implemented in PianorollMidiBackground, and MidiStreamView.
      
  | 
  inline | 
Definition at line 89 of file midi_view_background.h.
| void MidiViewBackground::set_color_mode | ( | ARDOUR::ColorMode | ) | 
      
  | 
  pure virtual | 
Implemented in PianorollMidiBackground, and MidiStreamView.
| void MidiViewBackground::set_note_mode | ( | ARDOUR::NoteMode | nm | ) | 
| void MidiViewBackground::set_note_visibility_range_style | ( | VisibleNoteRange | r | ) | 
      
  | 
  inlinevirtual | 
Reimplemented in PianorollMidiBackground.
Definition at line 130 of file midi_view_background.h.
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protectedvirtual | 
Reimplemented from ViewBackground.
| bool MidiViewBackground::update_data_note_range | ( | uint8_t | min, | 
| uint8_t | max | ||
| ) | 
      
  | 
  inlineprotectedvirtual | 
Reimplemented in MidiStreamView.
Definition at line 166 of file midi_view_background.h.
      
  | 
  inline | 
Definition at line 92 of file midi_view_background.h.
      
  | 
  inlinevirtual | 
Reimplemented from ViewBackground.
Reimplemented in MidiStreamView.
Definition at line 124 of file midi_view_background.h.
| uint8_t MidiViewBackground::y_to_note | ( | int | y | ) | const | 
      
  | 
  protected | 
Definition at line 156 of file midi_view_background.h.
      
  | 
  protected | 
in data
Definition at line 152 of file midi_view_background.h.
      
  | 
  protected | 
in data
Definition at line 151 of file midi_view_background.h.
      
  | 
  protected | 
Definition at line 146 of file midi_view_background.h.
      
  | 
  protected | 
currently visible
Definition at line 150 of file midi_view_background.h.
      
  | 
  protected | 
currently visible
Definition at line 149 of file midi_view_background.h.
      
  | 
  protected | 
Definition at line 153 of file midi_view_background.h.
      
  | 
  protected | 
Definition at line 154 of file midi_view_background.h.
      
  | 
  protected | 
Definition at line 147 of file midi_view_background.h.
      
  | 
  protected | 
Definition at line 148 of file midi_view_background.h.
      
  | 
  protected | 
Definition at line 155 of file midi_view_background.h.
      
  | 
  protected | 
Definition at line 157 of file midi_view_background.h.
| PBD::Signal<void()> MidiViewBackground::HeightChanged | 
Definition at line 131 of file midi_view_background.h.
| Gtk::Adjustment MidiViewBackground::note_range_adjustment | 
Definition at line 61 of file midi_view_background.h.
      
  | 
  protected | 
Definition at line 158 of file midi_view_background.h.
| sigc::signal<void> MidiViewBackground::NoteModeChanged | 
Definition at line 84 of file midi_view_background.h.
| sigc::signal<void> MidiViewBackground::NoteRangeChanged | 
Definition at line 113 of file midi_view_background.h.
| sigc::signal<void,bool> MidiViewBackground::NoteVisibilityShouldChange | 
Definition at line 139 of file midi_view_background.h.