HISE Logo Forum
    • Categories
    • Register
    • Login

    Preset Select + Mute script (to avoid clicks)

    Scheduled Pinned Locked Moved General Questions
    21 Posts 4 Posters 1.1k 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.
    • DanHD
      DanH @orange
      last edited by

      @orange It happens in Hise too

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @d.healey
        last edited by

        @d-healey Ha, I thought that snippet might not do the sameas my project!

        I think perhaps my script needs to be a lot more efficient in order to speed it up. Quite often when changing presets the panel and knob changes lag behing eachother when changing state. I need to get better at Arrays for sure.

        Thanks for looking at it!

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @DanH
          last edited by

          @DanH How many components do you have in your interface?

          Hise made me an F5 dude, browser just suffers...

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

            @ustk 60+ including tables, analysers etc etc..

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            d.healeyD ustkU 2 Replies Last reply Reply Quote 0
            • d.healeyD
              d.healey @DanH
              last edited by

              @DanH That's not a particularly large amount of components so probably not the cause, but it's easy to test - make a backup and delete components one at a time and see if the problem goes away. I would suspect your script is causing the issue since I couldn't recreate it with the script disabled.

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

              1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @DanH
                last edited by

                @DanH You got some controls but nothing that should add lag to the interface... I got lag in the past with 700+ components. If something is not going as expected it's definitely about the code (or when a slider sets 10 modules at the same time for instance...)

                Hise made me an F5 dude, browser just suffers...

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

                  @ustk I've no doubt the code can be better - it's the first one I've ever made! There's a lot of repetition. I was hoping to group some things into arrays but not having much luck - Can you put components into arrays?

                  For example I have a button which switches on/off several panels and modules. At the moment the callback is one long list of about 15 lines, for eg:

                  analyser1.setBypassed(1- value);
                  panel1.showControl(value);
                  etc x 15
                  

                  Can I get the list of components / modules into two different arrays and do for example:

                  allanalysers = [analyser1,2,3 etc];
                  

                  and then in the callback:

                  allanalysers[i].setBypassed(1- value);
                  

                  ?

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @DanH
                    last edited by

                    @DanH

                    Hise made me an F5 dude, browser just suffers...

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

                      @ustk checked this out recently but will go through it again!!

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

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

                        @DanH Make sure your code follows these guidelines and it will go a long way to cleaning things up - https://github.com/davidhealey/hise_documentation/blob/master/scripting/scripting-in-hise/hise-script-coding-standards.md

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

                        DanHD 1 Reply Last reply Reply Quote 0
                        • DanHD
                          DanH @d.healey
                          last edited by

                          @d-healey Thanks David, v useful :)

                          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                          https://dhplugins.com/ | https://dcbreaks.com/
                          London, UK

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

                          26

                          Online

                          1.9k

                          Users

                          12.5k

                          Topics

                          108.8k

                          Posts