mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
fix nasty bug in evaluation of final step of interpolated Curve values
git-svn-id: svn://localhost/ardour2/branches/3.0@4085 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b12bedfe8a
commit
1d4b3c2f05
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
|
|||
|
||||
if (veclen > 1) {
|
||||
|
||||
dx = (hx - lx) / veclen;
|
||||
dx = (hx - lx) / (veclen-1);
|
||||
|
||||
for (i = 0; i < veclen; ++i, rx += dx) {
|
||||
vec[i] = multipoint_eval (rx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue