13
0

Tempo ramps - don't allow cross-dragging the first meter.

This commit is contained in:
nick_m 2016-04-15 01:13:14 +10:00
parent 06f294fa18
commit 462d08acbb

View File

@ -1998,6 +1998,11 @@ TempoMap::solve_map (Metrics& imaginary, TempoSection* section, const double& pu
void
TempoMap::solve_map (Metrics& imaginary, MeterSection* section, const framepos_t& frame)
{
/* disallow moving first meter past any subsequent one, and any movable meter before the first one */
const MeterSection* other = &meter_section_at_locked (frame);
if ((!section->movable() && other->movable()) || (!other->movable() && section->movable() && other->frame() >= frame)) {
return;
}
MeterSection* prev_m = 0;
if (!section->movable()) {