Scriptnode - Creating/Linking a button that bypasses a Node



  • Hey guys,

    Been searching HISE and the forum for a way to turn a node on/off using a linked parameter.

    Now, I know this is possible because @arminh demonstrated it in a fileplayer example he created a couple of weeks ago (see snippet below).

    There seems to be a 'DynamicBypass' property visible in the example, but I can't find where to turn enable this property after creating a new node.

    Any thoughts?

    Cheers

    HiseSnippet 1264.3ocyX0raabCDlTRz1Rwo+lhdUHmb.RMrZc+An.UJ1RJPnR1KrrciOYPuKsDg2kbwtT1VIn258dt8ReCB50dn.4Enm5KP6aP5SP5vkq7tqzFGEgFmpShCmg5a9lONjTVARaVXnL.gKu+XeFBuJo+XgZ31CobApSSD9cH8ngJVPUiosF6SCCYNHLt3C0FvkKgh9775aQcoBaVhID5PI2l0k6wUIVsZ7sbW21TG19buTduYiN1Rw1RW4H.OEIaf7o1mQGv1gpcq.AgWpkCWIC5qnJVH3yVRmw8GJuPX7+PdH+DWldPMTeXgLlQaOj65XMIWCQHbIqjLunIyuCoG2gek8DF38hlnZRDo4.bgrPpTFHUKMj1HEjZKcczKf1kYgGJE5JYPG.BoyHWpJKxzkf3I3xrUmNBESDxUiSWhdqB22mXwU1CyGuExAuPg5MMdiK92lz5zSY1pDvVhz9QKZktVtPIWgHdVtqBouc.2WA+9ZfrZ7vpseTsL.xXFgeJoZKw.tfstc.CvVyP+cXpKjAms1cOk6xrboiYA28de8oiD1ZZupe.ymFv1WpmZsPpmuKaOHx6W8DWo8Y84OlcuJOoR4JeekpoBJBnao8XM6gTgf4FNqa5cvBUfzcMwHuSXA2u54T2QIq2LahWd93Qonifq10mE6VlbXhYnkQJTlX8JPkXJGYwdxQJtXPOpJfeIBS1YjWenWjMa63rErgKfzgFMdC8XsJsOS3DM3Evm3IqoGiimr1jIQZbvDJvdbMJRDD+c3alJdRYSOozQ2krM0FXswVT0P8VInUoBzprf0suRyd6TAVCAveZf2EXkLlwE0q9jdtlrYaommFh5Ntwe+63N5eUB99fGFM3dfpQ2+tWX5N355nEM.ZXCGYnW+BleASVFkHKqQ5xDuQtJN5klTloeSkBIfpfATqX.kgJeEL8TfBeSvqy.3JI06i8MJkLv9C.XGvVO87uMzCMGKndbaiKH7GmVfttU2GbT01c51Jy4.3hIGPrOMX.SE2x1mEn3FNHdDbTQQCOzOpGVGgC6Rzg59MS1vYM5DWtsNwPSEzRj1.Vl3MjaocMQBCaTSTHKQFLi.4VFldPNRiB2LRiWa9ZUxdrPlxj5wDPxYtubJ6cIGDxl2PSQg..lLB7ti3bXMMmg0iKlZQN5Y8nWNyB2UdAKXp6QdzyNv2eFqPCWEyWeDl11O+S5O+V89mwtvT0zV+F6e+OF7qeTCSIM5Zry7KhleHiPy.4F+Xi7fLBkCjAee0P9Ei+EqOr4eVWC4aQ56IkpgvYUSi6MajU6lVFjVHuhoUWs+W2q6ZRk4alL5tkLTWRSm4pPB2YNo3DcijLkkI9LyBgwvI8BVzchByNDPgNA63LcC7q.qdpJjqZJBgFI+BzV63.bo9Vx65e00Emre75koOuddYWdxz+pdVYpQR9O0SKSm3Y97AZZheExg618fdKBqWtzStySe3e+3en9bw8vibtNte0Ibebu7Ljdbyf+iH7axVYstDtPbXXTJB64xtm3fNMoJZLSnu9YpYw3lrygGoaxsxjlrvyTR+alaC6QsCjGaatattTsRjEXmlH5M+kI8ziqVCcd7g5jMVeCjG7d7iss0OR6SfG3keLe5BDyms.wr4BDymu.w7EKPLe4BDyWcswn+qPdvHkzy7.dvfUqHwEF2RPg2sEsW.8uowN3JB
    
    

    alt text



  • @LeeC What I do is simply connecting a parameter (slider) to the bypass. I don't know about dynamic bypass though.



  • Greg is right, just drag a cable from a parameter to the power button and it will control it's bypass state.

    You can also define the range where it's on (default is 0.5-1.0), but in this example it's 0.5-0.8 so it will turn the oscillator off again if the parameter is full right:

    HiseSnippet 1281.3ocyW07aaTDEeF6rgX2D9Lb2pmRkBQ1soTjPBaRbbkEwoVwIg1SUS1ch8Hu6LK6NNotEjPBNvMNCW3LWp3JGPJ+APN0CbMbr2B+ETl2Nq8tq2M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NqE.MWxvQvE2DteFUjr05c0sVwm+pn25R5WhUzmn4ItyMuQWfjKgWcMsWELw+ibm3s+4ln8eQico9ToNOlp8INSPR6dKf1XZMMNIRtoux9AmltxFhhoqrevoYUYqNh6U1Q9Il+1Yc+k2ulNkF7lgw63uG7c6SQ+i38p88SOumR2WMjewvep86U+YgjHcbDBYO0sCPo3yRF3ww7h401FIY5XvUzBwP2SV9o28Oe72dITEiMETZ4m9GUwX0UL3zfKiEfmngJr.MBMsl3z3w3Clonw3S5TVFjD7.oMsTsHvEyum63anNpp7kmrNOAyoNX+7pYkrNeBlSst+U0zLmmeIgij7H62rNQRBCBv0thMKFWmdr5coZmofQcpeeov8+laA5PL8DOzTemTHKsPfDUSOO3YtETu2VMtTEzw53lgQ40JibT2e3gllv6R9.0aZx1laNC1bqYvl0mAat8LXyGNC1bmYvlO5kZCb0sOcfT3neypRP6sBJtv3s3D06UBJ9Q+M.NBYIA
    


  • @Christoph-Hart thanks.

    Figured it out now.

    It wasn't clear to me that you had to click the target icon (seen at the bottom of the screenshot) to be able to drag cables from 'parameter to node'.

    alt text

    I had previously made links by going 'node to parameter' - ie right clicking on a node and clicking on 'Add Connection' etc

    Thanks again ☺


Log in to reply
 

11
Online

887
Users

3.2k
Topics

26.9k
Posts