dispMatrix

display module for the selected destinations for the send/receiver matrix modules
Author: Remco van der Most
License: BSD
Github: sss/patch/dispMatrix.axo

Inlets

None

Outlets

None

Parameters

int32 instance

Attributes

objref send1

objref send2

objref send3

objref send4

Displays

bool32 0

bool32 1

bool32 2

bool32 3

bool32 4

bool32 5

bool32 6

bool32 7

Declaration
int16_t cnt;
Control Rate
cnt += 1;
cnt = cnt & ((1 << 10) - 1);
if (cnt == 0) {
  disp_0 =
      ((attr_send1.selact == 0) && (attr_send1.destiny == param_instance)) ||
      ((attr_send2.selact == 0) && (attr_send2.destiny == param_instance)) ||
      ((attr_send3.selact == 0) && (attr_send3.destiny == param_instance)) ||
      ((attr_send4.selact == 0) && (attr_send4.destiny == param_instance));
  disp_1 =
      ((attr_send1.selact == 1) && (attr_send1.destiny == param_instance)) ||
      ((attr_send2.selact == 1) && (attr_send2.destiny == param_instance)) ||
      ((attr_send3.selact == 1) && (attr_send3.destiny == param_instance)) ||
      ((attr_send4.selact == 1) && (attr_send4.destiny == param_instance));
  disp_2 =
      ((attr_send1.selact == 2) && (attr_send1.destiny == param_instance)) ||
      ((attr_send2.selact == 2) && (attr_send2.destiny == param_instance)) ||
      ((attr_send3.selact == 2) && (attr_send3.destiny == param_instance)) ||
      ((attr_send4.selact == 2) && (attr_send4.destiny == param_instance));
  disp_3 =
      ((attr_send1.selact == 3) && (attr_send1.destiny == param_instance)) ||
      ((attr_send2.selact == 3) && (attr_send2.destiny == param_instance)) ||
      ((attr_send3.selact == 3) && (attr_send3.destiny == param_instance)) ||
      ((attr_send4.selact == 3) && (attr_send4.destiny == param_instance));
  disp_4 =
      ((attr_send1.selact == 4) && (attr_send1.destiny == param_instance)) ||
      ((attr_send2.selact == 4) && (attr_send2.destiny == param_instance)) ||
      ((attr_send3.selact == 4) && (attr_send3.destiny == param_instance)) ||
      ((attr_send4.selact == 4) && (attr_send4.destiny == param_instance));
  disp_5 =
      ((attr_send1.selact == 5) && (attr_send1.destiny == param_instance)) ||
      ((attr_send2.selact == 5) && (attr_send2.destiny == param_instance)) ||
      ((attr_send3.selact == 5) && (attr_send3.destiny == param_instance)) ||
      ((attr_send4.selact == 5) && (attr_send4.destiny == param_instance));
  disp_6 =
      ((attr_send1.selact == 6) && (attr_send1.destiny == param_instance)) ||
      ((attr_send2.selact == 6) && (attr_send2.destiny == param_instance)) ||
      ((attr_send3.selact == 6) && (attr_send3.destiny == param_instance)) ||
      ((attr_send4.selact == 6) && (attr_send4.destiny == param_instance));
  disp_7 =
      ((attr_send1.selact == 7) && (attr_send1.destiny == param_instance)) ||
      ((attr_send2.selact == 7) && (attr_send2.destiny == param_instance)) ||
      ((attr_send3.selact == 7) && (attr_send3.destiny == param_instance)) ||
      ((attr_send4.selact == 7) && (attr_send4.destiny == param_instance));
}

Privacy

© 2024 Zrna Research