Ardour
9.0-pre0-582-g084a23a80d
|
#include <midi_view_background.h>
Public Types | |
enum | VisibleNoteRange { FullRange , ContentsRange } |
Public Member Functions | |
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 double | 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 (double w, double h) |
Public Member Functions inherited from ViewBackground | |
ViewBackground () | |
virtual | ~ViewBackground () |
virtual double | height () const |
virtual double | width () const |
virtual double | contents_height () const |
Public Attributes | |
Gtk::Adjustment | note_range_adjustment |
sigc::signal< void > | NoteRangeChanged |
PBD::Signal< void()> | HeightChanged |
Protected Member Functions | |
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 () |
virtual void | apply_note_range_to_children ()=0 |
virtual bool | updates_suspended () const |
void | sync_data_and_visual_range () |
Protected Attributes | |
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 |
A class that provides various context for a MidiVieww: = note ranges color information etc.
Definition at line 49 of file midi_view_background.h.
Enumerator | |
---|---|
FullRange | |
ContentsRange |
Definition at line 57 of file midi_view_background.h.
MidiViewBackground::MidiViewBackground | ( | ArdourCanvas::Item * | parent | ) |
MidiViewBackground::~MidiViewBackground | ( | ) |
void MidiViewBackground::apply_note_range | ( | uint8_t | lowest, |
uint8_t | highest, | ||
bool | to_children | ||
) |
|
protectedpure virtual |
Implemented in MidiStreamView, and CueMidiBackground.
|
protectedvirtual |
Reimplemented from ViewBackground.
|
inline |
Definition at line 65 of file midi_view_background.h.
|
inline |
Definition at line 84 of file midi_view_background.h.
|
protected |
|
pure virtual |
Implemented in MidiStreamView, and CueMidiBackground.
|
inline |
Definition at line 74 of file midi_view_background.h.
|
inline |
Definition at line 73 of file midi_view_background.h.
void MidiViewBackground::maybe_extend_note_range | ( | uint8_t | note_num | ) |
|
inline |
Definition at line 88 of file midi_view_background.h.
|
inline |
Definition at line 62 of file midi_view_background.h.
|
protected |
|
inline |
Definition at line 78 of file midi_view_background.h.
|
protectedvirtual |
Reimplemented from ViewBackground.
|
pure virtual |
Implemented in MidiStreamView, and CueMidiBackground.
|
inline |
Definition at line 68 of file midi_view_background.h.
void MidiViewBackground::set_color_mode | ( | ARDOUR::ColorMode | ) |
|
pure virtual |
Implemented in MidiStreamView, and CueMidiBackground.
void MidiViewBackground::set_note_mode | ( | ARDOUR::NoteMode | nm | ) |
void MidiViewBackground::set_note_visibility_range_style | ( | VisibleNoteRange | r | ) |
|
inlinevirtual |
Reimplemented in CueMidiBackground.
Definition at line 102 of file midi_view_background.h.
|
protected |
|
protectedvirtual |
Reimplemented from ViewBackground.
|
protected |
|
inlineprotectedvirtual |
Reimplemented in MidiStreamView.
Definition at line 125 of file midi_view_background.h.
|
inline |
Definition at line 71 of file midi_view_background.h.
|
inlinevirtual |
Reimplemented from ViewBackground.
Reimplemented in MidiStreamView.
Definition at line 96 of file midi_view_background.h.
uint8_t MidiViewBackground::y_to_note | ( | double | y | ) | const |
|
protected |
Definition at line 115 of file midi_view_background.h.
|
protected |
in data
Definition at line 111 of file midi_view_background.h.
|
protected |
in data
Definition at line 110 of file midi_view_background.h.
|
protected |
currently visible
Definition at line 109 of file midi_view_background.h.
|
protected |
currently visible
Definition at line 108 of file midi_view_background.h.
|
protected |
Definition at line 112 of file midi_view_background.h.
|
protected |
Definition at line 113 of file midi_view_background.h.
|
protected |
Definition at line 106 of file midi_view_background.h.
|
protected |
Definition at line 107 of file midi_view_background.h.
|
protected |
Definition at line 114 of file midi_view_background.h.
|
protected |
Definition at line 116 of file midi_view_background.h.
PBD::Signal<void()> MidiViewBackground::HeightChanged |
Definition at line 103 of file midi_view_background.h.
Gtk::Adjustment MidiViewBackground::note_range_adjustment |
Definition at line 55 of file midi_view_background.h.
sigc::signal<void> MidiViewBackground::NoteRangeChanged |
Definition at line 92 of file midi_view_background.h.