Scriptnode DSP Compilation help (again!)
-
@crd hmm... the scriptnode network is empty in the snip.
-
@dustbro
Okay, I've been at this too long and making silly mistakes.duh. Once the node is wrapped the snippet function doesn't work since it's referring to an external file (?).
All that was in the snippet is the math.expr node with the Hise saturation formula in it. It wraps fine but fails to compile. Here are the first few error messages: Here are the first few errors I am getting:
/Users/christopherdammann/Desktop/git/test5/DspNetworks/Binaries/Source/chain.h:36:35: template argument for template type parameter must be a type
using chain_t_ = container::chain<NV,
^~/Users/christopherdammann/Desktop/git/test5/DspNetworks/Binaries/Source/chain.h:42:55: unknown template name 'chain_t_'
template struct instance: public chain_impl::chain_t_
-
Here is a screen grab of what I'm getting.
-
@crd Make sure you use float values for all numbers.
-
@dustbro Good to know but I don't think that is the issue I'm having. I'm either missing something obvious or there is something up with the latest build that is making compiling not work for me. Possibly both :)
It was all working well for me but I can't remember what build that was.
-
@crd Are there any other dsp networks in your dspnetwork folder?
I'm able to compile the math.expr node here. -
@dustbro I've been trying in a fresh project.
I will start a new thread so I don't high jack this one any further.
-
@crd feel free to hijack the thread! It's all totally relevant anyway.
So when I 'Wrap into DSP Network' I get a copy of the Script FX (see image). Is that right?
Also the box in this picture 'Create an Embedded Network' - What does that do that's different to starting a new one?
-
@danh I get the same duplication. I'm not sure if it's intentional.
Embedded puts the scriptnode dsp in the project itself rather than create a network file that you can share between projects ? I think it's intended for prototyping. That's my best guess. :)
In the latest build it seems like things that didn't need to previously be compiled like timers now need to be compiled... I'm pretty frustrated. My project used to export fine but now no luck.
-
@crd yes the whole thing is super frustrating :face_with_tears_of_joy: It can add so much to a plugin but take so much of your life !
-
@danh I mean I just rebuilt my script fx from scratch, wrapped it into a DSP Network, unloaded it, tried to reload it from the menu and..... crash!
Try to re-open project... crash!!
-
@danh I am having so many crashes it's hard to pinpoint what's what. Sometimes I can wrap and then open the compile dialog (which then fails in terminal). Othertimes after I've wrapped a node then project then crashes immediately when choosing compile all dsp. Previously I worked around this by just removing everything that needed to be compiled but now it seems like more things need to be compiled in order to export vsts.
@Christoph-Hart any ideas about what's going on?
-
@crd I'm going to test with more basic patches - I saw you choose CI in the Build Config option when trying to compile the dll - is that preferable to Release?
-
@danh I have no idea. I've been trying both "cl" and "release". cl is what I choose when building Hise from the source code... Maybe that is where I am going wrong ?
-
@crd well I made the most basic fx I cld, stuck a chorus in the main container and managed to wrap into DSP network and compile to dll..... but.... how can you tell if HISE is using the dll? It looks the same to me now that I have reopened the project?!
-
@danh in Hise (not the workbench) under tools there is a show project dsp dll option that will tell if it is using the dll file.
-
@crd thanks, I still can't tell lol!!!
I couldn't find a dll anywhere in the DSP Network folder in the project folder
-
@danh I think that means you are using the dll you created.
-
@crd ok thanks! Any idea what the 'InitError' is about?!
I also managed to export the standalone of the project too which is good....
Perhaps there's something weird about my script fx, but I did manage to compile it to dll a few weeks back
-
@danh well I exported a standalone but the standalone crashes instantly so....