HISE Logo Forum
    • Categories
    • Register
    • Login

    Trying to get a slider animation to follow the LFO mod

    Scheduled Pinned Locked Moved General Questions
    20 Posts 7 Posters 1.3k 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.
    • SteveRiggsS
      SteveRiggs
      last edited by SteveRiggs

      After racking my brains for the last week or so on this in another thread with no luck, I've thought of a possible third workaround for this job making a filmstrip slider (Knob1) to solve my animation problem and having that linked to the lfo modulation (LFOModulator1).

      I'm basically trying to get the slider to animate up and down on its own so that it reflects the behavior of the custom table in the lfo modulator (so frame 0 on the slider when the custom tables volume is 0, and frame 128 when the custom tables volume is all the way up)

      I have a similar thing in another project running gain reduction meters from the dynamics module reduction that works perfectly so I'm trying to adapt it to fit this, but it doesn't seem to work the same way trying to link the slider to the lfo modulation.

      I think I know where the problem is in the code but not sure what I need to replace it with. (I think 'GainModulation' needs to be replaced with something else. I've tried a few things but I'm still stuck :( )

      Can anyone please tell me what I need to change it to instead of "GainModulation"? ..or if there is something else that I've got wrong?

      Heres the code:

      const var LFOModulator1 = Synth.getEffect("LFOModulator1");
      
      const var Knob1 = Content.getComponent("Knob1");
      
      const var t = Engine.createTimerObject();
      t.setTimerCallback(function()
      {
          var v = LFOModulator1.getAttribute(LFOModulator1.GainModulation);
          
          v = Engine.getDecibelsForGainFactor(v);
          
          GainModulation.setValue(v);
      });
      
      t.startTimer(30);
      

      Snippet here if anyone can please help...

      HiseSnippet 1229.3oc0X0raaaDDdoj2Fa0pzjzbnGIL5AEzTEo5eZKJJBskrBD7ORnz0oE8P5JxURaL4tLjKkqRP.xgdnOFE8InuR4MnuAsyRRQsLQw1PMoHlGHzL6Ly9MyN+rT8CENznHQHxXsimFPQFeD1dJWNt0XBii51FY7Y3ioQRyNhPyc8holGv3vqN8Ls8XtzPyc3LeztSCHQQTWjgQ4GnzzXsUPIO+882k3Q3Nz4rPnSDLG5ALelbN29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t0ABQvdbUmJWc46OlDolJBiZ0scq3HoveFVV1N51PO0jV5F+Ld6MqWb8M581gF816.uzkLq7STm8l4mxpzy2ya0lh37Tvq.H9V3jlWlWYllcKbRy0qN.9F39D96Av86EwRng0gD3SLf6PgOJ12F9lVGJ.UNG9jAfmQIUSoT5FJZEfrob2Dh+AdxVroh1HawlyV7+k8vm3DJdjS5smUsSVMgC327juHeM7gJZy7qMiwMp2.4Ceg7ibbT2v3Kf3yh04KWBc1XIzYykPmsVBc1dIz4qVBc95yUG0eNwNwvftz7efQ+8RmWYjOpznL5eAj9CDyF
      

      www.anarchyaudioworx.com

      www.facebook.com/groups/audioworx/

      DanHD 1 Reply Last reply Reply Quote 0
      • SteveRiggsS
        SteveRiggs
        last edited by

        Bump Bump :)

        www.anarchyaudioworx.com

        www.facebook.com/groups/audioworx/

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

          @SteveRiggs the reference to the LFOMod seems to be wrong, if you want it declared as "generic script"

          const var LFOModulator1 = Synth.getModulator("LFOModulator1");
          

          or as Typed table script

          const var LFOModulator1 = Synth.getTableProcessor("LFOModulator1");
          

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

          SteveRiggsS 1 Reply Last reply Reply Quote 1
          • toxonicT
            toxonic
            last edited by toxonic

            I don't know, if i got you right, but i think you need "LFOModulator1.getCurrentLevel()" to modulate the slider.

            HiseSnippet 1239.3oc0XEraaaDDcor2Fa0pzjzdnGIL5AEjTEpZG2XTTDEKaYHDYKgRGmVzCoqHWIs0j6RStRNJAAHG5g9YTzuf7ITf9Izuf7GzK8b6rKonHcUrMThKh4ABM6Nyruc12NyP0IT3PihDgHik2eb.EY7QX6wb4f5CHLNp4VHiOGuOMRZ1PDZto2PpYKFGd0nsosGykFZ9.NyGs43.RTD0EYXrvNJKMVdQj94ut+lDOB2gNcHD5.Ayg1h4yjSGsSsGx77ZPbo6y7yn8Z0Z5H30Edhg.JW.agB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9SvxEUFeaHmqNkuwOfWesJ4me01uajQu6HDENmr1OQwMLSYAJ5664ohiQbJE8R.huAVmby7RS0taf0Ieu7.3qg6P3uG.2uULTBIz1kHCYPOV38F5aCeEqCEfJmS8TscaTPkzJV1RIq.jMk6pE9G3IYxpJYijIqNYx+WVCehSn3INwceqRmrjdDXey0eC9x3cUxlosciwVUrP9v2D+DGGUGHeADelsMe4bXypygMqMG1b24vl0mCa9p4vl6cp1n96HdvPnPXL+GFny1w0qLRKkZr.5eAte.LL�
            
            C 1 Reply Last reply Reply Quote 1
            • SteveRiggsS
              SteveRiggs @ulrik
              last edited by

              @ulrik @toxonic Spot on fellas! Thank you. That makes much more sense now.

              :) Nice one

              www.anarchyaudioworx.com

              www.facebook.com/groups/audioworx/

              1 Reply Last reply Reply Quote 0
              • C
                crd @toxonic
                last edited by

                Does this snippet export correctly for anyone using the latest develop build?

                It looks correct within hise interface preview but the animation of the knob does not work for me when I export the project as a vsti or standalone. Is this a bug or am I missing something?

                DanHD 1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @SteveRiggs
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • DanHD
                    DanH @crd
                    last edited by

                    @crd works fine here

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      crd @DanH
                      last edited by crd

                      @DanH Did you try and export it?

                      I think Engine.createTimerObject() works for gui elements in the interface preview but not on an exported plugin.

                      I think using an empty panel's timer is the right approach. I'm exporting that attempt now to see if that works.

                      ulrikU DanHD 2 Replies Last reply Reply Quote 0
                      • ulrikU
                        ulrik @crd
                        last edited by

                        @crd In hise it works fine, but compiled as a standalone it's not working

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

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

                          @ulrik
                          Thanks... I'm not going nuts :)

                          maybe it is a getCurrentLevel() issue. Using a panel timer in the above scenario doesn't work either. (It'd be easier to trouble shoot if I didn't have to wait to export to see if what I've done helps.)

                          LindonL 1 Reply Last reply Reply Quote 0
                          • C
                            crd
                            last edited by

                            I think it must be an issue with getCurrentLevel. The snippet below should export okay but doesn't. It does work fine in the Hise interface preview though.

                            @Christoph-Hart Am I missing something?

                            HiseSnippet 1325.3oc2X0saaTDEd13LPsKIhVBkBWsJhKbDkHGRZ.TEJahSbTTyONYcaQhKJSVO1dT1clkYmMfEpuAHwqPeT3Qf2D5MbAWAmY1016lXbMKoPZ8EQY94Lmu4b9luyLaSoviFEIjHqxs5GRQVuC1sOW0qdOBii1aaj06i6RUdwRIkq1mdN0uEMRg1peHIJh1FYYUZW8TsJOKx76EarEwmv8ni5Bgdrf4Q2mEvTi5soyCY99MHsosXAYl8ZN64I30E9hX.Vkv0PgDuyHcoGRzSaFLx5s1oMSIjtJhhFgrlcKQ69t8DeOOY9OlEwN0mparBxEVnjtaH7aqQr9+Q06w7a2bv1OBgrvMGELJkDLV.e.qMaX+iBJuqY.6QVjMdXMyjf2JEDdVYf2rIv6VXWOIKTMZDM1tIdOthJ6PfTPVXkLWzL+gEtt.lAWsb.4LZCIzXnEUWuVs6Ye+Z0V5AyUYtJPhHRYeNQZ2jvo9qX+U1CrEXE0EAgBNzn5hICu3Es5gbwo+8FYF8R1reiiNPzN1m.gPssF9n1xg8VcQXN1ilDrDvJj.gkinJMeRVm36eJPbp1Il6oXBd0kp7iyUorwo5Y8XheLsZNuYvWFpd0kzfK0DudDdWZ6pfydVNGpHxDWVcUSXafCsE7CEJ5QFOWobkmUw9hC0oyXGSGtjBeeXIG2vINaBFVkGGbJUdOHdB6wgSDHN4Yl3oiY5kj8xLQAeONScTHMs8k4qnzTtl4lhJXpJCuc9TdqqOqMUhX.87swlfLx.3Ts.mOX4eaCzi1aahhLXYfUD7RHUpX5Mf01zyAkkjiCkwaSiNSIBAQhgrLXOm3z4FbXQm0L97F3jLH5GFJ97sBm9iThdfC5xqyD.+n0449YVGmm3ft7gWPBY.uKqthVLMc.Hkl6.r9PJOho5mUr8efXSswJ1L1j2TB2agaxTd8FOdmYL3ERiupwapz8b3c5zg5oFA1YwM95hpSWLnLeBTtI1kwoFYLCPtios8SHmSs2kxoRi1yDJo9qSaI0votj5QdJv8sjDdTnHJ2B6RCXs.NeT1NeTDTnf9cmnyxY6utfHG6PuXiFvlbr13RTwRCcYy.QLWkidTpP0NyepIy7GSgzY+enN+U+Qu+8JEklN39RtJR4AXzkED5S2gCkMA8YCFuMHH2gD6qFzadR9ABtHrmfy7xx.NgpjrtcoxrXeranMUJn99ndVv4DpOkjkM+wN6CrPhDhSzBFKVY5iESJecWbBbs0mLseyPguzaPJ7E7l3oz+aiaJ76mPlav7gKSa.TYbRiIItiPZQxXJ2aPT74g69SNGmkBjm9dWmiiI9WHpuEKT3SjSUFo3r8YmRZycvC2Tup35ELgkVSFigK9mJjl+wDubPdw70u76U+HGcQ28FkVc9YGc88NBYP5kSGZ99ztfix1SKJbIS39A4zAcCDBUOFua9R4K3ruPDtCm.gg1YWjl8.kO3AEvKaxUfNNRIBFfEyymcUzPycps9F75qsL7qymn+6WVG9ypGc0z9JjzMyTR5dOSlbXJSmSulqtlf3bGUt1WOPqd85S8qODmJLZhxu9f64wGeM.rmHhUfBzAD3JYviawGFG3BOgviB.kCOcV+IDrlQqxjztltcxaH3sMM9S3W5fqnaakN3JCF7+DeDP7jhm5k7YHzRJ2vzCru4luoXY7A511C+9CXbskqgBf69+TOO8EK9TH9Lda9rBXypEvl0JfM2u.1rdAr4yKfMewDsQ+rqMigJWI7enil6jTyxZXsOqRn+BrQnEHD
                            
                            NatanN 1 Reply Last reply Reply Quote 0
                            • LindonL
                              Lindon @crd
                              last edited by

                              @crd said in Trying to get a slider animation to follow the LFO mod:

                              @ulrik
                              Thanks... I'm not going nuts :)

                              maybe it is a getCurrentLevel() issue. Using a panel timer in the above scenario doesn't work either. (It'd be easier to trouble shoot if I didn't have to wait to export to see if what I've done helps.)

                              -- remember when using panel timers, they are suspended when you hide your plugin in the DAW...

                              HISE Development for hire.
                              www.channelrobot.com

                              1 Reply Last reply Reply Quote 0
                              • DanHD
                                DanH @crd
                                last edited by

                                @crd standalone worked fine

                                1 Reply Last reply Reply Quote 0
                                • NatanN
                                  Natan @crd
                                  last edited by

                                  @crd said in Trying to get a slider animation to follow the LFO mod:

                                  pet below should export okay but doesn't. It does work fine in the Hise interface preview though.

                                  ENABLE_ALL_PEAK_METERS=1 My Friend
                                  ENABLE_ALL_PEAK_METERS=1 My Friend :)

                                  ulrikU DanHD C 3 Replies Last reply Reply Quote 4
                                  • ulrikU
                                    ulrik @Natan
                                    last edited by

                                    @Natan said in Trying to get a slider animation to follow the LFO mod:

                                    ENABLE_ALL_PEAK_METERS=1

                                    Yes, this will make it work! :)

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

                                    1 Reply Last reply Reply Quote 2
                                    • DanHD
                                      DanH @Natan
                                      last edited by

                                      @Natan well done, I forgot I already had these enabled 😆

                                      NatanN 1 Reply Last reply Reply Quote 1
                                      • C
                                        crd @Natan
                                        last edited by

                                        @Natan said in Trying to get a slider animation to follow the LFO mod:

                                        ENABLE_ALL_PEAK_METERS=1

                                        That was it. Thank you!

                                        1 Reply Last reply Reply Quote 2
                                        • NatanN
                                          Natan
                                          last edited by

                                          @crd Glad To Help :)

                                          1 Reply Last reply Reply Quote 0
                                          • NatanN
                                            Natan @DanH
                                            last edited by

                                            @DanH Haha, This Happens To Me Quite Often :) 😆
                                            So I Stored This On My Mind
                                            It's A Meter >>> Enable That Friend = 1 😆

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

                                            17

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.4k

                                            Posts