mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
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
1685c2bff2
commit
d8bdfa6f17
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue