Unfortunately, as I thought, my arc style transition and simple linear interpolation between 2 speeds results in sound playback being very out of sync.
Will try to calculate speed based on values provided by `seq_retiming_evaluate`. This is horribly unelegant, but will try to make this feature complete before trying to optimize.
Also have to test synchronization to audio, but ut works with retiming already somehow without touching it, so I think that is OK.
This feature allows to smooth transition between 2 retimed segments.
Smooth transition is achieved by evaluating Y value of arc that is
tangent to lines of linear retimed segments. Because of this, when
transition length is changed both handles are moved symetrically. This
way it is possible to make transition without affecting content in
linear segments.
TODO:
- Modal move operation results in precision issues. Not sure why, but I assume, that this is result of new `SEQ_retiming_remove_handle()` and workflow "delete gradient, and create new one".
- It's probably best to make `SEQ_retiming_remove_handle()` work with gradients based on geometry. Workflow mentioned above also invalidates all pointers which makes code ugly.
- Make visual feedback, that gradient will be added on shift key.
- Fix label to show gradient.
- Bunch of limits are probably missing everywhere.
- Merge with sound support.