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

      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

                              26

                              Online

                              1.8k

                              Users

                              12.0k

                              Topics

                              104.4k

                              Posts