deskmix1

8 input s-rate mixer, square gain scale controlled with the deskCtrl1 module (load as many as the deskCtrl1 modules as that you need channels!)
Author: Remco van der Most
License: BSD
Github: sss/mix/deskmix1.axo

Inlets

frac32buffer input with unity gain

frac32buffer 1

frac32buffer 2

frac32buffer 3

frac32buffer 4

frac32buffer 5

frac32buffer 6

frac32buffer 7

frac32buffer 8

Outlets

frac32buffer mix out

Parameters

frac32.u.map volume

Declaration
int32_t gain[32];
int solo[32];
int32_t in[32];
int Solo;
int mod;
int i;
Control Rate
int Solo = 0;
for (i = 0; i < mod; i++) {
  Solo += solo[i];
  Solo = Solo > 0 ? 1 : 0;
}
Audio Rate
in[0] = inlet_1;
in[1] = inlet_2;
in[2] = inlet_3;
in[3] = inlet_4;
in[4] = inlet_5;
in[5] = inlet_6;
in[6] = inlet_7;
in[7] = inlet_8;
int32_t accum = 0;
for (i = 0; i < mod; i++) {
  accum = ___SMMLA(in[i], ((Solo > 0) & (!solo[i])) ? 0 : gain[i], accum);
}
outlet_out =
    ___SMMUL(__SSAT(inlet_bus__in + (accum << 1), 28) << 3, param_volume << 2);

Privacy

© 2024 Zrna Research