fadein_xor

Fade in gain factors, either left or right is faded up, the other side stays at 0 gain
Author: Are Leistad
License: BSD
Github: drj/ctrl/fade_xor.axo

IO Variants: 2


Variant: 1

Inlets

None

Outlets

frac32.bipolar Left gain

frac32.bipolar Right gain

Parameters

frac32.s.map Fade in left or right channel

Control Rate
if (param_lr >= 0) {
  outlet_lgain = 0;
  outlet_rgain = param_lr;
} else {
  outlet_lgain = -param_lr;
  outlet_rgain = 0;
}

Variant: 2

Inlets

None

Outlets

frac32.bipolar Left gain

frac32.bipolar Right gain

Parameters

frac32.s.map Fade out left or right channel

Control Rate
if (param_lr >= 0) {
  outlet_lgain = (1 << 27);
  outlet_rgain = (1 << 27) - param_lr;
} else {
  outlet_lgain = (1 << 27) + param_lr;
  outlet_rgain = (1 << 27);
}

Privacy

© 2024 Zrna Research