Tempo ramps - fix changing from const to ramp in the gui.

- also fixes some midi mouse over problems
	- start using replacements for frames_per_bar() frames_per_beat() etc.
This commit is contained in:
nick_m 2015-12-21 05:42:38 +11:00
parent 0d0e458dde
commit dbfe991cd8
8 changed files with 121 additions and 25 deletions

View file

@ -519,7 +519,7 @@ Drag::add_midi_region (MidiTimeAxisView* view, bool commit)
/* not that the frame rate used here can be affected by pull up/down which
might be wrong.
*/
framecnt_t len = m.frames_per_bar (map.tempo_at (pos), _editor->session()->frame_rate());
framecnt_t len = map.frame_at_beat (map.beat_at_frame (pos) + 1.0) - pos;
return view->add_region (grab_frame(), len, commit);
}