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:
parent
1cfdad6ffb
commit
38891288f3
@ -991,7 +991,7 @@ AudioRegion::set_fade_in (FadeShape shape, framecnt_t len)
|
|||||||
_fade_in->clear ();
|
_fade_in->clear ();
|
||||||
_inverse_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) {
|
switch (shape) {
|
||||||
case FadeLinear:
|
case FadeLinear:
|
||||||
@ -1069,7 +1069,7 @@ AudioRegion::set_fade_out (FadeShape shape, framecnt_t len)
|
|||||||
_fade_out->clear ();
|
_fade_out->clear ();
|
||||||
_inverse_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) {
|
switch (shape) {
|
||||||
case FadeLinear:
|
case FadeLinear:
|
||||||
|
Loading…
Reference in New Issue
Block a user