frac32buffer send 1 stereo return L
frac32buffer send 1 stereo return R
frac32buffer 1
frac32buffer 2
frac32buffer 3
frac32buffer send 1
frac32buffer Master out L
frac32buffer Master out R
frac32.u.map Ch1. volume
frac32.u.map Ch1. senda
frac32.u.map Ch2. volume
frac32.u.map Ch2. senda
frac32.u.map Ch3. volume
frac32.u.map Ch3. senda
frac32.u.map Returna volume
frac32.u.map Master volume
bool32.mom CHANNELS
bool32.mom RETURNS
bool32.mom MAIN
bool32.tgl ch1
bool32.tgl ch2
bool32.tgl ch3
bool32.tgl Returna on/off
// Channel 1 //
int32_t CHANNELONE;
if (param_ch1 > 0) {
CHANNELONE = ___SMMUL(inlet_1 << 3, param_v1 << 2);
} else {
CHANNELONE = 0;
}
int32_t CHANNELONESENDA = ___SMMUL(CHANNELONE << 3, param_s1a << 2);
// Channel 2 //
int32_t CHANNELTWO;
if (param_ch2 > 0) {
CHANNELTWO = ___SMMUL(inlet_2 << 3, param_v2 << 2);
} else {
CHANNELTWO = 0;
}
int32_t CHANNELTWOSENDA = ___SMMUL(CHANNELTWO << 3, param_s2a << 2);
// Channel 3 //
int32_t CHANNELTHREE;
if (param_ch3 > 0) {
CHANNELTHREE = ___SMMUL(inlet_3 << 3, param_v3 << 2);
} else {
CHANNELTHREE = 0;
}
int32_t CHANNELTHREESENDA = ___SMMUL(CHANNELTHREE << 3, param_s3a << 2);
// Sends //
outlet_s1 = CHANNELONESENDA + CHANNELTWOSENDA + CHANNELTHREESENDA;
// Returns//
int32_t RETURNAL;
int32_t RETURNAR;
if (param_returnaoo) {
RETURNAL = ___SMMUL(inlet_r1l << 3, param_retavol << 2);
RETURNAR = ___SMMUL(inlet_r1r << 3, param_retavol << 2);
}
else {
RETURNAL = 0;
RETURNAR = 0;
}
// Final master out volume on outlet_m before going to master effect //
outlet_ml = ___SMMUL((CHANNELONE + CHANNELTWO + CHANNELTHREE + RETURNAL) << 3,
param_Mvol << 2);
outlet_mr = ___SMMUL((CHANNELONE + CHANNELTWO + CHANNELTHREE + RETURNAR) << 3,
param_Mvol << 2);