when adding a new region for step editing, do rounding-snap, not backwards-snap, to get the region position
git-svn-id: svn://localhost/ardour2/branches/3.0@7602 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1b42936caa
commit
95813bfaec
@ -1146,7 +1146,8 @@ MidiTimeAxisView::add_region (framepos_t pos)
|
||||
playlist()->clear_history ();
|
||||
|
||||
framepos_t start = pos;
|
||||
real_editor->snap_to (start, -1);
|
||||
real_editor->snap_to (start, 0);
|
||||
cerr << "Snap backwards from " << pos << " gave us " << start << endl;
|
||||
const Meter& m = _session->tempo_map().meter_at(start);
|
||||
const Tempo& t = _session->tempo_map().tempo_at(start);
|
||||
double length = floor (m.frames_per_bar(t, _session->frame_rate()));
|
||||
|
Loading…
Reference in New Issue
Block a user