From 38891288f3ad60c16832829f5c07c458a35051a9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 29 May 2014 22:40:40 +0200 Subject: use fixed number of steps for dB-scale x-fade curves. 32 steps is sufficient for all practical musical purposes. --- libs/ardour/audioregion.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/audioregion.cc') diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index f76b80dbb6..e07ab961a9 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -991,7 +991,7 @@ AudioRegion::set_fade_in (FadeShape shape, framecnt_t len) _fade_in->clear (); _inverse_fade_in->clear (); - const int num_steps = min((framecnt_t)256, max ((framecnt_t) 16, len / 512)); + const int num_steps = 32; switch (shape) { case FadeLinear: @@ -1069,7 +1069,7 @@ AudioRegion::set_fade_out (FadeShape shape, framecnt_t len) _fade_out->clear (); _inverse_fade_out->clear (); - const int num_steps = min((framecnt_t)256, max ((framecnt_t) 16, len / 512)); + const int num_steps = 32; switch (shape) { case FadeLinear: -- cgit v1.2.3