13
0

use fixed number of steps for dB-scale x-fade curves.

32 steps is sufficient for all practical musical purposes.
This commit is contained in:
Robin Gareus 2014-05-29 22:40:40 +02:00
parent 1cfdad6ffb
commit 38891288f3

View File

@ -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: