HISE crash when try to control the CarrierIndex
-
hello !
seems that i try to control the FM function (and the Carrier/modulator).BUT:
when trying to control the CarrierIndex (combobox, direct ID, controlcallback, etc. ...): HISE crash !!!
no problem with EnableFM and ModulatorIndex. only the carrier.
Why ?
-
-
yep.
not sure the best way but i did this (and worked):const var Group = Synth.getChildSynth("Group"); inline function onButton3Control(component, value) { if(value) { Group.setAttribute(Group.EnableFM, value); Group.setAttribute(Group.CarrierIndex, 1); } else {Group.setAttribute(Group.EnableFM, value); Group.setAttribute(Group.CarrierIndex, -1); } }; Content.getComponent("Button3").setControlCallback(onButton3Control);
-
No need to hack around on the scripting level, I provided a fix for this. Just ignore the value if it's zero, it won't cause any harm anymore.