Multiplying the reduction amount (Scriptnode Question)



  • I'm trying to modulate a gain node with compressor reduction in scriptnode.

    In below snipet compressor reduction is directly connected to the gain but I need to multiply it (between 0 and 1) with a knob before it goes to gain node. How can we multiply this reduction amount before it goes to gain node?

    HiseSnippet 1456.3oc6Y8zaSbDEeV6rPhAZZUgJ0KUVbJTQix5FfJUoZShiQQEGrhCA3DZxtSrGkcmY0tylDCp25c501KseBpnG6gJwsdpWJG6k1uA4SPou2Nqi20qCXBPR.UeZm2el826Mu42L6ysBj1rvPY.wXp054yHFm0rcOgp6hcobAY45fbyMcohNr.xB87oggLGhgQwafpMlZBR7u8pt.ELxlMPDgrtjaytI2iqFHsUsul651f5vVi6kx54qsrsTrnzUFAPon4bDep8VzNrUnnYELIFmZIGtRFzVQUrPhwDKHc50tqbGg1904g7MbY3.KRaXhzhaHccPDiRIK1k65zpeHGRHFlsFj.JpS.m2rI2guu7AIh2OVQ4AdjNeXT34AOqzvatwFdjTnaBM5.PHchboprHCWNRTvkhLHaYghIB4pdoWtNVg6GX1hqr6NZ7VXD3EVndSi2jE+yYtzlaxrUC.6DlMt6q2U54FUgnQ9bWIy11AbeE79Qfb1jgkabWqL.RKlX7XyyUpb4xKI5vErYsCX.9pG5uBSsiLXqYtX6UjNrF28hW5KKuYjvFS7k8CX9z.1ZxVtzdyDR87cYqB9c4xa3Js2pM+ArKU5gklpz2TJsSwPcAzhYr6REBlaXdyv8yBUfzcFQj2FrfKWdapazf4K2V5hGblL8V5QrPtpLRwEcZRUA7cgc0qD40FXRrYKlfNPlQAB5Z734vwXcUalvIdvyfeIJsvwFIJs5qjfACSn.4IYz3ksjmgmzbkIIYTC7.HoA0FBwdsnptXkOvxofRKVvr16WhUpuWVD.3CC4aBY4LhMJhV2mqTGGKJ87PvgLkIOeGtC9JMMtLXgtdYUX8E4caFll4Ey3snA.QqhEfyeAihP10mEn3LL6huNcvFGRmFw7zlxsAqiKXrt5tjLg4GmJLyZ1ap3aLP7oMC8cgyhNvEDs5iXDV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dfkEFS+Qf8I64L6HLmOdDlybivb9jQXNWeDlymNBy4yNz4fY+uQakzUG+CBpuTTgnFF8N1n7j+E7BUboA
    

    The use of the PMA node when available in the future will make this easier
    https://forum.hise.audio/topic/2555/scriptnode-breaking-changes



  • @ustk Thank you so much! Yeah pma node looks easy, but your snippet is just ok for me too 🙂 👍


Log in to reply
 

11
Online

1.0k
Users

3.6k
Topics

30.7k
Posts