HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Chazrox
    3. Posts
    • Profile
    • Following 6
    • Followers 5
    • Topics 161
    • Posts 1,342
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Lindon's interface has gone mad!....optimising a massive UI

      Choose your core controls, lets say for example ' attack' and 'release' x 12 samplers. Just make 1 attack knob and 1 release and trigger which envelope its assigned to via 'last note triggered'. So if that note is detected by piano press or a UI button, it will change its processor connection to the corresponding module. You can add some visual changes to let the user know which row its triggering. I have a 'core parameters' section thats all dynamically changed by piano press and/or UI button controls changing a variable flag 'last note played = note'. I change processor connection and call updateValueFromProcessor...something like that on all the core parameter control components.

      Screenshot 2025-11-25 at 2.56.46 AM.png

      These are my controls for 12 samplers all neatly tucked into a few tabs. You could def have more tabs, and maybe tabs within those tabs for your 3 different layers. A few different panels and a few radio buttons is the best way I could figure out how to minimize my interface when I want alot of controls but not want to show them all at the same time.

      This is just how I figured I'd approach it. 🙏

      btw, all individual parameters are obviously still read/write on preset loads so you do those in the background and on load you just restore the knobs visually for what trigger you want to show on launch.

      posted in General Questions
      ChazroxC
      Chazrox
    • RE: Need More 'reg' variables !

      @d-healey I do everything on onInit, then I split them into namespaces, but up until now, I always try to leave just the core, factory settings, any initializations and all global variables and stuff like setting combobox lists and stuff like that on interface. I think im somewhat organized to my best knowledge.

      I usually end up moving as much as possible to external namespaces as I move along.

      Screenshot 2025-11-24 at 1.44.19 PM.png

      @d-healey said in Need More 'reg' variables !:

      Can you change any of your reg to const?

      can you give me a quick tip on which reg's be change to const? 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Sampler.setSoundPropertyForSelection(); seems to have a bug.

      @d-healey There are some rare cases that .setAttribute gives an error if I use param ID instead of a number. Gives an error on only certain things error: "expected int" I think the error is. I'll specifically note them next time and tell you.

      posted in Bug Reports
      ChazroxC
      Chazrox
    • Need More 'reg' variables !

      Im pushing close to the 32 reg max per script on my interface script. I have some other functions I still need to write that need a few reg flags. I know we can have 32 reg variables per script and that if we use a namespace we can have 32 reg within that namespace. Can I create a namespace block and leave it in my interface script just to get more reg?

      I thought about creating a namespace and moving to external file, but will those reg variables be available globally? Will it be available globally in a namespace like I described above? Just curious if anybody has any advice.

      Thanks! Hope everyone is having a great day! Bless! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: How do we get accurate playHead feedback?

      We've made it this far....

      Screen Recording 2025-11-23 at 1.11.25 PM.mov

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: How do we get accurate playHead feedback?

      @d-healey all good. Thanks.

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: How do we get accurate playHead feedback?

      I feel so close. lol....

      Here's what I have now. Repaints and panel callbacks all working great. Its just trying to match the transport playhead to some sort of blinking line progressing through the grid.

      @d-healey I ended up ditching at arps for MidiPlayers. Works great.
      Screenshot 2025-11-23 at 9.40.27 AM.png

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: How do we get accurate playHead feedback?

      @d-healey How is it done with the slider packs? Those seem to be on time atleast. I know even the sliderpacks feel a little behind but atleast they progress at an equal intervals and match play/stop transports. hmmmm

      posted in Scripting
      ChazroxC
      Chazrox
    • How do we get accurate playHead feedback?

      Im really trying to match my paint routine of my panel to the transportHandler but im either too fast or too slow if you know what I mean. If anybody has any good pointers on getting accurate playHead control for a stepsequencer please share! 🙏

      I need to be able to read realtime feedback. I know the playHead object is supposed to provide that but for some reason I cant get my panel to line up properly. Like I said, either too fast or too slow...hmmm.....

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      Anybody know how to check viewport list for 'scroll bar dragging'?

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @HISEnberg Im seeing now! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      ok....

      That wasnt that bad at all...

      So I figured....bypass the actual panel visuals and just execute .startExternalFileDrag() and let it do its thing essentially using the panel just to hold the function I guess.

      The only thing I need to do now (not shown in video) is to check for 'scrollbar drag' and not execute file dragger in that instance.

      File Dragger working.gif

      Here's the working code so far:

      inline function DraggerFinishedCallback()
      {
      	
      };
      
      
      // Broadcaster definition
      const var bcvpAllFilesFiltered = Engine.createBroadcaster({
        "id": "vpAllFilesFiltered",
        "args": ["component", "event"],
        "tags": []
      });
      
      // attach to event Type
      bcvpAllFilesFiltered.attachToComponentMouseEvents(["vpAllFilesFiltered"], "Clicks, Hover & Dragging", "");
      
      // attach first listener
      bcvpAllFilesFiltered.addListener(pnlFileDragger, "FileDraggingNow", function(component, event){
      	
      	if (event.drag)
      	{
      		this.startExternalFileDrag(AudioLoopPlayerAuditioner.getFilename(), false, DraggerFinishedCallback);
      	}
      });
      

      Anybody know how to check viewport list for 'scroll dragging'?

      @d-healey @ustk
      yyyyyeah bro, I can see where this can be useful in a lot of things...I think im getting it now. 🙏 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      ----- continued thoughts.....

      In the end, Im going to want to do .startExternalFileDrag();

      am I going in the right path or am I digging a hole?

      I want the user to be able to click/drag the viewport list item / grab file data / .startExternalFileDrag();

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @d-healey I watched your bc video again and for some reason it just made alot more sense this time around. I think I understand a little more in general now so it wasn't as intimidating. lol Thanks for the video! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @d-healey @ustk
      Yo! ok I got this far. That wasnt that bad.

      Maybe you can check this out and see why when I drag from different parts of the viewport list, the pop up image is sometimes right under my mouse as desired and sometimes it isnt. Is event.x at the time that im calling it 'event.x' of the entire UI or wah? I cant tell where im measuring from.

      I would like to be able to 'check value' first so I can get item text and stuff for my end function eventually but I know thats going to require a different broadcaster callback. I'll figure that out after. I just want to center this image pop up. Any tips? 🙏

      Dragger kinda working.gif

      // Broadcaster definition
      const var bcvpAllFilesFiltered = Engine.createBroadcaster({
        "id": "vpAllFilesFiltered",
        "args": ["component", "event"],
        "tags": []
      });
      
      // attach to event Type
      bcvpAllFilesFiltered.attachToComponentMouseEvents(["vpAllFilesFiltered"], "Clicks, Hover & Dragging", "");
      
      // attach first listener
      bcvpAllFilesFiltered.addListener(pnlFileDragger, "FileDraggingNow", function(component, event){
      	
      	if (event.drag)
      	{
      		this.showControl(true);
      		this.set("x", event.x + 100);
      		this.set("y", event.y + 100);
      	}
      	else
      	{
      		this.showControl(false);
      	}
      });
      
      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @HISEnberg I think the part that gets me is understanding what arguments to use and why, and in what order. I can assume, but I dont feel sure in my choices just yet. I've been using helper functions so Im barley starting to understand how to pass arguments to other functions but im still getting comfy with everything. Appreciate the advice! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @ustk @d-healey Thanks guys! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: How to trigger label callback on enter/return but not on focus change?

      @d-healey ah crud. Yeah we did. Ok I fixed it. Thank You! Sorry for wasting just a little bit of your time. I'll make it up to you in enthusiasm! haha. Hope you're having a great day! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: How to trigger label callback on enter/return but not on focus change?

      @d-healey oh. Sorry. I dont remember that part. I just searched for 'label ENTER' and this thread popped up. I didnt see the other one.

      @d-healey said in How to trigger label callback on enter/return but not on focus change?:

      default behaviour of the label is to trigger

      weird, my lables dont fire after typing a name into a label and pressing ENTER.

      I have a label for my 'save preset name' function and it doesnt fire on pressing enter. hmmm...

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @d-healey Ok. Honestly I've tried to understand Broadcasters a couple times and failed miserably. lol. I'll try that again. I feel like it'll help me down the line as well. Wish me luck! ha.

      posted in Scripting
      ChazroxC
      Chazrox