mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
fix note drawing in clip editor by adding MidiView::relative_position()
This commit is contained in:
parent
c82afe4cdc
commit
e273ec06bb
3 changed files with 28 additions and 4 deletions
|
|
@ -284,6 +284,15 @@ class MidiView : public virtual sigc::trackable, public LineMerger
|
|||
ArdourCanvas::Rectangle *resize_rect;
|
||||
};
|
||||
|
||||
/* Convert a position to a distance (origin+position) relative to the
|
||||
* start of this MidiView.
|
||||
*
|
||||
* What this is relative to will depend on whether or not _show_source
|
||||
* is true.
|
||||
*/
|
||||
|
||||
Temporal::timecnt_t relative_position (Temporal::timepos_t const & p) const;
|
||||
|
||||
/** Snap a region relative pixel coordinate to pixel units.
|
||||
* @param x a pixel coordinate relative to region start
|
||||
* @param ensure_snap do not use magnetic snap (required for snap delta calculation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue