HISE Logo Forum
    • Categories
    • Register
    • Login

    AAX plugin doesn't initiate default slider values when loaded in Pro Tools

    Scheduled Pinned Locked Moved General Questions
    49 Posts 10 Posters 2.4k 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 @orange
      last edited by

      @orange Can you narrow down to which commit?

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

      orangeO 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @orange
        last edited by

        @orange well I have a user with AAX plugins from over a year ago -- and these are not working either - so its not a recent problem.

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @Lindon
          last edited by

          @Lindon said in AAX plugin doesn't initiate default slider values when loaded in Pro Tools:

          I think I'm going to prefer a config file read/write:

          Actually I'm pretty sure none of these approaches work if we think about it for a minute....

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 0
          • orangeO
            orange @d.healey
            last edited by orange

            @d-healey said in AAX plugin doesn't initiate default slider values when loaded in Pro Tools:

            @orange Can you narrow down to which commit?

            @Lindon said in AAX plugin doesn't initiate default slider values when loaded in Pro Tools:

            @orange well I have a user with AAX plugins from over a year ago -- and these are not working either - so its not a recent problem.

            No it is a recent issue (I haven't compiled the current commit yet). The button issue is there for years. But sliders were working.

            The exported plugins on June (develop branch) are working. You can try these yourself, I checked yesterday.

            develop Branch / XCode 13.1
            macOS Monterey / M1 Max

            gorangroovesG 1 Reply Last reply Reply Quote 0
            • gorangroovesG
              gorangrooves @orange
              last edited by

              Ideally, PT should load the default values. If we can't have the ideal, we need to settle for the next best solution, at least until the ideal is achievable.

              Looking at Christoph's script and comparing it to my sliders, this is what I notice:
              The default values for the sliders do not match the initial values of the sliders. Some sliders may be at 0.34, while the default value is set to 0.8. Actually, most sliders seem to have this value of 0.8. So restoring the defaultValue would not solve the problem unless we go and manually enter default values for all sliders to match what they are on the initial load normally. This would be very time-consuming.

              So, I guess recalling the default preset would be a more practical solution, as @ps suggested. Of course, this means that you must have the presets implemented in your plugins.

              Goran Rista
              https://gorangrooves.com

              Handy Drums and Handy Grooves
              https://library.gorangrooves.com

              gorangroovesG 1 Reply Last reply Reply Quote 0
              • gorangroovesG
                gorangrooves @gorangrooves
                last edited by

                So, to get around the defaultValue not being equal to the actual value, I tweaked a portion of Christoph's script which should be run once when final settings are made, then commented out before compiling.

                //Set defaultValue of all components, which are plugin parameters, to their current values
                // IMPORTANT: Comment this out before the plugin compiling
                
                for(c in Content.getAllComponents(".*"))
                	{
                		if(c.get("isPluginParameter"))
                		{
                			c.set("defaultValue", c.getValue());
                		}
                	}
                

                Now that the default values are correct, we can proceed with the combination of Christoph's and ps scripts.

                Goran Rista
                https://gorangrooves.com

                Handy Drums and Handy Grooves
                https://library.gorangrooves.com

                gorangroovesG 1 Reply Last reply Reply Quote 0
                • gorangroovesG
                  gorangrooves @gorangrooves
                  last edited by

                  Alright, guys, please check if this looks OK, using @Christoph-Hart 's script and combined with @ps strategy.

                  //-------Pro Tools initial settings fix
                  
                  const var ProtoolsParameterFixer = Engine.createTimerObject();
                  const var DrumsSlider = Content.getComponent("DrumsSlider"); // This should not be 0 by default
                  
                  
                  ProtoolsParameterFixer.setTimerCallback(function()
                  {
                  	for(c in Content.getAllComponents(".*"))
                  		{
                  			if(DrumsSlider.getValue() == 0 && c.get("isPluginParameter"))
                  			{
                  				c.setValue(c.get("defaultValue"));
                  				c.changed();
                  			}
                  		}
                  	this.stopTimer();
                  });
                  
                  ProtoolsParameterFixer.startTimer(600);
                  

                  Goran Rista
                  https://gorangrooves.com

                  Handy Drums and Handy Grooves
                  https://library.gorangrooves.com

                  orangeO 1 Reply Last reply Reply Quote 0
                  • orangeO
                    orange @gorangrooves
                    last edited by

                    @gorangrooves Does this AAX issue happens in all operating systems? Windows, macOS intel & M1?

                    develop Branch / XCode 13.1
                    macOS Monterey / M1 Max

                    gorangroovesG 1 Reply Last reply Reply Quote 0
                    • gorangroovesG
                      gorangrooves @orange
                      last edited by

                      @orange I've only tested it with Windows, and the above script did not do the trick, unfortunately. Maybe I didn't write it properly. I'll have to revise it.

                      Goran Rista
                      https://gorangrooves.com

                      Handy Drums and Handy Grooves
                      https://library.gorangrooves.com

                      gorangroovesG 1 Reply Last reply Reply Quote 0
                      • gorangroovesG
                        gorangrooves @gorangrooves
                        last edited by

                        There is actually a build error. The plugin didn't compile. I was testing my previous AAX plugin version. I will be posting the compiling error info as soon as I test whether VSTi compiling works.

                        Goran Rista
                        https://gorangrooves.com

                        Handy Drums and Handy Grooves
                        https://library.gorangrooves.com

                        gorangroovesG 1 Reply Last reply Reply Quote 0
                        • gorangroovesG
                          gorangrooves @gorangrooves
                          last edited by

                          Guys, I am happy to report that the above script works well and restores the default values in Pro Tools seamlessly. This should do the trick until a "proper" fix is figured out. It certainly beats having customers load the plugin for the first time that doesn't make any sound with no indication of why.

                          I am yet to test this in the release version of Pro Tools when I can save a session (once I get my PACE signing tools). I'll report back.

                          Thank you, @Christoph-Hart and @ps, for all of your help!

                          Goran Rista
                          https://gorangrooves.com

                          Handy Drums and Handy Grooves
                          https://library.gorangrooves.com

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

                            trying to find a more recent thread on this issue - I'm sure it was discussed again very recently!! Forum search is such a disaster lol!

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

                            gorangroovesG 1 Reply Last reply Reply Quote 0
                            • gorangroovesG
                              gorangrooves @DanH
                              last edited by

                              @DanH https://forum.hise.audio/topic/7621/protools-load-problem/25?_=1687444674577

                              Goran Rista
                              https://gorangrooves.com

                              Handy Drums and Handy Grooves
                              https://library.gorangrooves.com

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

                              18

                              Online

                              1.7k

                              Users

                              11.8k

                              Topics

                              102.4k

                              Posts