diff options
author | David Robillard <d@drobilla.net> | 2014-12-28 21:31:33 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-28 21:31:33 -0500 |
commit | d283608fe9ece413838ddd7f530901e96c5bceda (patch) | |
tree | e6642806bcf7b3604e0937aa8a9f37d036e41c15 /gtk2_ardour/hit.h | |
parent | 606efb601c15fa966a3b34cbda07b2d05be8c5b0 (diff) |
Automation ghost notes for percussive hits.
Diffstat (limited to 'gtk2_ardour/hit.h')
-rw-r--r-- | gtk2_ardour/hit.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/gtk2_ardour/hit.h b/gtk2_ardour/hit.h index d9f16db772..c19bd49c37 100644 --- a/gtk2_ardour/hit.h +++ b/gtk2_ardour/hit.h @@ -35,11 +35,12 @@ public: Hit (MidiRegionView& region, ArdourCanvas::Item* parent, double size, - const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(), - bool with_events = true); - ~Hit(); + const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(), + bool with_events = true); - void show (); + ~Hit(); + + void show (); void hide (); ArdourCanvas::Coord x0 () const; @@ -47,6 +48,8 @@ public: ArdourCanvas::Coord x1 () const; ArdourCanvas::Coord y1 () const; + ArdourCanvas::Duple position (); + void set_position (ArdourCanvas::Duple); void set_height (ArdourCanvas::Coord); @@ -58,8 +61,10 @@ public: void move_event (double, double); - /* no trimming of percussive hits */ - bool big_enough_to_trim() const { return false; } + /* no trimming of percussive hits */ + bool big_enough_to_trim() const { return false; } + + static ArdourCanvas::Points points(ArdourCanvas::Distance height); private: ArdourCanvas::Polygon* _polygon; |