I am using the modmatrix opcode to make a plugin to control other vsts.
For some reason, the table doesnt update properly when I load presets.
Both using Reaper presets and the cabbage preset system dont update the table. One value it can handle, but somehow more just doesnt work?
Any ideas?
I’ve been trying different things all day yesterday with no luck.
Here is the full csd file:
Here is the snippet that likely is causing the problem:
Sorry, i’ve never used that opcode, and can’t follow the code you posted as I’m not really sure what you’re trying to do. Can you produce a simple, extremely minimal csd file that illustates the problem?
So: when the I update the UI, it writes to the table as expected. When I load a preset, either in cabbage or in Reaper, the UI updates, but the table does not.
Can you prepare a minimal example, this is still far too complex. As you know, Cabbage doesn’t save tables, but the fact that the UI is updating correctly means something is failing to trigger the table to write. The cabbage get value opcodes have an option trigger on i-pass parameter:
With the code like this, when I load a preset, kIndex goes from 0 to 70. When I use printk2 it never changes. So somehow the index doesn’t update properly and thus it doesn’t write every nslider into giModScale table.
Could that make sense, based on how the opcode works?
I’ll try and actually get a full .csd file that’s clear later:)
You could be right, this all sounds frighteningly familiar! Would be great if you could produce an extremely simple example so I can debug it more easily.
I have hacked a fix lol
I added a button that will trigger a loop that cycles through the entire list of nsliders, and writes to the function table. I have to manually press that after loading a preset lol
I have updated now to the latest version from dev.azure. I am on windows 11. I do have linux mint installed. I can try there too. Maybe it’s windows being silly