split 2 overlap

Split the incoming signal in two, based on the amplitude, with hard overlap.
Author: Sputnki
License: BSD
Github: sptnk/split/split 2 overlap.axo

Inlets

frac32buffer in

Outlets

frac32buffer o1

frac32buffer o2

Parameters

frac32.u.map overlap

frac32.s.map cutoff

Declaration
int32_t center;
int32_t width;
int32_t o1;
int32_t o2;
Control Rate
center = param_cutoff;
width = param_overlap;
Audio Rate
if (inlet_in < center - width) {
  o1 = inlet_in;
  o2 = 0;
} else if (inlet_in > center + width) {
  o2 = inlet_in;
  o1 = 0;
} else {
  o1 = inlet_in;
  o2 = inlet_in;
}

outlet_o1 = o1;
outlet_o2 = o2;

Privacy

© 2024 Zrna Research