bool32.rising Trigger
frac32 In
frac32.positive GainTimbre
frac32.positive GainColor
frac32.positive GainFrequency
frac32.positive GainReso
frac32.positive GainVCA
frac32.positive GainLFO
frac32.bipolar OutTimbre
frac32.bipolar OutColor
frac32.bipolar OutFrequency
frac32.bipolar OutReso
frac32.bipolar OutVCA
frac32.bipolar OutLFO
int ntrig;
int latch;
if ((inlet_Trigger > 0) && !ntrig) {
latch = inlet_In;
ntrig = 1;
}
if (!(inlet_Trigger > 0))
ntrig = 0;
outlet_OutTimbre = ___SMMUL(inlet_In - latch, inlet_GainTimbre) << 5;
outlet_OutColor = ___SMMUL(inlet_In - latch, inlet_GainColor) << 5;
outlet_OutFrequency = ___SMMUL(inlet_In - latch, inlet_GainFrequency) << 5;
outlet_OutReso = ___SMMUL(inlet_In - latch, inlet_GainReso) << 5;
outlet_OutVCA = ___SMMUL(inlet_In - latch, inlet_GainVCA) << 5;
outlet_OutLFO = ___SMMUL(inlet_In - latch, inlet_GainLFO) << 5;