class Hit : public NoteBase
{
public:
- typedef Evoral::Note<double> NoteType;
+ typedef Evoral::Note<Evoral::MusicalTime> NoteType;
- Hit (
- MidiRegionView& region,
- ArdourCanvas::Group* group,
- double size,
- const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(),
- bool with_events = true);
+ Hit (MidiRegionView& region,
+ ArdourCanvas::Item* parent,
+ double size,
+ const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(),
+ bool with_events = true);
+ ~Hit();
- void show ();
+ void show ();
void hide ();
ArdourCanvas::Coord x0 () const;
void move_event (double, double);
+ /* no trimming of percussive hits */
+ bool big_enough_to_trim() const { return false; }
+
private:
ArdourCanvas::Polygon* _polygon;
};