38 template<
typename T>
class Note;
116 const std::shared_ptr<NoteType>
note()
const {
return _note; }
125 if (showing_selection) {
145 const std::shared_ptr<NoteType>
_note;
void set_mouse_fractions(GdkEvent *)
void set_hide_selection(bool yn)
const std::shared_ptr< NoteType > _note
float mouse_y_fraction() const
static uint32_t base_color(int velocity, ARDOUR::ColorMode color_mode, Gtkmm2ext::Color, int channel, bool selected)
void set_item(ArdourCanvas::Item *)
bool mouse_near_ends() const
bool event_handler(GdkEvent *)
virtual void set_fill_color(uint32_t c)=0
void on_channel_selection_change(uint16_t selection)
ArdourCanvas::Item * _item
static Gtkmm2ext::Color meter_style_fill_color(uint8_t vel, bool selected)
void on_channel_change(uint8_t channel)
static const uint32_t midi_channel_colors[16]
hue circle divided into 16 equal-looking parts, courtesy Thorsten Wilms
virtual bool big_enough_to_trim() const
virtual double visual_velocity() const =0
virtual ArdourCanvas::Coord x1() const =0
static Gtkmm2ext::Color velocity_color_table[128]
static uint32_t calculate_outline(uint32_t color, bool showing_selection=false)
calculate outline colors from fill colors of notes
virtual void set_outline_color(uint32_t c)=0
float mouse_x_fraction() const
virtual void set_velocity(double)
MidiView & region_view() const
static Gtkmm2ext::SVAModifier color_modifier
const std::shared_ptr< NoteType > note() const
void set_selected(bool yn)
ArdourCanvas::Text * _text
Evoral::Note< Temporal::Beats > NoteType
virtual ArdourCanvas::Coord y1() const =0
ArdourCanvas::Item * item() const
static Gtkmm2ext::Color _selected_col
NoteBase(MidiView ®ion, bool, const std::shared_ptr< NoteType > note=std::shared_ptr< NoteType >())
virtual ArdourCanvas::Coord x0() const =0
virtual void set_ignore_events(bool ignore)=0
virtual ArdourCanvas::Coord y0() const =0
virtual void move_event(double dx, double dy)=0
#define UINT_INTERPOLATE(c1, c2, t)
PBD::PropertyDescriptor< uint32_t > color
PBD::PropertyDescriptor< bool > region
link region and track selection