HISE Logo Forum
    • Categories
    • Register
    • Login

    Inverted threshold knob for compressor / dynamics module

    Scheduled Pinned Locked Moved General Questions
    6 Posts 4 Posters 189 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      goldee
      last edited by

      hey everyone need i help i have 2 knobs in this example i have connected 1 knob to the dynamics module to the compressor threshold and i have another knob that is inverted both the knobs change values but if i am using the inverted knob on my ui the nob only changes the value and doesn't impact the threshold value for the compressor how do i fix this is is there any other way to just make a inverted threshold knob for my ui

      HiseSnippet 1033.3ocuV0saaaCElx1baVadacn6dgfcgCPSfrWa2.FJhqsSFL5RpQTVv5UczRzwDghTPhJqtE8sn2r8lr6xiTeC1NTR1hNVwMy.q5FAxyeeGxy46vwwReZRhLFY07r4QTj0Wf8lKTyFLivDnQCQVeElIthFqnANWJjSP8mGQRRnAHKq5+rVIqlMPYeu+f9DNQ3SK2BgNWx7o+BKjoJ2cbumw37iHAzyXgFZ+vdi7khARtLE.TcrKJh3eI4B5IDsZ0vHqO4v.lRF6oHJZBxpQeYvbuYx+Pjq+4rD1DNUunCxCbT91GI4AZDq2EMXFiGLdQhmf.uLt7Xnd9wv8wGyBXK2u733qyD3TZg44gUsUgW8UfWGS34Z.uJfjkAjZjCo6g87iYQpRIZ7743QBEMdJAN1MgRttnZuyBOPBZHT6GRtjdTLrXoEserq6Cbdjq6t+TK6V1vgehx4JRryyfa5NNOwYgoWPUCjgQRArn8NYR2I2FlfyDTmooBeESJbjBsztZCik719Kr5Afe4ozcaY+lV1My7v9IT045MauWGW28xkCN8sYN91Cc2c1UaZQHFP37IPYR6Uir1QFf5Doh9bQ6cseicS62Z6bSQSmVorBmwowUJVW9FuICaKRCmPiWj7KTDtSWsPAe6EJl0w94mIFJJEiDL0yinhaq5FUbPpKpJPEnpJqj5KKJo73r.ZLhAUNeJN6tAkA3xVyWbM5WGMjnHKbC3QHJQ.w.Sm.VCoWAM54UpMwCoIWpjQPO6x6NfZ4CFzWUFv98lWt3rdQKxnQA5Z9gyEjPleRGfgHFHGf5YsfuEqCWblhmMC9OCZ7QgxfBP4ylP4nPSRqWbcH4UlDVIJZjG60Y49e8m5u+9fjzoSYfVXrSPev9f.NcrLgourKss60n+CYaWir82EFYaOudIjqniDigDfpzMyqj8.M3GwLZcdHfATFjxIpUoE0yBJDn8gIWjluQ.9dt4rhaxU13twUtYp76JbuGdLS4OqZ7VqB7Bk8+ei2hIOsvGNcJ0WUB1F3i9sMNlowci8nDJevQNeSNVrW1nULqorua0mAnnGJHPHCLOwzaW1EdCAOUo.RayBB8tmR4TRhIuSuxN50Bw6Onp1ciFgRwmpukq1xahjuyHjUfmr2xPiqHeKjTYJWHa8rtPvZAxDEGCCtSipvcqKvp9c9EHc13KPPmJSULwEGSTwYDEmjF5AuKymBElBAkqmZYUSOeIesqdsFBdTQP1h+A9JD1Qu1pPXmEB+nDiPher7k94S9z04eV1NPdKxdUYS7w50NKG4gwt66poDYuz2W28sGz4VsMc2Ba99svlGtE17nsvlGuE17CagM+3FsQ+.6mlpjg4LyvFiOL6oGVVK65rpi9W.cnOY3C
      
      HISEnbergH 1 Reply Last reply Reply Quote 0
      • HISEnbergH
        HISEnberg @goldee
        last edited by

        @goldee You need to script the control callback for both knobs. Then you can update both Knob 1 and the compressor module.

        HiseSnippet 1117.3ocuWEsaaaCEkxNZcVqdasXe.BA6Amg1BI2XmjELDWamrYz4Ti3rf0m5nnniIhDofDUV8J5GReaOs+g8V9T1mP+CxHkjknsURJL1hdwf7xy8dH48dtziBYHbTDKDnYb5r.LP6g5imQ4S6MERnfA8AZekNgdINjicMufxb.cmE.ihvt.Msp+nbQZ01.j78wC5B8fTDtXJ.3LFAg+YhOgWL6nNuj34cDzEeJwWY0a2Y.hQ6w7XwBBUU2BD.QW.OGeLTtrJ5feBFMEn8c5N1HK7ycPPnCbO7t61xY6c2YOH110dmVs2qk0dNsasSaDP6yNzkvYgi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QdCBsnqVAXy0E3yWWfaut.ast.aut.2YcAt6cCT9WGdQLm4mpTC.CGcXxSHzzxqN0pB9W.ddAzb.
        
        G 1 Reply Last reply Reply Quote 0
        • G
          goldee @HISEnberg
          last edited by

          @HISEnberg thank you so much but as i wanted a knob that has 0db at the minimum and -100 at maximum value just like the peak knob of la2a assuming that peak knob only control threshold of the compressor

          HISEnbergH ChazroxC 2 Replies Last reply Reply Quote 0
          • HISEnbergH
            HISEnberg @goldee
            last edited by

            @goldee It's quite simple to do, you just need to invert the value (if I understand you correctly).

            This should help you get started

            1 Reply Last reply Reply Quote 0
            • ChazroxC
              Chazrox @goldee
              last edited by Chazrox

              @goldee

              const var knbIverted = Content.getComponent("knbIverted");
              const var SimpleGain1 = Synth.getEffect("Simple Gain1");
              
              
              inline function onknbIvertedControl(component, value)
              {
              	SimpleGain1.setAttribute(0,1 - value -101);
              };
              
              Content.getComponent("knbIverted").setControlCallback(onknbIvertedControl);
              
              

              The knob value on the UI shows normal values but check the gain knob on SimpleGain1.

              1 Reply Last reply Reply Quote 0
              • rglidesR
                rglides
                last edited by

                You can also do this after your knob callback - knbIverted.setRange(-100, 0, 0.01); - or knbIverted.setRange(0, -100, 0.01)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                23

                Online

                1.7k

                Users

                11.8k

                Topics

                103.0k

                Posts