Oversample Node Bypass Question.



  • I know I can hook up a knob to bypass on most modules but I want to bypass an oversample module and there is no bypass on that.
    Looking at the forum ,I should be able to do it via scripting but there is one issue I am uncertain about.

    How do I get the equivalent of ScriptReference of a module , say I have a dsp Network- split module and two chain modules inside of that , each containing 4 modules and I want to script the behaviour of one of them, namely the oversampling module in this case.

    I am sure there is some kind of system for this but I just started using the nodes.
    I imagine i need to designate in the script , dsp network -split -chain 1 -oversample 1 ?

    Bypass.jpg



  • @lalalandsynth Here You Go:

    HiseSnippet 1121.3ocwW0raabCDlTxqqsRR+AsAnGExIG.WCoT2e.JPkpkrKDpkyBKa2jSAzbokH7tjK3RYa0h9LzysW5iP60dn.4Enm5KPeDReBRmY4Ju6JIjJHfzrGDV9wY39My2vgT9FMWjjnMD5lmLIVPn20avDkcTmQLohzqKg91d8YIVgotCZuIwrjDQ.gRq90H.cy0HoOun0drPlhKxgHjyzRt3PYjzli529ajggGvBDmHiJX8ts6w0pN5P8XfOU8ZPhY7KYCEGwPyp3QnquefzpMCrLqHgPWaOcvjAizWqb1elLQddn.GzjL.VHG7A5v.jwHJoyHYXf+z3Ng.qhedVnpKK7Ad8kAxawyyFua5D0y8nX9fV4UQulEoWikldjBraMG6.RnCFGxrkYFJGYSH0kUpdJqPkHsSJJWuQo6644Ks7QKluUV.eAg50MeyD+64s+EWH31bxtl2AOYUU5EWH1XQEhz4yc07FvMxXK78Qhb2rg0O3IMKQHGLg9qd02WMTpD6vMBfacShORXuVatbqGDMoyHsYbBf8fG9EWLVww7d8XiHlYDmn8CYS1JgEEGJNFbc65mGp4WNP9chGV66qsYsenV8BNkxz8PK1hOhoThvj4MC2NqrFc3VpwQmKLaW+JV3370atczu0xkH0pdJo8wwhLyJECSgg9GEXYN5sjJGZA0EGqGakpg8YVi7FB06nwQCfFSbQmrnEvnUHnqoiafiwxzABUP5fWBOYS1DGSylr4zIIHODJKfmIRoUAYuCugR987Jna3r5.rm4ALNj1l3yrivMSPiSKTsJL6vKz4tfmMIP.LK0ODxKkfoUwkeZKXW7zQGEgjDa.m892JCvOqGcavBWY3wPcC1NueRwF5nR5yLP+a3DDb8q39Bt3zEINppuBLHs16Q2PJEbeXgfqjUudCH29ptSTrHI2AQn2uTJcmovyFSafwz5dCQknTrbGHVLhcRm3MgdPql2v8DlYnvl0BLVXrxzPnR1Hn0aUWKmiEIB6Y39Vh62B8j8GednjiDkLieui2oIhk007RDj.SGgEGJPwsNsnuTMyh7zm2mcybK7g5qElYtywSe9owwygB6GshXrCGh8y+D976sFbo3ZmpgneI+O9yg+18a6jzzq7L2Wjr7TlPlixs+w1KhxDxBnLX6+Mke4jew+869WsPJeGuAQZscDzJaVdua6RI9RkAkkDZg3acbU2vKqzeoBP3tF4jNsQdI5N0l4bhRgFjJQ5QIozHeHDX3NidAy063VphyUy61Myfuo5hAQ6E.6ZvqW733aOmcZgZA8qx7g2KZsrkb+cqx5mSq9mVE0uoVt3DRYE4zdcYVVVZ.O1nvrTZWwUvMscAyldcEIWZ0w++bJVDiazOi6NSE0oMRQ.oVkdw8Mg+AALtdSxUt7lmWicZPhfKR+LNGuc0GA2Law97nUvmOdE7Y2UvmOYE74SWAe9rUvmO+U5C9eX9pwVcj6l2.f+9oEWT59JFbeqzlWj+E33qBOG
    


  • @Christoph-Hart posted a pretty slick method in this thread for swapping out the oversampling node.
    https://forum.hise.audio/topic/2652/scriptnode-oversample-node-starting-at-4x-crashes-in-pc/9
    you can probably tweak a thing or two to make it work for your needs.



  • @Natanr said in Oversample Node Bypass Question.:

    Oh...ok , hehe, did not see a connecting point !



  • Can anyone explain to me how I can script a specific module i.e how do I make a reference to a specific module that is maybe inside other modules ?
    I looked at that post from Cristoph but did not fully understand the logic.

    const var dsp = Engine.createDspNetwork("dsp") ;
    const var rootChain = dsp.get("dsp1");
    rootChain.setBypassed(true);
    

    Guess I am confused what is a rootchain for example ?



  • Also, for some reason , when I bypass the 16x oversample on this setup it crashes Hise.

    HiseSnippet 2556.3oc6bs7aaibFmTxiekcylzlsc6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ZJvjzTmWooJMIM0jzTW3SSkYOTZ3wwuk6dpjUc7dI01PCWxiMD2uY9Iuf2CEwv7+KrZNPYV6BctUz.14oPwlF5+wFFL6puKEYSeNkFh4bygXNKODy46MDy4VCwbt8PLmueemCKq6cZ4SrEdNzNprAeSiUUEEYvchT9+vieaEL
    

    Seems to hold with the 2x oversample ? Might be the same bug as seen here.
    https://forum.hise.audio/topic/2652/scriptnode-oversample-node-starting-at-4x-crashes-in-pc

    HiseSnippet 2538.3oc6bs7aaibFmTxiekcSSZy1liBY2CN.tFhJtaJPeXE+rFaTrpkSxtXOjNlZjDgI4vRNxwZ2s.En8PusmaOz1isWJ50Vfhj+.Z.Vz7OP1i8lyk8PQA1cdPJNjhRhVVxV1Q5R7Ly2P988664LblT1Eqi77vtJpysWKGjh5aApzxlzXsFPCaksWWQ8pfGCOD40.5fbeRAkUa4.87PUUTUytEiF04lRg+63UVEZBs0Qgcon7HrgN59FVFjvdKW7CLLM2DVEsmgkD0KWbacr8ZXSbSJ+jEjWwApe.rN5APFYY.JpSuQUCB1sBARPdJpSsJtZqJMvO0VP+iL7L12DwZnoTg9fDcuI1rJiiY8prVCCypkCjaOE5CsbHJjUfB2.TxnpQ69CQiqwGHW3LjwC0L8h8zjYu7om8TkXuoDr20AUzcMbHgiv3sq.11lfbqAop.Y1RPqh5yAqgoDXSVxBd.ZSWZi1SXg6jO+h4zxm+1+nZMs0IFX6bX6GfIncrW31y+oyO27+p4yEenZ0RbL1qwEaZhbSbXlV2sWSbA6lV6ibWL2gPyln1DRE+n3Kn63qr5WWH0RDhs211friCxtanthOTQw+L9bEkTBG8upO5WwznJxUwfBxy.9.a79ZJbFV1kPI0StPBS9gauNj.Y1.9rCkEotgDClzqtN5PpykvhXNv5HuCHXGN+Z4fsYLu5L8kiOR1asUXi6VzifbpX7IAbTwu7S9sq3D.QaWkGpf+Tys4GpQcUcodoTqI1HSC3gFTj3jY6q3GxI+BXQIN4GOD3DKbUePR2XejIMFTG9TTOab0llPRT2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Pk9tHpmb85nneZkjDn6QHP8CB64FE2EYhfxFvuWw6SM7ftkDeg2AAKzROVzK80MAB1MGyYL2kia.b12HuAvwS4.RLkSlSUJGYw8FAINX4HBSb7N710vtVcIuQ1y57FZxO4XiUH5hFHMsiRtnqHTwDuMohmlryPPmRTNaQZ8ZQdXz1QdRkLh7+JAaXCoJ8JHpzTcGOcpvBisPvxMM8P7xV0jW0XX2Ej6dzjlBLIM04UZpBSRSMIM0E9zTo1CkFdb7a4tijrpi2Ko1Bp6heht31LyO2E7dnHlM++vplCTh0NW66.MfcZJTrng9ehtNyt56SQ1jmSgAXN2Y.lyxCvb9ACvbd+AXN2c.lyOrmygk08dMIXKgmCsixav2zXUUQQFbmHkuAfVj+z8
    


  • @lalalandsynth rootChain is just the variable name because the example just takes the main node for reference…
    Just call the variable what you like and give it the node you want as an argument of .get() like this:

    const var oversampleModule = dsp.get("oversample16x");
    

    As for the crashes, you'll have to wait for the V3. I'm 99.9% sure that no Scriptnode bug will be fixed in the current version…



  • @ustk said in Oversample Node Bypass Question.:

    you'll have to wait for the V3. I'm 99.9% sure that no Scriptnode bug will be fixed in the current version…

    Well, V3 will not appear out of nowhere, so there will of course be fixes before the version change. But you're right in the case that there is a big rewrite of the entire scriptnode codebase on another branch so it's unlikely that this will be addressed before the merge.


Log in to reply
 

15
Online

752
Users

3.0k
Topics

24.9k
Posts