MIDI Program Changes: dragging patches was resulting in the wrong location or disappearing altogether
a Program Change's position is referenced from the midi Source which might not be the same as the region start
This commit is contained in:
parent
878393e68b
commit
5212fc9677
@ -6846,7 +6846,7 @@ PatchChangeDrag::finished (GdkEvent* ev, bool movement_occurred)
|
||||
f = max (f, r->position ());
|
||||
f = min (f, r->nt_last ());
|
||||
|
||||
_region_view->move_patch_change (*_patch_change, _region_view->region()->absolute_time_to_region_beats (f));
|
||||
_region_view->move_patch_change (*_patch_change, _region_view->region()->absolute_time_to_source_beats (f));
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user