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.
    • d.healeyD
      d.healey
      last edited by

      Can you post a minimal snippet that demonstrates the shapeFX = click issue?

      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 I'll have to post a project as you'll need presets...

        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 No presets needed. I can make my own :) just the simplest example that demonstrates the issue. Preferably with a sinewave generator rather than a sampler.

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

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

            @d-healey Ok! Snippet below:

            HiseSnippet 2126.3oc6ZzzaabbcnjVWSZKm3fDzdbAQOPgnnPR8ISgAW8AoDgkHI3Jaohz7wpcGJN0K2gX2gzV1U.8RA5egbK.8dOVfdK+.5gTzyEH.8PQu4+AsuYlc4NKEEEKAriUQW.a348l279bdeLzM8o13f.pOJU5iunGFk59ZlW3w5raGKhGp1dnTOTy7fsaVo5o50LMeRE8UQ6bQOqf.rCJUp42musToW.I9dc4crbs7rwwfPnmRI13CIcIrXnMMdLw0spkC9XRWkculQMap2tTWZePjlWKOpmk8yrNGW2hus4zPotSEGBi5axrX3.TpE1g5bgYG5y8j6+oj.xYtX9hBHS3fjfqRcc3RLGJZ2NDWmlQpd.BkRqYrgXdog3C0Nh3PFBO1f79BD5wTnZORM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qcPfu6ub3Re2dXWqD08NIwqBf9kFiYTgZPiP9rlTWK+QqZN+ahRUStzNWkt8zJBuaRvjeaRfEgD2dD32WCF56c.w8sbxfIaRfJN2d7f+TMXV7h5hd10+wuo82FNx2F7nqksO8qrk+TF7br2U.AzaOw+CCRqcDes9vePGMs7qjm+bojux1lOXxm.1mwSSwYflUmAZVaFnY8YflMlAZ1bFnYqIRC+Ya3sY1UF+C.ZVQ7aljJk7kqDWEP+GXvDLvI
            

            I think that perhaps what is going on is that when I change preset HISE updates all the modules with their new settings, but gets to the UI knobs and buttons etc slightly later, thereby allowing the clicks through because the script hasn't got to the point where it mutes the ShapeFX etc.

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

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

              So to recreate the issue all I need to do is save a few presets with different shapeFX settings and switch between them?

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

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

                Yes, but make some super whacky shapes and crank the gain up - you should at least see the meters move when you change presets even if you don't hear the clicks. There's a lot going on in my project that's hard to replicate in a simple snippet to get exactly the same behaviour...

                Thanks for helping!

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

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

                  I'm not hearing or seeing an issue, the meters jump, but only up to the waveform generator, it doesn't pass through the the main container or HISE output because HISE auto mutes the instrument when you switch presets. I disabled all the scripting before I tried this btw because I didn't want it getting in the way.

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

                  orangeO DanHD 2 Replies Last reply Reply Quote 0
                  • orangeO
                    orange @d.healey
                    last edited by

                    @d-healey I think this is happening on the exported plugin, not in Hise.

                    develop Branch / XCode 13.1
                    macOS Monterey / M1 Max

                    DanHD 1 Reply Last reply Reply Quote 0
                    • 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?

                          Can't help pressing F5 in the forum...

                          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...)

                                Can't help pressing F5 in the forum...

                                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

                                    Can't help pressing F5 in the forum...

                                    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

                                          37

                                          Online

                                          1.8k

                                          Users

                                          12.0k

                                          Topics

                                          104.4k

                                          Posts