• 0 Votes
    17 Posts
    182 Views
    David HealeyD

    My network contains a lot more than just some gains so recreating it all via scripting is a pain and means I don't get to work with the nice GUI. Is there a simple build network from JSON type thing? Edit: dsp.createFromJSON might be it..

    Another option I thought of is I can park all the chains in the multi as unused nodes, then in the script use this to add them for just the number of channels:

    const dsp = Engine.createDspNetwork("SimpleGain"); const numChannels = dsp.getNumChannels(); const multi = dsp.get("multi"); const numPairs = numChannels / 2; for (i = 0; i < numPairs; i++) dsp.get("chain" + i).setParent(multi, i);

    This works for my multi channel simple gain because each channel has its own chain, but I don't think it would be a good general solution for all networks.

  • 0 Votes
    18 Posts
    3k Views
    Christoph HartC

    BTW you can optimize the wet path like this:

    99dfcf6c-6697-40ef-b4bb-8dcad3e21327-image.png

    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).
  • Import A Scriptnode Snippet

    General Questions
    3
    0 Votes
    3 Posts
    776 Views
    Christoph HartC

    @d-healey this is for copying nodes inside a network. If the clipboard contains one of these snippets, it will show an item in the node popup that will create a new node based on the clipboard content:

    6bedc52b-45c2-48a2-836d-822ecf0f8ffe-image.png

    The import from snippet function in the scriptnode "homepage" isn't functional yet (and it's a bit useless because you can just import a HISE snippet with a node which is why I never bothered implementing it).

  • Get Network Name from Hardcoded Master FX

    Solved Scripting
    10
    0 Votes
    10 Posts
    2k Views
    oskarshO

    @whoopsydoodle yes you can get the Hardcoded FX as a Slot FX and use getCurrrenEffectId()

  • 0 Votes
    15 Posts
    2k Views
    David HealeyD

    @dannytaurus said in This script processor has a network that consumes the parameters:

    We should just use var everywhere and let the parser/compiler sort it out.

    😢 Probably true...