HISE Logo Forum
    • Categories
    • Register
    • Login

    Switching presets w/ button loads slowly

    Scheduled Pinned Locked Moved General Questions
    12 Posts 3 Posters 444 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.
    • B
      BWSounds
      last edited by

      Hello,
      While switching presets I noticed the load time increases when I stay on a preset for a while then switch to the next one and also when I 1st open the plugin up. Is that just standard or can it be fixed?

      I have 2 samples in use in the project I’m working on.

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

        @BWSounds Are you loading samples when changing presets?

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

        B 1 Reply Last reply Reply Quote 0
        • B
          BWSounds @d.healey
          last edited by

          @d-healey
          Yes.

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

            @BWSounds Then I assume the delay is the time it takes to load the samples. The fact the time increases when you've been on one preset for a while could be some kind of caching thing. Are you testing this in a standalone build?

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

            B 1 Reply Last reply Reply Quote 0
            • B
              BWSounds @d.healey
              last edited by

              @d-healey
              Standalone Yes. It’s just odd to me, when I use the preset browser to select a preset it does it right away, every time.

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

                @BWSounds said in Switching presets w/ button loads slowly:

                I use the preset browser to select a preset

                I assumed that's what you were doing. Are you saying this issue is only noticeable when changing the preset through scripting?

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

                B 1 Reply Last reply Reply Quote 0
                • B
                  BWSounds @d.healey
                  last edited by

                  @d-healey yes sir

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

                    @BWSounds

                    yes sir

                    Then we need to see the script.

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

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      BWSounds @d.healey
                      last edited by BWSounds

                      @d-healey

                      // previous arrow //
                      inline function onButton8Control(component, value)
                      {
                      if (value ==1)
                      {
                      Engine.loadPreviousUserPreset(true);

                      }
                      };

                      Content.getComponent("Button8").setControlCallback(onButton8Control);

                      // next arrow//
                      inline function onButton15Control(component, value)
                      {
                      if (value ==1)
                      {
                      Engine.loadNextUserPreset(true);
                      // Buttonsyncenv.changed();
                      }
                      };

                      Content.getComponent("Button15").setControlCallback(onButton15Control);

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

                        @BWSounds I can't see anything wrong with that. I like the wonderfully clear naming choices for your buttons :p

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

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          BWSounds @d.healey
                          last edited by

                          @d-healey
                          humm..well that's weird. i'll mess with it a bit more, maybe chance the names of the controls haha

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

                            @BWSounds are the buttons saveInPreset disabled? Though I'm not sure this would have an impact on your particular problem…

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

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

                            49

                            Online

                            1.7k

                            Users

                            11.7k

                            Topics

                            101.9k

                            Posts