controlling Sliderpack idx from a different OnControl??



  • Hi all,
    Happy Saturday!!

    Im using @d-healey script (mixer).
    Im trying to control each index of the sliderpack via other Knob/button.
    Im able to control the Sliderpack index(goes up/down)/turns ON/OFF. But the actual component/fx (thats connected to the Sliderpack) does not change.
    Looking at the manual i found :ScriptSliderPack.set(String propertyName, var value) which i think is the missing piece but,, im struggling to understand "var value", what var is this? ive tried many variations...
    Or perhaps this is not the solution??!

    HiseSnippet 4226.3oc6b08aaacEmxNLIxodqsaCna.C3VgALpUEIQ43zTm0ME+UpWisErbSaQZPJM00RrlhTijxIZEFX.60Ar21S6w8Gv9GX.4w8x.1eJ6g8z1Camy8dI4kTTRztNYIERIvQ79w4767w8dNmKuNs7bMo99tdJEJd3nATkBugZ6QNA81nmgkixNapT3Zp6tyms0AJqOZfguOsiRgBKderyBEuhB6y+7WttgsgiIMtIEkG5ZYRefUeqf3Va07isrs21nC8Pq9Ri9VM2wz0YCWa2g.PVTstx.CySL5R2y.G1BpJEt5VcrBb8ZGXDP8UJbk0c6LpcO2m5vG+Cs7sNxlhOnqzFHDu4scs6fHF+txF8rr6zJTf8UTJb8Vwh+hbw+6qtqUGqn1iUCuIqCR7Lj0GEVXZvSWFd0yDd5YAuBRv6Jb38VpsM8rFDD2ChsantiS.06XCvDHCK9XUV328CU2vEFgSP09FmP21CdHZFZqd65UHqVud46t7R7+.FC+.xoFdjMb6ej65tOi7gjPJXzoSXqZkB+VoJjF0AxzXUfL0pQdzup896EM6Gu7Rgy1mhXe.0Kvh5C.oONvDz4qWdoRAzmETZMRoVdTXB9kp.s8TqNA8fF0uyGfOdTWt+BzxsZ792Q+CpW+N0wNrBn8mYWMX8oqW+N5MzuM12.6gcsbZY3AtbflA87Ri.b59XikVdoyPsEJn0RKo3epU6.ZfmE8TJw2p+.aJoK3GQ19yHO0JnGoTeKyRDngfdTKOxNaRLb5P7AGHJ1JNVXnFddFijMFbRgq81oiOXQXKTq1kFrSmGX4GnUpMmW3HJU9tjZ0tOM.ntO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iyr55Wvyrp9E8LqZSCvkY9R77Ujiw5EQXoWCqapwqp0MctSnVedMTyqg5hTCUioUCE6fglQMT+1GNVMTMa1L+0Pc4H2yqmZd8TyqmZd8Tyqm5xodpFyqmZd8TuftC.0ec3N.b4TMh.R2fwY7x74I1yJ54jGbwk1ALmm2FpzsE66nZw9k0UzT9eknRz36pB6zzNXn4I3670OCh7s4RIWY9qfad4i+er7wKGybtJYbkYTx35odsaeoYyjkLpXNVIijCd97W617xDmWl37xDmWl3qLkIJBG7iTuus6QF1wpU9+85Ixl8GK5lD0OIZ.S68x8Ot7qi7a7gKpOqnFu99FZ9diYl7uTWHj+Sqc9A7+p8dHuL3QeCSO2mH9utL1+eWyZAjaGwuqU6hOSzCqiTUsd053cF05Illn59l5JJYOmFWf4rxEXN25BLmUu.y41Wf479Wf4bmoNGbes6MLvsOeoHzPqs3gVJrUTnkEU9efYqDJD
    

    @line 162 is the problem

    Many Thanks!!



  • @ten7kur I don't have the time to dig in the snippet at the moment,
    but maybe you just need to tell the sliderpack it changed => Sliderpack.changed() to trigger its callback... Just guessing...



  • @ustk said in controlling Sliderpack idx from a different OnControl??:

    Sliderpack.changed()

    Hi.
    no. Its not compiling fully. "! the property does not exist"
    I think i dont understand the "var value"



  • @ten7kur var is any value that you wish to set the sliderpack property to.



  • I cant get it to compile.



  • @ten7kur well no idea where its going wrong but near line 162 you have this:

    /vol.set("vol", (value) ); //ERROR!!
    

    vol is a ScriptSliderPack, and has no attribute called "vol"

    Selecting the widget and pressing ctrl-J shows you:

    [
    {
    "type": "ScriptSliderPack",
    "id": "vol",
    "x": 0,
    "y": 0,
    "sliderAmount": 3,
    "max": 36,
    "flashActive": 0,
    "width": 134.0,
    "height": 80.0,
    "min": -100,
    "": -100.0
    }
    ]

    Looks like your problems are in here:

    const var vol = sliderPackFactory(0, 0, "vol", {sliderAmount:simpleGainIds.length, min:-100, max:36, stepSize:0.01});
    

    and

    inline function sliderPackFactory(x, y, name, obj)
    {
    	var control = Content.addSliderPack(name, x, y);
    
    	//Set control properties
    	for (k in obj) //Each key in object
    	{
    		control.set(k, obj[k]);
    	}
    	
    	control.set("flashActive", false);
    
    	return control;
    };
    

    You seem to be trying to set attributes and they are not all arriving... but at no point have you "added" an attribute called "vol"



  • ..and two minutes experimentation will show you that you cannot set the ScriptSliderPack Step size = 0.01, it can be either 0.1 or 1



  • @Lindon said in controlling Sliderpack idx from a different OnControl??:
    You say:

    well no idea where its going wrong

    But then you say:

    @Lindon said in controlling Sliderpack idx from a different OnControl??:

    Looks like your problems are in here:

    😏
    Ok great, could you show me how to fix it? How do i assign this "attribute"?
    My knowledge/understanding is not as great as some..



  • Anyone?
    Would really appreciate some input to get this working.



  • vol.set("vol", (value) ); //ERROR!!

    What are you trying to do here? And what do you think vol.set does?



  • @ten7kur said in controlling Sliderpack idx from a different OnControl??:

    Im trying to control each index of the sliderpack via other Knob/button.

    Want to control each index of a Sliderpack via other knob/button.
    My snippet already controls the Sliderpack items/Indexes but the Simple Gain module/component does not take effect from my knob.
    I know i can do this in the Property Editor but i want to do it from a Sliderpack.

    @d-healey said in controlling Sliderpack idx from a different OnControl??:

    vol.set("vol", (value) ); //ERROR!!
    What are you trying to do here? And what do you think vol.set does?

    Trying for my knob to push its value.. So that SimpleGain responds/re-acts/takes effect
    At the moment only the Slidepack takes effect



  • @ten7kur I think the problem is you are not familiar enough yet with sliderpacks. I don't have time to debug your code at the moment. Until I do, or someone else does make a simple project with 2 sliderpacks and play around with it so you have a good grasp of what everything does.



  • @d-healey said in controlling Sliderpack idx from a different OnControl??:

    @ten7kur I think the problem is you are not familiar enough yet with sliderpacks. I don't have time to debug your code at the moment. Until I do, or someone else does make a simple project with 2 sliderpacks and play around with it so you have a good grasp of what everything does.

    Probably not! Ok. will try. Got shitload of web develop to do. Havent even ate today! no gf :))
    So @Lindon s advice of a missing attribute is a no?



  • @ten7kur Well the sliderPack doesn't have a property called vol



  • Something strange is happening!
    Could i have found another BUG?!

    inline function onS__VolumeControl(component, value)
    {
        	if (value)
            {   
    	    vol.setSliderAtIndex(0, (value));
    	    //vol.setAllValues(value);
    	    vol.changed();
            }
    };
    Content.getComponent("S__Volume").setControlCallback(onS__VolumeControl);
    

    This works! It adjusts/controls "S0"(the first sampler) volume. But if change the index to 1 or 2,
    eg vol.setSliderAtIndex(1, (value)); ,it doesnt work anymore!
    Same goes for if using: vol.setAllValues(value);
    It only adjusts index 0.

    ??🤔 🤔



  • @ten7kur

    eg vol.setSliderAtIndex(1, (value)); ,it doesnt work anymore!

    What do you mean by doesn't work?



  • @d-healey said in controlling Sliderpack idx from a different OnControl??:

    What do you mean by doesn't work?

    vol.setSliderAtIndex(1, (value)); 
    

    This should adjust S1's(sampler1) Volume , but it does not. Only index 0 responds.



  • I just took a look at your project. Are you putting each mic position in a separate sampler?



  • @d-healey said in controlling Sliderpack idx from a different OnControl??:

    I just took a look at your project. Are you putting each mic position in a separate sampler?

    I dont quite understand what you mean...
    Im not specifically doing this for multi-mic samples. Just want to get the functionality working.

    As you can see the SimpleGain's are in separate samplers.



  • That's not how multi-mic samples work in HISE. You only need to use one sampler. You can read about it here - https://forum.hise.audio/topic/75/multimic-samples. I also have videos on my Patreon page about working with multi-mic samples in HISE.


Log in to reply
 

5
Online

647
Users

2.6k
Topics

21.4k
Posts