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

    Topics

    • J

      Knob values displayed as percentage

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      44
      0 Votes
      44 Posts
      149 Views
      J

      @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.

    • J

      How to display jpanner node values in labels/panel

      Watching Ignoring Scheduled Pinned Locked Moved ScriptNode
      5
      0 Votes
      5 Posts
      124 Views
      J

      @Jeetender said in How to display jpanner node values in labels/panel:

      the one in the red circle, i want to display its value from -100% to a 100%
      Untitled.png

      @David-Healey said in How to display jpanner node values in labels/panel:

      @Jeetender So what you show on your UI is the value of Left, since that is controlling the parameter.

      For example

      const ScriptFX1 = Synth.getEffect("Script FX1"); Console.print(ScriptFX1.getAttribute(ScriptFX1.Left)); API call with undefined parameter 0

      But I'm guessing you have a knob on your UI that is connected to Left already?

    • J

      Rms type or Cosine type Crossfade Curves

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      16
      0 Votes
      16 Posts
      469 Views
      J

      @Lindon said in Rms type or Cosine type Crossfade Curves:

      @Jeetender eaiest way is ro use a scriptnode network and a xfade module...

      Yes, but iam not using DspNetwork. just trygin sumthing with the modules only.

      @griffinboy the script is ok, the knob is linear from min 0 to max 1, it only moves either knobs a few dbs +/- . I dont know, my tabs panels were working last night and now the panels wont change with buttons..

      It did work with a macro control, but still the curves

    • J

      This script processor has a network that consumes the parameters

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      3
      0 Votes
      3 Posts
      119 Views
      HISEnbergH

      @Jeetender This issue comes up every now and again, check here.

    • J

      JUCE error while exporting VST

      Watching Ignoring Scheduled Pinned Locked Moved General Questions
      17
      0 Votes
      17 Posts
      639 Views
      J

      @David-Healey said in JUCE error while exporting VST:

      @Jeetender How big is it?

      Content.makeFrontInterface(700, 400);

      const var scriptFx = Synth.getEffect("Script FX1");
      const var buttons = [];
      const var panels = [];

      for (i = 0; i < 5; i++)
      {
      buttons[i] = Content.getComponent("Button" + (i));
      panels[i] = Content.getComponent("Panel" + (i));
      buttons[i].setControlCallback(onButtonControl);
      }

      inline function onButtonControl(component, value)
      {
      if (!value) return;

      local idx = buttons.indexOf(component); local compSwitchValue = idx * 0.25; // Show corresponding panel for (i = 0; i < 5; i++) { panels[i].showControl(i == idx); buttons[i].setValue(i == idx); } scriptFx.setAttribute(0, compSwitchValue);

      }

      //const var scriptFx = Synth.getEffect("Script FX1");
      const var mtbuttons = [];
      const var mtpanels = [];

      for (j = 0; j < 3; j++)
      {
      mtbuttons[j] = Content.getComponent("MtrBut" + (j));
      mtpanels[j] = Content.getComponent("MtrPnl" + (j));
      mtbuttons[j].setControlCallback(onMtrButControl);
      }

      inline function onMtrButControl(component, value)
      {
      if (!value) return;
      local ide = mtbuttons.indexOf(component);
      local compSwitchValue = ide * 0.25;

      for (j = 0; j < 3; j++) { mtpanels[j].showControl(j == ide); mtbuttons[j].setValue(j == ide); }

      }

      const var rm = Engine.getGlobalRoutingManager();
      const var cable = rm.getCable("global_cable");

      const var Knob1 = Content.getComponent("Knob1");

      cable.registerCallback(function(value)
      {
      var dB = Engine.getDecibelsForGainFactor(value);
      dB = Math.max(-60, dB); // Clamp to -60dB
      Knob1.setValue(dB);
      Knob1.changed(); // Update UI
      }, AsyncNotification);