summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-15 19:44:27 +0000
committerDavid Robillard <d@drobilla.net>2009-02-15 19:44:27 +0000
commit166395c96b8a85d90b9785e629c739494494130f (patch)
treead688f25e8298519f63829e926a09d8739fbf5b0 /gtk2_ardour/midi_region_view.h
parentecaf107ed3dd2bb3443a92fc3dd9cf566d3439e3 (diff)
Fix genererally retarded and broken note range / diskstream display / etc. related things (correctly display region contents on initial session load).
git-svn-id: svn://localhost/ardour2/branches/3.0@4583 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r--gtk2_ardour/midi_region_view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h
index 5c00175cbf..d6a7695997 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -177,6 +177,9 @@ class MidiRegionView : public RegionView
void move_selection(double dx, double dy);
void note_dropped(ArdourCanvas::CanvasNoteEvent* ev, double d_frames, uint8_t d_note);
+ /** Return true iff the note is within the currently visible range */
+ bool note_in_visible_range(const boost::shared_ptr<NoteType> note) const;
+
/** Get the region position in pixels relative to session. */
double get_position_pixels();