HISE Logo Forum
    • Categories
    • Register
    • Login

    addModulator

    Scheduled Pinned Locked Moved Scripting
    9 Posts 2 Posters 346 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.
    • ulrikU
      ulrik
      last edited by

      After spending a couple of years with Hise, I've finally understand that it is possible to add effects and modulators after init ( yes you can call me stupid, retarded or what ever you like, it will have no effect on me, I'm just happy and you're not able to change that 🎉🤪

      So in my slotsFX project I'm implementing filters and modulators, and I want them to be added by the user in a running plugin, that works nicely, I use this code to add a connection to a Global Modulator but I don't know how to chose which global modulator to connect to, any hints?

      this will create a slot in the right effect chain

      local modulator = Slots[0].getCurrentEffect().addModulator(type,  "GlobalTimeVariantModulator",  "LFO Intensity Mod");
      

      but how do I chose the right Global Modulator?
      I tried to use the reference to the newly added slot like this, but what should I write inside the brackets?

      modulator.addModulator(??????);
      

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      ulrikU 1 Reply Last reply Reply Quote 1
      • ulrikU
        ulrik @ulrik
        last edited by ulrik

        @ulrik the only attributes available in the created slot is "UseTable" & "Inverted"

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

        ulrikU 1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @ulrik
          last edited by

          How do I implement an independent LFO module in a FXPlugin?
          I have tried this:

          compiled a fx plugin with a Global Module Container containing a LFO Modulator
          it compiles fine but it's not possible to read the LFO Modulator values? Is it possible? Any hints is much appreciated :)

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          ulrikU 1 Reply Last reply Reply Quote 0
          • ulrikU
            ulrik @ulrik
            last edited by

            @ulrik my intention is to use the independent LFO and use it to control some of the effect parameters

            LFO.getCurrentLevel()
            

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            ulrikU Christoph HartC 2 Replies Last reply Reply Quote 0
            • ulrikU
              ulrik @ulrik
              last edited by

              @ulrik ok, I found a way to do this, I loaded 4 SimpleGain in 4 Effect Slots, applied an LFO Modulator in the Delay chain on each of them, sat Delay to zero and now I can get the LFO.getCurrentLevel from them all, it's a bit of a work around but it works.

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

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

                @ulrik said in addModulator:

                my intention is to use the independent LFO and use it to control some of the effect parameters

                Check out the macro container, put an LFO in there and then connect the effect parameters to the macro.

                HiseSnippet 1094.3oc2X8zaiSDEebRmUaJKUrhUZk3jO1UrT4jll1JNjPSZPQj1FUW1hDGplZOodTsmwq83tjh3a.RHNt23SARbiqbiuBHwk8FeCf23+D6ranjFEJYwGr779yL+d+Ydya7f.gEMLTDfzpbxHeJR6AXyQboSaGBii50AosF9.RnjFnmPZuQ9jvPpMRSq7mpHnUYET7yezbOhKgaQyIgPOSvrn8YdLYN0As9LlqaWhM8DlWAoq2pmkf2V3Jh.7TFaf7IVWRtfdHQIVILR6d6ayjh.SIQRCAY1SXOxzQ7Bdh7OiExN2kpFTEYBSTBYTaGlq8fLaMDgzvCxs7xIV9ivGvrYiom6AduXF54ZTzGnU5lfT0aAjzJ.oURfzCwlVALeYNGEddGbONDPFR.WcQnjHKR6mwsEf.b4FdjKocCfAiUX8FFFOUGd8jOdXD2RxDbcA+PgjdDe8mr5WuZkU+lU0ecVCGNUdpkIP35RClJaUzM3lTbcdj24zfmpeEwMhNVPv7mzmduYymZkX0EDTv6wYxi7ooi6JbsU9J02uYD.k51fu97dcHRhJnjRCjymFHYJ3n0gdEjUmDhpf6PCuTJ7g752H9AYNB6HWhbxzI09lTFf+XhXnJPwCYxQE2WcKxwLtwbrYEhODOfIsblNFKMELBdp+MvX5Ny2Eu+vgTKYN.WA28Kl2sgFy91vzZhqgMYd9tzioWQCNOMHlPROgV0I.ywBgmI65rRa+vKe4qZ1g34y3WjRp02+ieaySox9f1t4h8KM6DL50n8plmxrkNEIzMfRulBQmBqvO0Tq7BpRD5XQjDv5ADY.6qfZkGF4YB0jsnP.fyotvji0Jo1vjL1PMVkDXR41wC9S3IkYU0XsTlUyXVLJe+Du7igCZrBD4IcIqYr69CR3omyTOga0a3.oecVOPxelOPZg4i0dv+AG.sXJN71d8qx+ut90r5hpjtip5cX3ahZqqk.NLte2iRyqfuzGC0Y.XPcvmGQ4VYDa8aW+6MUai6kWEn0205TxUzgh.uzCrGqde5EvBUjxITOeAz+qUwLCSOgP5.0Cmr3viZ0WH72mS.S2t3jLvgDpZYJjJKNMsiBkBuLrD2Nqoj5G2mg1WhaTeC3Y3Gpduaa30lGsXFiVbcnVZFysd+3H43PlJld6yxVY1xx9GZo6Vg3w4SuEf3r8u0VBK+lgsMWhwV8kXrs0RL1ZrDissWhw1N2kX6tnA96h0vS45NyJ4uEnNA59wT.6lG+KgxahI9OHnpiWaispWu1VFaWqQic2cmZ6h7fdmOyxR0z0GASslU1esv9LeR.LORp5pdL6obqtBBnh.iGdV15mcsNO0EOvXiML.PqbG3pvmthWjQ0gcgSFYFGlcYxY.Fn.JwVvcGkdhvzsvZYVX5ZLgM82nylygN0mCc1ZNzowbny1ygN6bi5ntV0mDAskkbIAfvf8SZHSabicZkQ+Ere+pNI
                
                ulrikU 2 Replies Last reply Reply Quote 1
                • ulrikU
                  ulrik @Christoph Hart
                  last edited by

                  @Christoph-Hart Ahh, I've never tried the macros, now is the time, thanks! 👍

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

                  1 Reply Last reply Reply Quote 0
                  • ulrikU
                    ulrik @Christoph Hart
                    last edited by ulrik

                    @Christoph-Hart Unfortunately the macro container behave just like the Global Modulator Container, it's impossible?? to get currentValue from neither of them, this is what I try to do:
                    the 4 LFOs in the picture is 4 Modulators attached to SimpleGains Delay chain which is set to zero, and I pick up their currentLevels and read them in the Synth timer callback

                    it works ok so far but it would have been nice to use the Global or Macros
                    I'm going easy on the timer it's set to Synth.startTimer(1/10)

                    lfos.gif

                    Hise Develop branch
                    MacOs 15.3.1, Xcode 16.2
                    http://musikboden.se

                    ulrikU 1 Reply Last reply Reply Quote 0
                    • ulrikU
                      ulrik @ulrik
                      last edited by

                      @ulrik I forgot to tell that this plugin is a midiControlled FX so I have to load it as Skärmavbild 2021-10-25 kl. 14.53.18.png

                      Hise Develop branch
                      MacOs 15.3.1, Xcode 16.2
                      http://musikboden.se

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

                      49

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      101.8k

                      Posts