- if( old_speed || new_speed ) {
- double orig_start = old_speeds->automation_integral(0, plugin_start, PLAY_FORWARD);
- double orig_end = old_speeds->automation_integral(0, plugin_end, PLAY_FORWARD);
- plugin_start = new_track->frame_align(new_speeds->speed_position(orig_start), 1);
- plugin_end = new_track->frame_align(new_speeds->speed_position(orig_end), 1);
- result = 1;
- }
+ double orig_start = old_speeds->automation_integral(0, plugin_start, PLAY_FORWARD);
+ double orig_end = old_speeds->automation_integral(0, plugin_end, PLAY_FORWARD);
+ plugin_start = new_track->frame_align(new_speeds->speed_position(orig_start), 1);
+ plugin_end = new_track->frame_align(new_speeds->speed_position(orig_end), 1);