[Scriptnode] control gain via knob using only 0.5 to 1.0 range
-
@d-healey I just figured out another method by altering the curve of the gain knob. Maybe this is better???
HiseSnippet 1115.3ocuV0raiTDDta6LYiytfXEvMN3idkBQ1PXAo8fcrcLXAIYTlPzBWx1om1ws7LcOZldRhAwctg3F6Md.3.GAtPN.OA7.vq.uAPUSOwd7OaHxBVaIKWUWU2ecUeUUsarlKRRzwDZkiGGIHzG33MVYF1YHSpH86Rnupy9rDiHtpUU6wQrjDgOgRK+gnBZk0HYe9qlsYALEWLUEgbhVxEehLTZlp0s0GKCB5w7EGKCKX8Ns5y0pN5.cJfmxN0IQL9H14hCXnYkbHz02yWZzwdFlQjPnq0V6O1an9Rk09SjIxyBDnPChGrQV08zA9HhQsjNCkA9t2buSHvt3NMJT1FEdCm8k9xI5mFMdsrEpN0ihwCZoYgW4YfWihvqdA3sDHQK.o0rP5gNd7XYjY5JHdtuSeEjbFvfvdQnXskPu1oiFLPY1NjMRzKFDl3PsGWu9VUgedzSFjp3FoVUUqNPaDGpp8nM+xMqr4WsY04WZvfktFdLw5f.Q7RWFyzw2li0TogmIh2p5ErfTwDCgq+rwTmWbLsXJmau0ELTq5qjlCiDpWDQfjGpf+8o86xLLLQjqCrKRDajHDncEW.rZaZohSWQxHiNB30Kjy.1h1OMfYlkBg0M4K.wfYxaXxQkHMiKVW8eFu5tBwG53JM7gKGikVBFgH0+GXLuZ7Ub1av.A2LEfq4z6ou7J81LuzCNS7vePtX0dOswRK59ZmoD7nXQDKVbr1MfMtVBKLJPbDfwspdVflOxS9EhEqJhrPnMZQM9PlRIBRVkhm0uyQkF2dR4HcpQpNeelIVdETEdPZnGzllK5jiNPGsDVCYkqixHuvSn7yD9a3S9hMPYZ9hMtYwBkeGHLWpiGkkNx+OgdOarOIKHe5fqZP1MHPeYGcXjLmkB4fLct5fwQC0JIGUYs3FjtanNENjb39QrjiYx.jV6kl.MG7OT4AFmMFiV9DQbR1FeOm5aCeAZ9AZeXo06w3PfcrKyLDqWv9M.4T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not -100)
And you might still want to play with it's skew factor -
Or a simple cable_expr node if you plan to export the network later.
HiseSnippet 1182.3ocuWE0aiSDDdcRc50dGHNww69wTTunDnWAARzzl1.QPaipKUGO0aq8ljUwdWq0qaa.w67FOeuwOAdk25+A9ib+CfY75D6jlzKDcbIRQYlclc+lY9lYs6pjdr3XohXsw4ihXDqmX6NRnGzZ.kKHcNjX8g1GSi0LkiQ0AihnwwLehkU4uEUXswZjzOuYuCnATgGKWEgbgj6w9AdHWmqsayumGDzl5yNmGVv5cZ1wSJZICjI.dJaWmDQ8FR6yNghlUxlXU4HetVpb0TMKlXs1AR+QtCj2HL1eAOleU.CEZPbgMxntsLvGQLpkzZ.Ovu633Nl.6R27rPYSV3Y1Gy84SzmmM9nzEbx8nX9vpzzvq7TvqQQ3Uu.7lCjrJ.o0LP5o1tdJdjNeEDOO1ti.JN8nPZuHTL1RrtytkDLPnqERGxZq.gINTc25021A9YqutWhvSykBGo3Dolcpn5Va9Katwl+5lNytTudycM7XTxf.lZtKiUZ0C4XUQR3UL01NWSCRXSLDB+oyo1KNmVrj6Yh5BFJEcDb8oQLwhHBjrTE7uerygTMEKDY5.6hXJMGgf0grqAVsorrg8gr3gZYDvquWMCXKR+j.pdZJD12js.jClptgEGQLWOpXe06Ld0xBwmZ2kq8FLeLVZNXDxT+efwrtwOv9nd8Xd5b.tlc6W99q0ayrVO3LwC+IYhNseYi41z8a14D7HEKhpXmK6FPGUMlFFEvNCv31NWEH8F5x+Y186JhLP3.zhpdCnBAKHdUZdprzYkFObQ4LYhlK5eLUq32BcgmjD5Bio8XsxPGnypD1CYjqixHuvkI7SE9G3S1hMPYqrEaLdwBsemvz2HUCSKGY+mXstI2Gmljur2sMH6GDHuokLLhmwRgZPpttxfQQCjBtGpxXwXjtenLANjL39cz3yo7.jV6lDCCG7OU3BFmdMlU4KXp3zMdc650fu.M+DoOrTk1TOHwNpKUO.6Wv4M.4jop4MgjNEVKxSvsX70blrD.wPLzwK4v5SWpBtyClSiiaJYUtv3GCCEkf9uRlyoS7E3pdz.xEHC.chfmBZdFhsMl5QgB9kraiTjoBgmkFB.WpVAKVdPOCDKMCDq.WCAfHCbaYyEQIZmuwodsW3rmSUi3yQwsb9TmcqU24qbvzMYl8YcXZ6UI8mDkkI4ynNmp5yzwYCsELOCkHM763iXnOVYljZM5ReFFRg7MleGKAG3wbQ1gkOq6X5syn6M64pYQXybQ6bGxtwjjKZoINLav8158SzxPnY0eRILqxkg9opYOFpYJVs9y9bYukRUohkpoC8x+2C8G0blP+Od8q+q8VbnmkxeKQdAbTYovQyee4vwq93C+68LO4janTpG.S0lEL6z7sb9+zc2OO.k6k47uq+e9IMMshmwhY5EvCVLirhA74Zd2yPu21UriZwMXSMbYp1rwzcxAR4vPZ5j8U6YrdebOTH0SIuLabHFtOJUCzcHReQjMf2HBjcZPt1jnrwKGHgvKFbomG9vIOGd7x46ymsB974qfO6rB97hUvmcWAe9hUvmu7A8Aemrr4GHkDTz8nTxkk0QBjSlNVj7uvSlR+l
-
@Christoph-Hart Oh I forgot about that one :thumbs_up:
if you plan to export the network later.
What do you mean by this? because it would take less resources than a table?
-
-
@ustk no it means that you have to compile networks that use a expression node because that is using SNEX behind the curtain.
-
@Christoph-Hart oh ok... I never "think" SNEX here by default...
-
-
-
I've gone with your method Christoph. I have compiled the networks in my project to a dll and I've clicked the little snowflake in each network so they are using the the dll.
When I try to export my project though I get this message.
cable_expr needs to be wrapped into a compilable DSP network
-
if you've compiled the networks you can replace all the script FX with the hardcoded counterparts and get rid of the scriptnode overhead altogether so that error message is actually a good advice however it's a bit misleading so now it says:
-
This post is deleted! -
@Christoph-Hart Thank you
-
The compilation worked when using hardcoded effects. However one of my networks works fine as a ScriptFX until I try and use the compiled version, then it no longer functions and I don't know why. It's a very simple network.
HiseSnippet 1464.3oc6XssbaaCDET1P9RbZSlzO.8nyLIZHkk7koOzDeqUSqbzX45l27.SBYgHR.NjPwVsSeueV8Sp+As6RPJQJKKKqFmIOD4Y7vEXA1C18rKtzN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cOm4VyXIiLInjQKgbzZDIksX2LR1AjQewJTSSucfVE.olYaIkRsPUVOKx5PtSlVbnObtpayklQrsHE39IXFXDhl9dH72M4ZVjYqaYqDedAa8DvVQ7pWMaqb2T3REBVKkKXUdbvZU5qcrmLdgxPJbHVkFOfncUPmjeN02y1wYanpYe90FzRrdAsQ050pUaG6c1o9t0c1xdOhg5mPZxEsgJMSGFSxYVkhV7gACTgsrcr2BTXu81s9d6X6jUOJPoz8fB4Y4gko0vYm742orA8TdLWal1BSNIeImBYZE5IYm57UX1f1L9brWWle1LBN5BLLLq9wiMmOyYUZR548l99+xRkMUSLX9AsjtupFyaR6ZzODh6hNwdOeC8CdwgUy56AsHKluVZ5EWKCTy6n5Jk1lIIE0KOAmNqRzaWfcOdRKSOcfeNhpyiJQcUSHs9mCZ5G73vQSKZomlF9Lc8IJ5QmmxbyScrUnlWTXxASdLL1SfK3ANgjmpHcBdA0YupfR6Ta6sraznQM6cmfKTnlSZRfyWnYHYb4u7SPtyI3103+5oH95oHdz3dENv+RyyA9WkdXzveCt9wD293tAYwKUTXNtOCVPX9ttyj2irvcdxtsxB421Wo5GvRtK+h8pZeNd4g.laj5hzaKiKtUSZABtxjmddMZKTthC4i4c7ABOwEtt3yQ8Z31aSeL0Vfwr0BLl5KvXZr.iY6EXL6r.iY2YNF7E4SqDhLYng1GkPtrrNRxtz27fbj+CPzZIoe
-
@d-healey If you create public parameters at the FX level (the upmost top level bar) and connect them to the Delay Time and Pans parameters, it works.
After doing some tests it seems that they both don't retain their values if not controlled bymainpublic parameters. -
@Matt_SF I dont quite understand, could you post a snippet please?
-
@d-healey sure :
HiseSnippet 1742.3oc6YszaaaDDdokV4GwIMoMnnG0gdvAHQPTV9E5g3mJ0nQ1BRNN4lwFpUVLhZWVxU1Qsn26Oq9Sn+Tx+f1Y3RZRJSaIK+3PPjAL3rulucluY1kCa3Is399ROhw7GMzkSLVj1ZnP0cmtLaAY+cIFOgVm4q3dE0Ms8PWluOuMwvH2avFLlOO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ameter. Sorry, I'm the one being unclear
-
Wow that's weird, if the delay node isn't connected to a parameter, it will in fact be initialised with a zero delay time (because the sample rate isn't known yet) if used in a compiled node.
It's fixed now, but weird that I haven't encountered this yet, it's rather basic as you said :)
-
BTW you can optimize the wet path like this:
- Use a multi container, this will automatically split up the stereo channels into LR (the
mul
node does nothing and the jdelay delays the right channel only. - If you don't modulate the delay time you can set the limit to the exact value of the delay time parameter - this will save some memory because the delay won't allocate as much (in this case it's 1-2MB of memory).
- Use a multi container, this will automatically split up the stereo channels into LR (the