A_DtoADS

A/D to ADS for simplified panel envelopes
Author: SmashedTransistors
License: LGPL
Github: tiar/conv/A_DtoADS.axo

Inlets

frac32 in1

Outlets

frac32 out

frac32 D

frac32 S

Control Rate
if (inlet_AD < (32 << 21)) {
  // AR mode
  // A long -> A short
  outlet_A = 0x07FFFFFF - (inlet_AD << 1);
  outlet_D = 0x07FFFFFF;
  outlet_S = 0x07FFFFFF;
} else {
  // DR mode
  outlet_A = 0;
  // D long -> D short
  outlet_D = 0x0FFFFFFF - (inlet_AD << 1);
  outlet_S = 0;
}

Privacy

© 2024 Zrna Research