Cabbage Logo
Back to Cabbage Site

Channel issues when restarting plugin

heyhey,

I am making a modmatrix plugin.


The UI is generated with Python. (convert.py)

It outputs the code to cabbage_ui.inc.

This is the plugin.

I have run into an issue of the channels not updating when reloading the plugin. When I first open cabbage and run the plugin, the top rsliders work, and the bottom ones, which are the output, update like they should.

However, when I run the plugin a second time, they no longer update. The same goes for using the channel changed opcodes.

Is this some known bug?:slight_smile: My professor mentioned something with strings not updating properly at krate.

What exactly do you mean when you say reload the plugin? Do you ean reload it in a DAW? Or simply hit save in the Cabbage IDE?

hit save in the cabbage IDE

it seems to be working without issues in Reaper (tho we had trouble with that last week)

Does it work if you include the code rather than use an include statement?

that seems to be doing alright, yeah!

The include code was in an instrument and generating cabbage code. But I have now added it manually to the cabbage section and no issues rn in Reaper.

Is it possible to do an include file inside the cabbage section tho? Whenever I do that the ui isnt created

No, you can’t include Cabbage code within the Cabbage section. I’d say it might be an issue with the path. If you use an absolute path does it work? If it does we know what the problem is, but I’m afraid don’t know how best to solve. You could place the include file in a folder that gets created by your installer. And then pass the absolute path to that in your .csd file. I’ve seen people do something similar with other assets before and it seems to work well.