Macro synfx_dsp::env_target_stage
source · [−]macro_rules! env_target_stage {
($state: expr, $stage_idx: expr, $time_ms: expr, $value: expr, $shape_fn: expr, $else: block) => { ... };
}
Expand description
Increases/Decreases state.current
value until you are at $value
within $time_ms
.
This envelope part is great for a release stage. Or an fixed time attack stage. See also crate::env_target_stage_lin_time_adj.
See also EnvState about the first argument $state
.
$shape_fn
can be used to shape the line of this envelope stage. Use |x| x
for a linear envelope.
$stage_idx
is $stage_idx + 2
after this stage is finished.