Uninitialized FX chain
I'm getting this message in the latest version of HISE when opening a project that contains effects:
FX:! Trying to add a processor to a uninitialized effect chain (internal engine error).�
Interestingly, after restarting my system and loading the project again this message has vanished. However I have a new one :)
So I have this line in a paint routine function:
g.fillTriangle([this.get("width")-18, this.get("height")/2-2, 10, 5], Math.toRadians(900));
and HISE is complaining
paintRoutines.js (88): '-' is not allowed on the String type
Ah yes sometimes when you load a project from XML it looses the value type so a
“50“ - 18is sometimes quirky - that‘s the weirder corners of a type agnostic scripting language.
This can be easily solved by wrapping the
getcalls into a
parseIntcall. But I‘ll take a look at the internals maybe I can do something in the importer code that prevents this.
@christoph-hart Yes parseInt was the solution I came to as well
I just opened the project again and the uninitialized FX message has returned... both with the XML and the .HIP
This happens if you create a module before the processing is initialised but actually is not too critical (it‘s rather a warning than an error)
This string thing is more of an issue, it also causes the min and max values of sliders (and I would think other controls) to be strings which messes with some of my other functions that are expecting numbers.
Can you make an example that consistently reproduces the issue? It only causes troubles under certain conditions that I haven‘t figured out yet.
If the issue doesn't appear straight after pasting the snippet and hitting compile then it needs to be saved as XML first and reopened.
I think I solved the FX chain issue, it seemed to only be occurring when Jack hadn't been started, I was having some teething problems with a new audio interface.
Ah I think I know how to solve this. Will do it tomorrow.
This is fixed now.