Forum
    • Categories
    • Register
    • Login
    1. Home
    2. Jeetender
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 49
    • Groups 0

    Jeetender

    @Jeetender

    3
    Reputation
    1
    Profile views
    49
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Jeetender Unfollow Follow

    Best posts made by Jeetender

    • RE: This script processor has a network that consumes the parameters

      @dannytaurus said in This script processor has a network that consumes the parameters:

      @Jeetender Check the docs. Looks like you're missing an 's' at the end - setForwardControlsToParameters

      https://docs.hise.dev/scripting/scripting-api/dspnetwork/index.html#setforwardcontrolstoparameters

      Yes it was missing am 's' at the end, thank you. it works but gives out a warning in almost every script "Warning: 'local' used outside of callback/inline function, treating as 'var' "

      posted in General Questions
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey 😖 you know what david, my screen time for today is beyond limits, i think i should take a break and continue tomarrow.. too much coding for today.. But thank you the plugin is done.

      posted in Scripting
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey i dont know whats wrong, but deleting panels and remaking them agian solved the problem and now the values are showing perfectly and fine. thank you for you guidance and help.. and after i restart hise, i wont work.. 😠

      posted in Scripting
      J
      Jeetender

    Latest posts made by Jeetender

    • RE: Knob values displayed as percentage

      @David-Healey 😖 you know what david, my screen time for today is beyond limits, i think i should take a break and continue tomarrow.. too much coding for today.. But thank you the plugin is done.

      posted in Scripting
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey it was written in my notes.. setAttribute was giving an error so i added setattributnormalized as in java, but now it works, the controller are working and the values are displaying.... but now as i set the attribut for the slider, it gives an error

      Line 85, column 21: Illegal type: string, expected: number {{SW50ZXJmYWNlfHwyMTAyfDg1fDIx}}

      const Knob3 = Content.getComponent("Gain");
      Knob3.setControlCallback(onGainControl);
      
      inline function onGainControl(component, value)
      {
      	var dbValue;
      		
      	if (value < 0.567)
      	{
      		dbValue = ((value + 1) / (0.567 + 1)) * 60 - 60;
      	}
      	else
      	{
      		dbValue = ((value - 0.567) / (1 - 0.567)) * 12;
      	}
      	
      	Panel3.set("text", Math.round(dbValue) + " dB");
      	Panel3.repaint();
      	
      	DspNet.setAttribute("DspNet.gain", value); // this is line 85
      }
      
      const Panel3 = Content.getComponent("GainPanel");
      Panel3.setPaintRoutine(function(g)
      {
      	var c = this.getLocalBounds(0);
      	
      	g.setColour(this.get("textColour"));
      	g.drawAlignedText(this.get("text"), c, "centred");
      });
      
      
      posted in Scripting
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey said in Knob values displayed as percentage:

      @Jeetender What is the function on Line 30?

      const DspNet = Synth.getEffect("Script FX1");
      const Knob1 = Content.getComponent("left");
      Knob1.setControlCallback(onleftControl);
      
      inline function onleftControl(component, value)
      {
      	Panel1.set("text", Math.round(value * 100) + "%");
      	Panel1.repaint();
      	
      	DspNet.setAttributeNormalized(DspNet.Left, value); // line 30
      }
      
      const Panel1 = Content.getComponent("LeftPanel");
      Panel1.setPaintRoutine(function(g)
      {
      	var a = this.getLocalBounds(0);
      	g.setColour(this.get("textColour"));
      	g.drawAlignedText(this.get("text"), a, "centred");
      });
      
      
      posted in Scripting
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey

      Interface:! Line 30, column 31: function not found {{SW50ZXJmYWNlfHw4NTZ8MzB8MzE=}}

      posted in Scripting
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey

      yea iam trying to clean up with small error, now as iam using

      DspNet.setAttributeNormalized(DspNet.Left, value);

      it give sout an error fucntion not found..

      const DspNet = Synth.getEffect("Script FX1");
      const Knob1 = Content.getComponent("left");
      Knob1.setControlCallback(onleftControl);
      
      inline function onleftControl(component, value)
      {
      	Panel1.set("text", Math.round(value * 100) + "%");
      	Panel1.repaint();
      	
      	DspNet.setAttributeNormalized(DspNet.Left, value);
      }
      
      const Panel1 = Content.getComponent("LeftPanel");
      Panel1.setPaintRoutine(function(g)
      {
      	var a = this.getLocalBounds(0);
      	g.setColour(this.get("textColour"));
      	g.drawAlignedText(this.get("text"), a, "centred");
      });
      
      posted in Scripting
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey

      DspNet.setAttributeNormalized(Script FX1.Left, value);
      

      Found identifier when expecting ',' error after this line

      posted in Scripting
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey yes i saw the snippet and ure comment

      const DspNet = Synth.getEffect("Script FX1");
      
      const Knob1 = Content.getComponent("left");
      Knob1.setControlCallback(onleftControl);
      
      inline function onleftControl(component, value)
      {
      	Panel1.set("text", Math.round(value * 100) + "%");
      	Panel1.repaint();
      	
      	DspNet.setAttributeNormalized("Script Fx1.Left", value); // left is a macro in the dspnetowrk
      }
      
      const Panel1 = Content.getComponent("LeftPanel");
      Panel1.setPaintRoutine(function(g)
      {
      	var a = this.getLocalBounds(0);
      	
      	g.setColour(this.get("textColour"));
      	g.drawAlignedText(this.get("text"), a, "centred");
      });
      
      posted in Scripting
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey

      const Knob1 = Content.getComponent("left");
      Knob1.setControlCallback(onleftControl);
      
      inline function onleftControl(component, value)
      {
      	Panel1.set("text", Math.round(value * 100) + "%");
      	Panel1.repaint();
      	
      	this.setAttributeNormalized("DSPNetwork.leftjpanner.Pan", value);
      }
      
      const Panel1 = Content.getComponent("LeftPanel");
      Panel1.setPaintRoutine(function(g)
      {
      	var a = this.getLocalBounds(0);
      	
      	g.setColour(this.get("textColour"));
      	g.drawAlignedText(this.get("text"), a, "centred");
      });
      
      posted in Scripting
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey
      i can add this
      this.setAttribute("ProcessorParameterID", value) to the callbacks,

      this.setAttribute("Script FX1.LeftJpanner.pan", value)

      posted in Scripting
      J
      Jeetender
    • RE: Knob values displayed as percentage

      @David-Healey the only work around here is to display the pan or gain values from the scriptfx nodes?

      posted in Scripting
      J
      Jeetender