HISE Logo Forum
    • Categories
    • Register
    • Login

    Invert a dspNetwork knob value

    Scheduled Pinned Locked Moved ScriptNode
    5 Posts 3 Posters 98 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.
    • MorphoiceM
      Morphoice
      last edited by

      I have a pre-gain and want to invert it's value to also apply it to a gain (so the overall level stays the same)
      how do I douplicate and invert a knobs value in a dsp network?
      cable_expr doesnt seem to work for simply negating it's input value

      Screenshot 2024-12-08 at 13.01.26.png

      https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Morphoice
        last edited by

        @Morphoice Usual way to invert a knob is to subtract its value from the maximum value. So if you have a knob that goes from 0 to 100, you would subtract the knob's current value from 100. I don't know how you do this in scriptnode but I'm sure it will be possible.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        MorphoiceM 1 Reply Last reply Reply Quote 0
        • MorphoiceM
          Morphoice @d.healey
          last edited by

          @d-healey alright, I can do that in faust, no need for scriptnode then

          https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @Morphoice
            last edited by

            @Morphoice use the xfader node.

            MorphoiceM 1 Reply Last reply Reply Quote 1
            • MorphoiceM
              Morphoice @Christoph Hart
              last edited by

              @Christoph-Hart thanks

              https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

              22

              Online

              1.7k

              Users

              11.8k

              Topics

              103.1k

              Posts