Fix pan automation

The time-domains need to match in order to use the
raw underlying .val() as double for interpolation.
This commit is contained in:
Robin Gareus 2022-10-27 04:28:07 +02:00
parent 5dd60c03df
commit fa858a0386
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 5 additions and 2 deletions

View File

@ -200,8 +200,11 @@ Curve::get_vector (Temporal::timepos_t const & x0, Temporal::timepos_t const & x
}
void
Curve::_get_vector (Temporal::timepos_t const & x0, Temporal::timepos_t const & x1, float *vec, int32_t veclen) const
Curve::_get_vector (Temporal::timepos_t x0, Temporal::timepos_t x1, float *vec, int32_t veclen) const
{
x0.set_time_domain (_list.time_domain());
x1.set_time_domain (_list.time_domain());
double rx, lx, hx;
const double start = x0.val();
const double end = x1.val();

View File

@ -45,7 +45,7 @@ public:
private:
double multipoint_eval (Temporal::timepos_t const & x) const;
void _get_vector (Temporal::timepos_t const & x0, Temporal::timepos_t const & x1, float *arg, int32_t veclen) const;
void _get_vector (Temporal::timepos_t x0, Temporal::timepos_t x1, float *arg, int32_t veclen) const;
mutable bool _dirty;
const ControlList& _list;