Forum
    • Categories
    • Register
    • Login
    1. Home
    2. JamesC
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 18
    • Posts 74
    • Groups 0

    JamesC

    @JamesC

    8
    Reputation
    3
    Profile views
    74
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    JamesC Unfollow Follow

    Best posts made by JamesC

    • RE: Notarisation help please!

      It was that certificate that needed the permission change that was the block.

      Honestly thank you so much to all of youf or your help I'm going to put together a post later this week step by step on what I had to do to get it working just incase anyone does face the same issues and at least then it summarised in one central location

      posted in Newbie League
      J
      JamesC
    • RE: Sampler randomly triggering help!

      @iamlamprey I unplugged all midi devices and then plugged them back in and haven't seen any issue since so bit odd but solved thanks for the help!

      posted in Newbie League
      J
      JamesC
    • RE: Coloured Keys not quite behaving...

      @d-healey Seeing it and what its actually doing makes so much more sense now, thanks so much again for brilliant video!

      posted in Newbie League
      J
      JamesC
    • RE: Automated exporter script for MacOS Help

      @DanH cheers for that the AI heavily judged me for not quite having the correct type of certificate and I was able so far to successfully sign the things!

      @d-healey thanks for your advice of doing it manually first so everythigns in place solid as always!

      posted in Newbie League
      J
      JamesC
    • RE: Issues with Sampler

      @JamesC @d-healey as predicted I missed a step, thanks so much for the videos that you have put out there, should have started with them!

      posted in Newbie League
      J
      JamesC
    • RE: XY Pad Gain Scaling...

      @JamesC So for those interested this is how I solved it in the end with a bit of AI help:

      inline function onxypadControl(component, value)
      {
      	local x = component.data.x;
      	local y = component.data.y;
      	
      	local gainX = -40 + (60 * x);
      	local gainY = -40 + (60 * (1 - y));
      	
      	gains1[0].setAttribute(gains1[0].GainValue, gainX);
      	gains1[1].setAttribute(gains1[1].GainValue, gainY);
      	
      	gains2[0].setAttribute(gains2[0].GainValue, gainX);
      	gains2[1].setAttribute(gains2[1].GainValue, gainY);
      	
      	knbxy[0].setValue(x);
      	knbxy[1].setValue(y);
      	
      	component.repaint();
      	
      }
      
      posted in Scripting
      J
      JamesC

    Latest posts made by JamesC

    • RE: Odd complied behavior of VST3 in DAW

      @David-Healey no deliberately not updated either cubase or logic

      posted in Newbie League
      J
      JamesC
    • RE: Odd complied behavior of VST3 in DAW

      @JamesC No I've deliberately not done that as not really at a point it would be sensible to do so so not touched that side of things at all.

      posted in Newbie League
      J
      JamesC
    • Odd complied behavior of VST3 in DAW

      Evening

      Hope everyone is well! An odd one here I've a compiled project which has been working fine and tested made some adjustments and since that when the interface is open for plugin in DAW the rest of DAW does not function but is frozen until plugin interface is closed.

      Initially I thought changes we made were the cause of this so I rolled back but am now having the same issue on the older version also.

      Has anyone come across this and know what it might be that is triggering this kind of behavior?

      Thanks

      posted in Newbie League
      J
      JamesC
    • RE: XY Pad Gain Scaling...

      @JamesC So for those interested this is how I solved it in the end with a bit of AI help:

      inline function onxypadControl(component, value)
      {
      	local x = component.data.x;
      	local y = component.data.y;
      	
      	local gainX = -40 + (60 * x);
      	local gainY = -40 + (60 * (1 - y));
      	
      	gains1[0].setAttribute(gains1[0].GainValue, gainX);
      	gains1[1].setAttribute(gains1[1].GainValue, gainY);
      	
      	gains2[0].setAttribute(gains2[0].GainValue, gainX);
      	gains2[1].setAttribute(gains2[1].GainValue, gainY);
      	
      	knbxy[0].setValue(x);
      	knbxy[1].setValue(y);
      	
      	component.repaint();
      	
      }
      
      posted in Scripting
      J
      JamesC
    • XY Pad Gain Scaling...

      Morning all hope you are all enjoying the holidays still.

      I've got an XY Pad in a project that in itself is working nicely doing what it should and has a knob assigned to X axis and one to Y axis as you would expect, I'm wanting to control the gain on 4 simple gains 2 on the X 2 on the Y which again I've got working as it should, I'm just not sure to the maths for the values currently I've got it set to this:

      inline function onxypadControl(component, value)
      {
      	local x = component.data.x;
      	local y = component.data.y;
      	
      	gains1[0].setAttribute(gains1[0].GainValue, 36 * x);
      	gains1[1].setAttribute(gains1[1].GainValue, 36 - 36 * y);
      	
      	gains2[0].setAttribute(gains2[0].GainValue, 36 * x);
      	gains2[1].setAttribute(gains2[1].GainValue, 36 - 36 * y);
      	
      	knbxy[0].setValue(x);
      	knbxy[1].setValue(y);
      	
      	component.repaint();
      	
      }
      

      Which works to set the gain between 0 and 36. Now 36db is going to be way too loud for whats going on here so yes I could reduce that but also gain running right down to -100 whats the easiest way for me be able to include some of that in the range essentially looking at -30 to 20 or some such or in other words almost barely noticeable to packs some punch if you want.

      posted in Scripting
      J
      JamesC
    • RE: Custom Display panel questions...

      @David-Healey I'm not sure I've tried to get it to print some info to console for me but stuck at this point. Here is the full code if that helps shed any further light:

      ///Convo Reverb
      const var ConvolutionReverb1 = Synth.getAudioSampleProcessor("Convolution Reverb1");
      const var irs = Engine.loadAudioFilesIntoPool();
      
      const var rvbnextbtn = Content.getComponent("rvbnextbtn");
      const var rvbprevbtn = Content.getComponent("rvbprevbtn");
      
      // Track current IR
      var currentIRIndex = 0;
      
      ConvolutionReverb1.setFile(irs[currentIRIndex]);
      
      inline function onrvbnextbtnControl(component, value)
      {
          if (value)
          {
              currentIRIndex++;
      
              if (currentIRIndex >= irs.length)
                  currentIRIndex = 0; 
      
              ConvolutionReverb1.setFile(irs[currentIRIndex]);
          }
      }
      
      inline function onrvbprevbtnControl(component, value)
      {
          if (value)
          {
              currentIRIndex--;
      
              if (currentIRIndex < 0)
                  currentIRIndex = irs.length - 1; 
      
              ConvolutionReverb1.setFile(irs[currentIRIndex]);
          }
      }
      
      rvbnextbtn.setControlCallback(onrvbnextbtnControl);
      rvbprevbtn.setControlCallback(onrvbprevbtnControl);
      
      const lafrvbnextbtn = Content.createLocalLookAndFeel();
      rvbnextbtn.setLocalLookAndFeel(lafrvbnextbtn);
      
      lafrvbnextbtn.registerFunction("drawToggleButton", function(g, obj)
      	{
      		var c = obj.area;
      		
      		g.setFont("phosphor", 30);
      		g.setColour(obj.textColour);
      		g.drawAlignedText("\ue02e", c, "centred");
      	});
      
      const lafrvbprevbtn = Content.createLocalLookAndFeel();
      rvbprevbtn.setLocalLookAndFeel(lafrvbprevbtn);
      	
      	lafrvbprevbtn.registerFunction("drawToggleButton", function(g, obj)
      	{
      		var c = obj.area;
      		
      		g.setFont("phosphor", 30);
      		g.setColour(obj.textColour);
      		g.drawAlignedText("\ue05a", c, "centred");
      	});
      
      const var rvbfilename = Content.getComponent("rvbfilename");
      
      inline function onrvbfilenameControl(component, value)
      {
      	local currentReverb = ConvolutionReverb1.getCurrentlyLoadedFile();
      	    if (currentReverb == "")
      	    {
      	        rvbfilename.set("text", currentReverb);
      	    }
      	    else
      	    {
      	        rvbfilename.set("text", currentReverb);
      	    }
      	   rvbfilename.repaint();
      };
      
      Content.getComponent("rvbfilename").setControlCallback(onrvbfilenameControl);
      
      rvbfilename.setPaintRoutine(function(g)
      {
          var a = this.getLocalBounds(0);
          var cornerRadius = 4;
          
      
          // Text color
          if (isContainerOpen || isHovered)
          {
              g.setColour(0xFFFFFFFF);
          }
          else
          {
              g.setColour(0xFFFFFFFF);
          }
      
          // IR text
          var textArea = [a[0], a[1], a[2], a[3]];
          g.setFont("font", 20);
          if (currentReverb == "")
          {
              g.drawAlignedText("Default", textArea, "centred");
          }
          else
          {
      
              g.drawAlignedText(currentReverb, textArea, "centred");
          }
      });
      
      
      posted in Scripting
      J
      JamesC
    • RE: Custom Display panel questions...

      @dannytaurus

      Thanks for that buttons now working as I wanted now working on the text appearing, I can't quite work out what I've missed, currently it displays undefined:

      Screenshot 2025-12-19 054159.png

      This is the current code in respect of the text:

      const var rvbfilename = Content.getComponent("rvbfilename");
      
      inline function onrvbfilenameControl(component, value)
      {
      	local currentReverb = ConvolutionReverb1.getCurrentlyLoadedFile();
      	    if (currentReverb == "")
      	    {
      	        rvbfilename.set("text", currentReverb);
      	    }
      	    else
      	    {
      	        rvbfilename.set("text", currentReverb);
      	    }
      	   rvbfilename.repaint();
      };
      
      Content.getComponent("rvbfilename").setControlCallback(onrvbfilenameControl);
      
      rvbfilename.setPaintRoutine(function(g)
      {
          var a = this.getLocalBounds(0);
          var cornerRadius = 4;
          
      
          // Text color
          if (isContainerOpen || isHovered)
          {
              g.setColour(0xFFFFFFFF);
          }
          else
          {
              g.setColour(0xFFFFFFFF);
          }
      
          // IR text
          var textArea = [a[0], a[1], a[2], a[3]];
          g.setFont("font", 20);
          if (currentReverb == "")
          {
              g.drawAlignedText("Default", textArea, "centred");
          }
          else
          {
              g.drawAlignedText(currentReverb, textArea, "centred");
          }
      });
      
      posted in Scripting
      J
      JamesC
    • RE: Custom Display panel questions...

      @JamesC Nice its always the simplest thing here's what I ended up doing in case anyone else needs it and for any general feedback:

      const var ConvolutionReverb1 = Synth.getAudioSampleProcessor("Convolution Reverb1");
      const var irs = Engine.loadAudioFilesIntoPool();
      
      const var rvbnextbtn = Content.getComponent("rvbnextbtn");
      const var rvbprevbtn = Content.getComponent("rvbprevbtn");
      
      // Track current IR
      var currentIRIndex = 0;
      
      ConvolutionReverb1.setFile(irs[currentIRIndex]);
      
      inline function onrvbnextbtnControl(component, value)
      {
          if (value)
          {
              currentIRIndex++;
      
              if (currentIRIndex >= irs.length)
                  currentIRIndex = 0; 
      
              ConvolutionReverb1.setFile(irs[currentIRIndex]);
          }
      }
      
      inline function onrvbprevbtnControl(component, value)
      {
          if (value)
          {
              currentIRIndex--;
      
              if (currentIRIndex < 0)
                  currentIRIndex = irs.length - 1; 
      
              ConvolutionReverb1.setFile(irs[currentIRIndex]);
          }
      }
      
      rvbnextbtn.setControlCallback(onrvbnextbtnControl);
      rvbprevbtn.setControlCallback(onrvbprevbtnControl);
      

      Now all becomes about show the curently loaded file name in the panel!

      posted in Scripting
      J
      JamesC
    • Custom Display panel questions...

      Happy holidays all!

      Haven't been able to spend as much time as I would like working on projects and ideas but I was pleased I managed to create a custom preset bar that would display the loaded preset (if you click that text it opens the preset browser, as well as having next and previous buttons) its not the most sophisticated but it works:

      Screenshot 2025-12-18 200257.png

      I know this can be done with a combo box (I've got that set up atm) but in order to keep the UI consistent I'm looking to create essentially the same but that using the buttons will cycle through the various IR files in the folder for the Convolution Reverb.

      Firstly is this possible? Can it be built onto what I've already done with the combo box and then making the combox not visible but behind the scenes? I know I can essentially recycle the look and feel bits and pieces I've done in terms of design its the under the hood bits and pieces that I can't envision in my head.

      As always thanks for your help/responses in advance!

      posted in Scripting
      J
      JamesC
    • RE: Sampler randomly triggering help!

      @iamlamprey I unplugged all midi devices and then plugged them back in and haven't seen any issue since so bit odd but solved thanks for the help!

      posted in Newbie League
      J
      JamesC