I am trying to add tap tempo support to my Control Chain accessory and I get this error in the UI when trying to assign the BPM to a control chain control:
But I am defining my actuators with the following supported modes:
This is not supported in mod-host and mod-ui projects, it is a feature coming in v1.10 only.
Are you running Duo or Duo X? I can send you an early build in PM so you can keep development for this.
Ah. Thanks @falkTX. I am running a Mod Duo X. It would be interesting to test this out. When is v1.10 due out?
I am also seeing another weird problem with long option lists assigned to a button. I don’t have a real Mod footswitch to test this out, but it seems like sometimes I get a parameter error and I am wondering if it is because my acknowledge is not getting back to the host fast enough. Is there a timeout on this? I’m trying to debug this today. It works for short option lists (~6 or less) but fails intermittently for longer ones. It looks like my footswitch gets the assignment and sends the ACK but sometimes the host thinks something went wrong.
big lists is for sure a problem in Control Chain.
we had the same issue with the main device controller, which we solved by using pagination.
This has not been done for Cotnrol Chain yet, but it is in our plans. We tried to push it for v1.10, but Dwarf took higher priority. So likely something for v1.11
Slow devices get kicked out yes.
I will send you a PM with a fresh 1.10 build, do note it still experimental and has to go through the usual RC phase.
To be released very soon, in January.
Hi @falkTX - so I have tried this and updated my code to implement tap tempo.
The good news is that I can indeed assign tap tempo to my actuators now. However, when I get the assignment from the Mod Duo X, the assignment mode seems incorrect. Here is the assignment I receive:
Mode 16 is CC_MODE_REAL. Since I am expecting an assignment mode of 8 (CC_MODE_TAP_TEMPO) my code that implements tap tempo never gets triggered. So perhaps this is not 100% implemented on the Mod Duo X side yet? Unless I am missing something?
OK, so this seems to work and I have updated my code and have tap tempo implemented. Cool!
However, I still get this whenever I make the assignment. But it seems to assign properly and function.
That is the same error I see when assigning long lists, so I am wondering if is related (and due to timing). I could also be doing something wrong. But I will continue to play with it and debug. Thanks for the help, @falkTX!
OK, I can’t seem to figure this out. I now have unreliable behavior where sometimes my assignments work fine and other times they fail with the error: “Bug! Couldn’t address parameter, not allowed”. I thought it was a timing problem, but I am responding with the ACK in about 50ms. The control chain response timeout as far as I can see is 100ms.
When I get the error, I also see this in the browser console: Addressing failed for port :bypass hardware.js?v=1.8.5.1103:729
I don’t know where the port :bypass is coming from. Is there anything I can do to help debug this problem? Maybe some more verbose output?
Looks like I am just on the ragged edge and just missing it sometimes now that I have implemented tap tempo and am doing more calculations. Is there any way it can wait longer thank 100ms? If not, I will need to look at how I can speed up my code. I think this is the same issue I am seeing for long lists as I initially posted about a year ago.
Actually, I think I know of some pretty silly additional queuing that I introduced recently that is not helping this situation. I will refactor that first.
@mark_melvin hey, i’m really appreciating this detailed discussion; looking to implement some Control Chain builds soon, so discussions like this are really helpful!