HISE Logo Forum
    • Categories
    • Register
    • Login

    I got a bug report for my plugin from a tester

    Scheduled Pinned Locked Moved Unsolved General Questions
    23 Posts 7 Posters 1.2k 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.
    • A
      aaronventure @Straticah
      last edited by

      @Straticah the idea is to call this method in your on init callback so that the function in there executes after on init.

      You can call your repaint methods in that function to see if they reset the graphics correctly.

      If they do, you have some value setting call somewhere that does not refresh the interface. Add some isDefined(checks) when setting values.

      But at that point, if it works with no drawbacks, you can just leave it like that. It's ugly and hacky, but it's an edge case.

      I shipped worse.

      StraticahS 1 Reply Last reply Reply Quote 1
      • StraticahS
        Straticah @aaronventure
        last edited by Straticah

        @aaronventure @Dan-Korneff it did not works because the script is taking the value. And the value in this case is a variable it has two scales, and it usually takes the 0-18 scale which is not the one i need. (im also a true beginner when it comes to these types of scripts)

        inline function onSYNC2Control(component, value)
        {
          GRAINS.setAttribute(GRAINS.Delay_Sync, value);
          
        	if(value)
        	{
        		// the callAfterDelay script takes this as GRAINS.SpeedL
        		Knob7.set("mode", "TempoSync");
        		Knob7.set("min", 0);
        		Knob7.set("max", 18);
        		Knob7.set("stepSize", 1);
        		
        		Knob8.set("mode", "TempoSync");
        		Knob8.set("min", 0);
        		Knob8.set("max", 18);
        		Knob8.set("stepSize", 1);
        
        
        	}
        	else
        	{
        		// but this is needed in this case
        		Knob7.set("mode", "Time");
        		Knob7.set("min", 0);
        		Knob7.set("max", 1000);
        		Knob7.set("middlePosition", 500);
        		Knob7.set("stepSize", 1);
        	
        		Knob8.set("mode", "Time");
        		Knob8.set("min", 0);
        		Knob8.set("max", 1000);
        		Knob8.set("middlePosition", 500);
        		Knob8.set("stepSize", 1);
        	}
        
        Knob7.setValue(GRAINS.getAttribute(GRAINS.SpeedL));
        Knob8.setValue(GRAINS.getAttribute(GRAINS.SpeedR));	
        
        }
        
        Content.getComponent("Buttonsync1").setControlCallback(onSYNC2Control);
        

        is there a way to double click the sync unsync btn: in this case Buttonsync1 twice on loading to refresh the state? i know this is quite bad but this vst has already been sold and i am not able to change this setup into two independent sliders (which has been recommended), i would have to redo all presets and the users could not use the new vst version with their old projects.

        building user interfaces in HISE :)
        web: www.vst-design.com

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

          @Straticah said in I got a bug report for my plugin from a tester:
          and the users could not use the new vst version with their old projects.

          -- this case is exactly what the pre and post preset callbacks are for...

          HISE Development for hire.
          www.channelrobot.com

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

          32

          Online

          1.7k

          Users

          11.8k

          Topics

          102.7k

          Posts