mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-23 05:37:22 +01:00
fix midi quantization - part one
subtract offset if region was truncated at the beginning.
This commit is contained in:
parent
011c8a561f
commit
98f53d11b3
1 changed files with 1 additions and 1 deletions
|
|
@ -4712,7 +4712,7 @@ Editor::apply_midi_note_edit_op_to_region (MidiOperator& op, MidiRegionView& mrv
|
|||
vector<Evoral::Sequence<Evoral::MusicalTime>::Notes> v;
|
||||
v.push_back (selected);
|
||||
|
||||
framepos_t pos_frames = mrv.midi_region()->position();
|
||||
framepos_t pos_frames = mrv.midi_region()->position() - mrv.midi_region()->start();
|
||||
double pos_beats = _session->tempo_map().framewalk_to_beats(0, pos_frames);
|
||||
|
||||
return op (mrv.midi_region()->model(), pos_beats, v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue