diff options
author | David Robillard <d@drobilla.net> | 2009-05-05 00:57:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-05 00:57:08 +0000 |
commit | 006d3a9f4619b3c272a904eaf3b896b74c362a75 (patch) | |
tree | aec9b53c2862a76a74d00671fd90714b29abbe03 /gtk2_ardour/midi_region_view.h | |
parent | 6c93b8c44f8e7fe4ea42563fdf0affcc9c38cb9a (diff) |
Fix note dragging.
git-svn-id: svn://localhost/ardour2/branches/3.0@5049 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r-- | gtk2_ardour/midi_region_view.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index 2ef8c5aa0c..b26edb5a47 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -173,7 +173,7 @@ class MidiRegionView : public RegionView size_t selection_size() { return _selection.size(); } void move_selection(double dx, double dy); - void note_dropped(ArdourCanvas::CanvasNoteEvent* ev, double d_frames, uint8_t d_note); + void note_dropped(ArdourCanvas::CanvasNoteEvent* ev, double d_pixels, 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; @@ -230,7 +230,6 @@ class MidiRegionView : public RegionView }; /** Snap a region relative pixel coordinate to pixel units. - * for pixel units (double) instead of nframes64_t * @param x a pixel coordinate relative to region start * @return the snapped pixel coordinate relative to region start */ @@ -240,13 +239,13 @@ class MidiRegionView : public RegionView * @param x a pixel coordinate relative to region start * @return the snapped nframes64_t coordinate relative to region start */ - nframes64_t snap_to_frame(double x); + nframes64_t snap_pixel_to_frame(double x); /** Snap a region relative frame coordinate to frame units. * @param x a pixel coordinate relative to region start * @return the snapped nframes64_t coordinate relative to region start */ - nframes64_t snap_to_frame(nframes64_t x); + nframes64_t snap_frame_to_frame(nframes64_t x); /** Convert a timestamp in beats to frames (both relative to region start) */ nframes64_t beats_to_frames(double beats) const; |