receiveMatrix

receiver (of send module) reads 8 positions from a table has "instance" control to be able to add more receivers maxdestinations inlet should be connected to the same inlet as on the send module preset inlet should be connected to the same inlet as on the send module
Author: Remco van der Most
License: BSD
Github: sss/patch/receiveMatrix.axo

Inlets

int32 maxdestinations

int32 preset

Outlets

frac32 table[a]

frac32 2

frac32 3

frac32 4

frac32 5

frac32 6

frac32 7

frac32 8

Parameters

int32 instance

Attributes

objref table

Declaration
int32_t instance;
int32_t preset;
Control Rate
instance = param_instance * 8;
preset = inlet_preset * 8 * inlet_maxdestinations;
outlet_1 = attr_table.array[__USAT(instance + preset, attr_table.LENGTHPOW)]
           << attr_table.GAIN;
outlet_2 = attr_table.array[__USAT(instance + 1 + preset, attr_table.LENGTHPOW)]
           << attr_table.GAIN;
outlet_3 = attr_table.array[__USAT(instance + 2 + preset, attr_table.LENGTHPOW)]
           << attr_table.GAIN;
outlet_4 = attr_table.array[__USAT(instance + 3 + preset, attr_table.LENGTHPOW)]
           << attr_table.GAIN;
outlet_5 = attr_table.array[__USAT(instance + 4 + preset, attr_table.LENGTHPOW)]
           << attr_table.GAIN;
outlet_6 = attr_table.array[__USAT(instance + 5 + preset, attr_table.LENGTHPOW)]
           << attr_table.GAIN;
outlet_7 = attr_table.array[__USAT(instance + 6 + preset, attr_table.LENGTHPOW)]
           << attr_table.GAIN;
outlet_8 = attr_table.array[__USAT(instance + 7 + preset, attr_table.LENGTHPOW)]
           << attr_table.GAIN;

Privacy

© 2024 Zrna Research