Problem using rules to transmit individual bits

Please tell me if I’m doing this wrong, or if this is a bug.

I’m trying to turn the operators on and off on the TX81Z the same way you showed in the manual for the DX7, but I can’t get it to work.

The TX81Z uses the bits in a similar way to the DX7.

If I pass these bytes without the rules it works, but not with them. When I use the rules it only transmits a 00.

@martin Does your TX7 preset turn the operators on and off? I’m getting the same 00 outputting for that as well.

@urbanspaceman. Yes, it does:

I can see you have your onValue set to 0 and offValue to 1. It could be the reason, I did the same mistake in the past. I suggested to @Tomas that the opposite order of the fields would be more logical.

@martin That’s strange. I’m getting this with your preset on my device.

@martin I think I got it. I must have been using obsolete commands. It is working now, however, it only works properly if the pads all start in an ‘off’ state (or if I load the preset with them all on and then turn them off). Since the ‘INIT VOICE’ has all the operators on it would be good to start the preset with all of the buttons in an on state.

[
  "43",
  "12",
  "12",
  "5D",
  {
    "type": "value",
    "rules": [
      {
        "bitWidth": 1,
        "byteBitPosition": 3,
        "parameterNumber": 10
      },
      {
        "bitWidth": 1,
        "byteBitPosition": 2,
        "parameterNumber": 11
      },
      {
        "bitWidth": 1,
        "byteBitPosition": 1,
        "parameterNumber": 12
      },
      {
        "bitWidth": 1,
        "byteBitPosition": 0,
        "parameterNumber": 13
      }
    ]
  }
]