mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 14:45:43 +01:00
Fix automation thinning
For consistency, samples need to be used a unit. Currently the calculated area is orders of magnitude larger than the default thinning_factor (20).
This commit is contained in:
parent
1592b95031
commit
2338e25d31
1 changed files with 3 additions and 3 deletions
|
|
@ -404,9 +404,9 @@ ControlList::thin (double thinning_factor)
|
|||
/* compute the area of the triangle formed by 3 points
|
||||
*/
|
||||
|
||||
const double ppw = prevprev->when.val();
|
||||
const double pw = prev->when.val();
|
||||
const double cw = cur->when.val();
|
||||
const double ppw = prevprev->when.samples();
|
||||
const double pw = prev->when.samples();
|
||||
const double cw = cur->when.samples();
|
||||
|
||||
double area = fabs ((ppw * (prev->value - cur->value)) +
|
||||
(pw * (cur->value - prevprev->value)) +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue