13
0

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:
Paul Davis 2010-08-11 22:21:38 +00:00
parent 1b42936caa
commit 95813bfaec

View File

@ -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()));