Combo Box print Value
-
@d-healey Ok, the problem was that the combobox was linked to a hardcoded master FX. Also, all the other inline functions don’t work after linking the fader, to the hardcoded master FX. Hm.
-
@voxuer1 You can either use a control callback or parameter/processor ID, not both together.
-
@d-healey Ok, thanks. And when I try to get the values back from the hardcoded function and link them to a label via scripting?
const var HardcodedMasterFX1 = Synth.getSlotFX("HardcodedMasterFX1");
const var obj = HardcodedMasterFX1.getParameterProperties();????
Processor Type="Hardcoded Master FX" ID="HardcodedMasterFX1" Bypassed="0"
Network="chorus" rate="0.3810000121593475" depth="49.74100112915039"
spread="49.66999816894531"> -
@voxuer1
I don't really get what you trying to do but you can use a value broadcaster to get an extra callback function even if you linked the control to a processor. -
@Oli-Ullmann What I want is a vertical slider without the value popup, as it looks ugly. I come from Max/MSP RNBO and have successfully imported my code into HISE. There, my effect is in a HardcodedMasterFX1. All the knobs are there, and everything works fine after exporting to VST and AU.
There are two things I want to achieve:
-
I want to display the slider values in panels. This doesn’t work with callbacks as Mr. d-Healey answered, because I linked the sliders to the HardcodedMasterFX1. So, my idea is to route these values back to the interface. Is this possible?
-
I have parameters in my RNBO script, like a Gain Reduction, that I would also like to show in the interface. So, I need to link back from the HardcodedMasterFX1.
Thanks!
-
-
You can change the appearance of the value popup.
You can't route values back. You need to set the values of the module's controls from your slider's control callback instead of using parameter/processor ID. An alternative approach is to use a broadcaster but this is a more advanced topic.
-
@d-healey something like that
const var HardcodedMasterFX1 = Synth.getEffect("HardcodedMasterFX1");
Synth.getSlotFX("HardcodedMasterFX1");
const var Speed = Content.getComponent("Speed");
inline function onSpeedControl(component, value)
{
HardcodedMasterFX1.set("rate", value);
Console.print("Rate changed to: " + value);
};Content.getComponent("Speed").setControlCallback(onSpeedControl);
-
@voxuer1 You can use code tags on the forum to format your code which makes it a bit easier to read.
To set a module's property you need to use the
setAttribute
function. The name of the attribute will vary depending on the module, but if you have a knob in your effect calledrate
then it will usually bemoduleName.rate
- replacemoduleName
with the name of your module, and it's case sensitive. -
const var HardcodedMasterFX1 = Synth.getSlotFX("HardcodedMasterFX1");
const rateControl = Content.getComponent("Speed");
inline function onRateControl(component, value)
{
HardcodedMasterFX1.setAttribute("HardcodedMasterFX1.rate", value);
Console.print("Rate changed to: " + value);
}
rateControl.setControlCallback(onRateControl);Interface:! Line 11, column 36: function not found {SW50ZXJmYWNlfHwyNDl8MTF8MzY=}
-
@voxuer1 That means the thing on the left side of the dot doesn't have a function with that name. You probably need to get the reference to your module in a different way.