How to get around this...?
-
I hope someone could help me with a bit of logical thinking.
I have a simple scriptnode network - a filter and two modulators: one being a global modulator, the other a midi velocity modulator. It's a part of a bigger project and I need both global modulator input, and velocity data. Here's a minimal snippet:
HiseSnippet 2047.3oc4Z80aajaDeWKQ4XmjqMMI2UTfBnG5C9vkZnU1V+AEEmrksxITKacQp9Nf9P.ytTVDd2ka2kx15JJPeq8s9QJ8iPesu0OB22f1gj6pkqjhrrhiaycJ.1hyPN7GG9algjNcCY1jnHVng4F8GGPLLeDp2Xe9vlCwTei1GZX9InN3HNIrnRzAiCvQQDGCSybuTHvbi7FxOe+Wd.1E6aSREYXbFiZSNl5Q4oR6132QccagcH8odZ8d2FssY9MYtrQ.dxgJYDfsu.eN4DrnaqgLLKbjCkyB6wwbRjgY9CXNi6Mjckup+mQinuwkHZXYzCLjRbKlqi.wBoFMGRcc5lrtiL.i1M0KjS4EdFpC0gNQdp23mJUTLcD59Cy0xBubYfmkN7JoAu4.ISMHkWAomf5YGRC3oZD34gn19vly.L310ghpuFl+CTSFzAe91d3KHsBgFSFvVUJU5EEge74+lAi7s4TleQl+ILN4T+s97M+Satwl+4MKNspAClqNwzDxbcIgyUsXmNbQCbK+QdugD9hhWhcGQlzQX4m0mhd29T8sba0pVqiL+19T9oAD+2EQvH1UAe6229PLGK1HhkA8KfDxoBHXdH4RfUq1V1.cHI5BNK.30yrmArElyHWLOKERD2Dq.7AY12DaN9QT9X83po4U4WNd0ho8KKbeBpKkaOb93cs4fWvq8gFuwQoOFczfADadJXyiZ8sKLj7NGJOPAkeA5ktr2fcScf.uAPEQEl9KiUWbh9hS5f0Bxo9OW1bpAKcNUybKcRJqEmjJ+Gp7l2q76mNyVSzcZD47KDciY8ehBxHzwsNM1CBeKEjV2LHOfFvbwgB8sBI+wQDe6D8+ke6lnFB1R6TxVi+diuAeIY.KzKN01DKcL4bXN0kzm3EvfSJXqSL64wX7gT+yyxAeViiYrfi7wfGwQ2HcGhiDEThH7LlALael5TGMcY1Wnqr849r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EkXd+ndHz9NNSS7P8EGhUPq64RcHgcgBzhV6OxgxZQUpfeqXUFSSSyv4x1PyAq.SF+6im3eEpV0c8agC4mfbo9WbEk+cgvpZbVWyCQounS1vnbZgQqubgQPHyLgQf6cAgQJCLio2eDm4AEnjuLrwhim+9299CjMQcfSpRCbGqgk09h+5m9ud6aMVre3tX5U7yavKnwpldGMC+5yPCTj1sy1orEdtIt1TIomDGj7U3Kwokyi90VSQcJn4xPotrBnxhRvZ9KP.7Ajo6aD0.U4OSoluSBgl4eJThemRxOVV0KWpd45Zy0SQ02tVcwmJV01amRkqtSlY8YvnKWY2pVUqYUcmRU1ypVEILxg95jsFDxBvp9zmOc5WG7C0xr7JfjBTI1jukvD6TZJ6nsLTJSshZRmFp6TxpjXwVudscqWsThGaxCmlLUepvZkpq9TsZkcqUduZkW94trXtmPlUXY1L0qxBZNFcCTxa6NkCWOw26rVedgId.pIPUFLvXYyXEK3QncprWks2c2ZU2KShz36ebqK2d.icgGVdh0Ov+Q.6Pu9im6T9YnSirKWTdwxh+u+lk2GWh49XN7v1grWGevBAK8ARIv51W9e4gMPcDsKZYb4zAEhS48Za6rlZlAVdUG3Nq5.2cUG3dq5.qrpCr5pNvZ27.EuAYb0OQbBjDq6Qp69XN4ODlYNi+KH7nV6A
Now, the problem is: in order to export this as a plugin, I need to compile the network to hardcoded fx to use the midi node. But I can't compile it because I'm using the global mod, which can't be compiled ;-)
How to get around this?
Thanks!
-
@tomekslesicki Fair point. The midi node had a Custom mode which allowed it to use a custom SNEX class, but nobody ever used that so all it did was preventing the midi node to be used in an uncompiled network.
I've removed that mode so now it should be compilable.
Also I've spend some work the last few days on making the global cables work in a compiled node - however adding global modulator support is a bit more tricky so I don't know whether it's feasible to do so, but if you don't need sample-accurate resolution, you can always hook up a Global modulator to a global cable and then use that communication channel to send your modulation value into the compiled node.
-
@Christoph-Hart awesome, thank you! I’ll give it a shot first thing tomorrow!
-
@Christoph-Hart so something like this will then work in a compiled plugin? :)
-
@Straticah yes.
-
@Christoph-Hart :love-you_gesture:
-
@Christoph-Hart sadly it still can't compile with the latest commit :-)
I wish I could use the hardcoded version instead and just add the modulators there, but I can't add modulators to the polyphonic version as NUM_HARDCODED_FX_MODS=6 doesn't work on polyphonic hardcoded effects (see the last posts here: https://forum.hise.audio/topic/4892/mpe-input-into-scriptnode/10?_=1704395890912). This is for a synth project, so using monophonic hardcoded fx would mean I'd have to duplicate everything x the number of voices, which I really, really don't want to do for obvious reason.
-
@Christoph-Hart and when I try to hardcode the network, I get a strange error:
No Node
Something is a little bit funky here ;-)
-
@tomekslesicki Hmm, are you sure that you're on the last commit? I can compile a very basic network with the midi node without issues:
HiseSnippet 1275.3oc2X80SabDD+NCKT6PQMQjp938PefHgP1MooUJOD.ClX0Xvhygl2PK2sFux6s6081Cvspu2OV8iP+njuAsyt6c9tCrbAmzDkZj.Oyr6N+lYm+szWJBHIIBoia8AShINtqg7mvUiZOBS4Nc22wccTObhhH8rr1aRLNIgD535tzgZFt0W1w74cubOLCyCHErbbNUPCHulFQUEb6uyOQYrN3Px.ZToU+rc5FH3sELQJfmkPMchwAiwWPNBqWVMji6JGDRUBouBqHIvZ1SDNwej3Jtc8mRSnmyHZhVN9vAYY6zdDkE1O2VSbbbQ8Kr7krV9FndzP5T9EdfuxHvqXGk8At0lGjZcOfjaIHsrEROD4GHowpBIZ77.TWNbgLDCt5xPwtVG2+D0V.Kfq1NBOlzQBDS2vlOuYys7fe8jWLLkGnnBtmfejPQNlu4SZ7aMp232a3cSQCGNSYZ0HELFQNSw5aW4713l7znyIxs7tDyRISWHX9U8oqb27oAVqtzBE7tbp53XRFcGAKT6qze+12.NYtM3auo69XEVeojwCVWLQpnZ33tO4RHp1dEUGsOIYrRDCw0259ChbDgoLrpZ3jNuIS.3OpbGpun3IT0jx4U2iXrlyMF6tBwGh5SUAilMFqMCLBdp+KvXVl4WhNX3PRfp.fKi571EMMb9p2s1s8QOF8JrLLP.wNdYECA0qwwFERrB571VUv0QD0UB4Xcc0DS54YCutEn6OPEMbNQjpn7K5gUR50PYsiRi7gxmADvWw4DFb3H2Z5XaKcSMs99xmvCMD+M7ISXKMsalvV4BmQPSir5RYdg0xH8to0mWQ5OPEY+wRRLVRFH5yvS1LAGEyHm.tgs7NmIBF6S+UxsKYDagvd5UrYPlosHUVV4yIGeQ8nrvHSahogTqZ88khq1kwDW0VDESyRas1QZBTAL7XtOkQL8mMlJQlXVxpnlaC+X2beAaR7HAmFnu+rGUtIsajHEPSlc8Jbx.LkoKH3V6HHC.DzAG.N2I8wpQ5hH5BxPFKQtcvzL2J3sHVQ6k0GRd2equBzej1AX58ujVtICMSa1dgQPuY6wWQ6Otj1KVxhoP2RJbEiBqpq0M5BB6LZ5dpjRcVry.nofRq0rZqmV0mpih0TGBgsNNE0kGfkWPTIYMp3j.6stwC0E..BgCCc5ikvDTP0IMqUQ1SqfqonaEh4Ao0PcSNUKM.yxAFDPTxEYUZEOTCTD72s07uWdmZkwE.kbJnRTOJOS6Hc.rSO70SoaAzZjjaq6lpD..l15urA99a56IDiivlry26AGV2J7AHeHx0LItwP9ZCs2Oiuj3cHAho08qaMmgw+q65v3w24gwONPApefDyShEIUNXeRDcffqswBluIAl8j7KmnCTKyus.Kmon28xNfQNy83iUoRSDedQnRSdbiloKe2poWcHrRqeFyDr7mfWK7gYRtOgCaV4AM0ywnOU2v+.9kDFjXXv3ifLgg3TlJma0.6dBtHukTws9IDnw6EWnKETf8YZP6pTvyHK3rwNmPXDb4H3ucmWCQdXooX6h4Kt+Otal2WeCxBWOc1n2muORXo+W+HgOJS+8wPGQ3.o3rroWzwoeggCX2by+yk5ndZZuVNWZa2UbWpG04rffpG0s132sna7oK5Fe1htwueQ23yWzM9CK5F+w+8MpaBkM1iN0DFZr+AlQSbcOfignbSFgy+vRQmmJ
-
@Christoph-Hart I believe I am, I’m always downloading the whole folder from github and building again from there just to be sure. Maybe I need to remove the midi modules and then add them again, I’ll check that tomorrow
-
@Christoph-Hart hey Christoph, I just checked it, and I know what the issue is now. The midi CC node works as expected. The normal midi node (the one with gate, velocity, note number and other stuff) is still causing this issue. Could you please take a look at this?
-
@tomekslesicki But in my example above I'm using the MIDI node, not the CC one.
-
@Christoph-Hart before I wrote this, I downloaded the develop build from github to another drive and gave it a fresh bulild from there just to be sure it’s the latest version. I’m on Mac so maybe that’s system related somehow?
-
@Christoph-Hart ah, wait, my bad (well, kind of)!
You're right - I can actually hardcode the network now with a midi node.
BUT
I still can't export a plugin if I'm using the midi node in a non-hardcoded network, which is also the case with the project I’m working on.
Also - I wish I could use the hardcoded version instead of the network and just add the required modulators there, but I can't add modulators to the polyphonic version as adding
NUM_HARDCODED_FX_MODS=6
in Projucre doesn't work on polyphonic hardcoded effects (see the last posts here: https://forum.hise.audio/topic/4892/mpe-input-into-scriptnode/10?_=1704395890912). This is for a synth project, so using monophonic hardcoded fx would mean I'd have to duplicate everything x the number of voices, which I really, really don't want to do for obvious reason.
-
@Christoph-Hart could you please enable plugin export for non-hardcoded networks with the midi node, please?
-
This post is deleted! -
Ah now I understand, you were trying to export the plugin, not the dll - which you mentioned like 10 times :)
Should be fixed now.
-
@Christoph-Hart I was actually trying to do both, I need both compiled and uncompiled network on this one :-)
-
@Christoph-Hart could you please enable export for uncompiled nodes using the Timer module, too, please?
-
@tomekslesicki Sure, there you go.