@Straticah
That doesn't work within HISE. But it does work in the compiled plug-in. At least on a Mac.
Posts
-
RE: Phase offset not working - when retriggered by DAW playback?posted in General Questions
-
RE: Change radio groups in the compiled pluginposted in Scripting
@David-Healey
Okay, it works. I tested it in Cubase and Logic, and there are no issues with this snippet. :-)HiseSnippet 1700.3oc4YrzaSbDd2jrIwNzpBhJ331HN3fhPwORBnpJaRbbHp4gab3QEBAi2c13Qr6LlcmMDCBodr+A5AtweidqW6sJwefJUoJwM9CT09M6t16rNqSbcf.z5CHlu46878bScWlA1yi4pnlcuNswJpmSqQGJu0psPDpxFUUTuflKxjvVwmyYTu8vdbkU5zF44gMUTUGecAdpYlPI32aKuBxFQMvwfTTtCiXf2j3P3wPqW4aI110Pl38HNRXWpxFFL5pLalOnSiqsfRajwiQ6i2FIPaLMkag7ZondUsksJhVZQqhFKiKU.iPlMWboaX1rX9kVt30wkLPnquXIiR2PQcx0LIblaCNhi8TTmXElYmFsXOkFJf6P7HMswhC4UZ.RNDbMlsovDEPUVsEw1rdWmkmhhpV8XW23gttKpsEwjzCdrK7KBtPOlBYGn5XIUuwSnd4kUuEjTuTTIUIUZhPU57ZMLbIs4w2HzmYz1fxwtVH3cRVUBwUYr+ZBsUY.FT90bPOFWyENzihbKsvByqC+ybec1rvakGW+.jqtGgtuMdKeaNIJTQ+azueW1rOluJyoMiBGxMaSNM.wYma9r5mvuAxgFABb14d.nFVL2bM0IzTzh4xlo407DDS4tL6UQ11MgHpbGEy9vHo44vLwCick+XsoARVgQirhiFYk5yqIYbCxcIgRJ9oHGk0gBeS1LYxDTCQH30rrvFfTq2B4g0qcu.+SZHzf3z1FquK9.rayAiEh66hfrkAhQUrMpCbq3RgQlkPsITrtkO0fSXIL19MRitdo4g2bae7bYed1LDqbQGxjw5v6KQ90HTS7g6XISGjZjetGH7fcSrxYgr8vfWJS.u9pSGy3t9Bd8hTLrSLh9DsumKzpzCJxDFVja1flAq6x7aO67oHxAZF5WUuv0D0Lx7h.sOaO8lQ2lww6P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8FSoE7k.CbBSG9+S95F.Rz8aSrkza4kqz6hcI62hK2OuagRIJfDrWWtKbYBBtXS1SqCBTT1sGe9wWW4Vji.UoZk9lhcOLrBZxwNe6mt4dG+rifo+w8LHWRCVjnfdvfH5eXlD4r3A6rPFNHCW1CMB+1chRYSG.AraZvehuLZaINqm+newNGXgmGZXjjUGgvBiJgEGUBKMpDt3nR3RiJgKOpDd8SlPw9n2zmybByMf8xquVvWXUUMbk7fzDk+AXOv2TI -
RE: Change radio groups in the compiled pluginposted in Scripting
@David-Healey said in Change radio groups in the compiled plugin:
My first thought is disable saveInPreset for all of them and instead store the value of the last clicked button
The problem with this solution is that my plugin has two operating modes:
Single ā here I need the radioGroup functionality, which ensures that only one button is selected at a time.
Multi ā here I donāt need the radioGroup functionality, and multiple buttons can be selected.
That's why I wrote my own script for the radioGroup functionality, which, however, leads to the problem I mentioned.
So my idea now was to dynamically change the
radioGroupattribute, but I donāt know if that will cause problems. I guess Iāll just have to try it out... :-) -
RE: Change radio groups in the compiled pluginposted in Scripting
@David-Healey
Hey David,
Thanks a lotāI watched your video. It works great in principle. However, when the buttons aresaveInPresetthe last button in the array is always set to 1 when I recompile. Do you have any idea how to prevent that? Here's a snippet:HiseSnippet 937.3ocsW0taaaCEkxNrnVacncXO.B4W1CAE9C4OJFBlWbRZM1RpQcVvJJJ5nonhIhDo.EU2LJJPez1izdCZIkTrjSsViIV0OBvk264vi48dIuYlfiIwwbAvx9hUQDf02BmuhIWNYIhx.SOFX88PAxixOJQJ4r3KHwRvQqhPwwDOfkU8mpiypwdfzu+8mOBEfXXRwR.vkbJl7azPprX0Yi+UZPvoHOxEzvRQ6NdJlylvC3IJMUG1FDgvWithbNRGVMH3Yn3k.qeDNzuGZPe+d3gD2tDDxaQ+AOwaQuNCF1aDwEiPi56hceBv5dm3QkbwbIRRhAV6cD2a07k7+hksAWRioKBHZiNf4pcNa4S4Ad5eh5UASVRC7lcygULPwxrhit5YGc+.7LpGc85EGgOL0gSAhxGfV01Td02PdcJKu1kj2VjjUIIsWljdDbNVPijEdz54afSYRhvGoxSkkRVrfZGVGNgqhfIebH5ZxoBkwZDMGzt8ANp+z5mrsU4pXoyaQBmPtGIuFw4PmWcC9qHxI7vHNSYzb+ERVm8acfsSUeUBqqYv5YFLWyf02LXCLC1PyfMZ+VuVk4r84hlKbnrxYtV1MV73XMBlTvClfBBVnZ+ZVJja4RWDXSYATFwwOggkT9FLdalv2nkCTUMAIjV1uytQERISKWpCS49vCcVCVsque8twYmykjmyZlxk86sctsKe+s5KWaADwVcquXR7eArIKIbAQT9WhNPUy2lczvp6nKegCNKiUJPNaJiJedDgU00Pf7zrp6+94pREpLs2+6x68yNPATUK98f5NPPpd0M7f6JltFfomAXbM.SeCvLv.LCM.yn0XpA98oGijH88z4IMUhLhHjTcMh0wj2pdkL6V6FviIwWK4QoY07ZdUY0WJu92qeG8OCGup3Q0yGCt6zzsRZd4tPSupn4CncgF2JoweWnoekzb8tPyfpnYbztPyvpn4eD6BMipTMIiAe9r.poP3dIAH4lilnGfK2g51sMlGP+lOKlJWUd.u+2lW4tJwGAmQk3kaWi01hFUsXeMzX9TdO.dhuOAKKD3dvS+iuNizAdAOQRYWcFRJnpjM77jv4pIiwD0tyXj.8qKpqVzPSsaqs0m.yILuTiOp9xc1Qaak6ryMNAgHrf+Fb1MZ54Hue5JJMwRm4tA7Lssy52MJNmCUi09FLdSp9LfcMEXOSA5ZJv9lBbfo.GZJvQeYf5+qieIQxCyZa.fylcR5aPVVmvPpJvzpUvm.8r0voBSo far, this has been my solution. The only problem is that I can also disable the selected button, so that no button is active at all, which shouldn't happen.
if(value) { local selectedButtonIndex = modeButtons.indexOf(component); for (i = 0; i < modeButtons.length; i++) { // Not selected if (i != selectedButtonIndex) { modeButtons[i].setValue(0); // more code... } // Selected if (i == selectedButtonIndex) { // more code... } } } -
Change radio groups in the compiled pluginposted in Scripting
Hi everyone :-)
Does anyone know if it's a problem to dynamically change radio groups in the compiled plugin, or can we do that?
I would use
button.set(āradioGroupā, value);for that.Thanks a lot
Oli -
RE: Problems Styling CSS Panelsposted in Scripting
@Casmat you can use
Graphics.drawInnerShadowFromPath(var path, var area, var colour, int radius, var offset) -
Scriptnode DAW crashposted in ScriptNode
Hey everyone! :-)
I have a very simple
networkconsisting of amodchaincontaining aglobal_modnode connected to anLFOlocated in theGlobal Modulator Container.
Iāve compiled this network and loaded it into a
HardcodedMasterFXin the FX chain of the main synth chain.
Everything works fine in HISE. However, as soon as I compile the project as an FX plugin and try to load it into my DAW, it crashes immediately.
If I create a container in HISE and load the compiled network into that container, the compiled plugin no longer crashes.
Is there anything specific I need to keep in mind?
I checked the box next to
EnableSoundGeneratorsFX.In the end, it will be an audio network rather than a modulator network. That is why
CompileChannelAmountis set to2. Is that correct?Thank you very much
Oli -
RE: ScriptLabel.grabFocus()posted in Scripting
@David-Healey
I found the problem. I also set a text using the button and then I move the focus to the label. That's why it doesn't work. Here's a snippet based on yours:HiseSnippet 954.3ocsV0saaaCElzIbK1asXEXO.p4J0gfV6XGmzMLLO6DuYr5Tu4thdWGMEkEQjHMnnRqwPA5i6tbuAaGJIaQm3rtYrpKr04O98QxyOZhVw3ooJMB23EKWvQ3OmLcozDMHhJjnQmiv2mLllZ3ZuBU8WtfllxCPX7d+fUAt99n7m+765SioRFuREB8RkfwelHQXpzNo2OIhiGRC3uPj33cmdiXJ4.UrJC3ydjlnET1Uz47KoV2pQP+HMMBg+JxogsocOIrM6Tdmi4TZvrS59zfYsa08z1mw6vnzyNoCqySQ3O4h.gQomZnFdJBueeUvxoQp2HK.3khTwrXtUnEZJfbg5gp3.6VzpEMHRDGLY0AUJBVkIUGa6Ubr8kjwh.wZ8UGeeQtAupHbO.w01jd6sA8Z4RulNzaKTB6Po8KnzCHSYZwBSkEKe9LxHIbaFRg6IWpT3Kp1efICTfGRyiSnWwGpAg0Q32sYyi7fedz2znwSdxC8dFcFOtUC3ZK0TJ38sdqVf4by.UxBkDD7Orv7g1PyiselwnjqBtT5NitztM7xWebp0AoQqhGPiimA4J9JYowRCVvDxXgj6ElIYFgR5cSe7YqP4HuqowY7G032aTWD54+vRw5fb8B5aA0+PC+slCOxq3e.i0VmqoyFpXYo9Vsuqw6Z3.6kJC+4R+7kGr3cSSgga0VIMi45sZ1VCo+mBzWlkLiqc2bVGg7jMS9H2cxmasAq35wwQkbjTXd9Bt7tpXPk2ova+5nyoFpMisTG32Bt1HrT.eN+ZneQQ9acx47zqLpEPo+5DAnh1ja8dqxtoRdLR.4vGPxeuE5sUsT9sdKqDNq2aDAln0Jd+U8h3h4QUsldOsmkWqw5fMwJ+RtDqhKbWr55h0WeSrBuEV+bOa5CrgHvwuA50oALcAe09A8eX2erKiBbYj3Cynar6+zBrteIVEUM4fUmTVB4hVeWzF0SjNVk.qCUCpw0RoWyGImn4PAjseycscOFlObqVYPSTUPVL0rYmU67mRCPF+FsyrsrjoByR24S+u0t8eKEe.Yhvvh1NGqsENB0EeL3X4Pp6QtHLjyLUDbexvW8wYhD5WTYFgb9XpQKfrDxkYISgA6LNftDtnscbv0r8FJjaZksm.S4xfbg+BdJM1xJiKM1ZkQTBkoUulUzmyNF7fbM.mj4exPc3aW.YuVn7detmyIvT4WyXatT2Jvi20.auqA1YWC7jcMvt6ZfmtqAd1GNP6GM88YFURQYCBMdxE4CNv3KjTHCLOaE82fr4ydPBut with
Content.callAfterDelayit is working. -
RE: ScriptLabel.grabFocus()posted in Scripting
@David-Healey
Okay, it seems to work sometimes and not others. Because now it's not working again. -
RE: ScriptLabel.grabFocus()posted in Scripting
@David-Healey
Oh, you usedif(!value). That works for me too! :-) Was that on purpose, or was it a mistake? -
RE: ScriptLabel.grabFocus()posted in Scripting
@David-Healey
Maybe it's because the label is in a different panel than the button...
In any case,Content.callAfterDelaywas ChatGPT's first suggestion. So I don't know if it's a bug or intended behavior. -
RE: ScriptLabel.grabFocus()posted in Scripting
@David-Healey
It didn't work. ChatGPT helped me. Here's how it works:Content.callAfterDelay(30, function() { ScriptLabel.grabFocus(); }, this); -
ScriptLabel.grabFocus()posted in Scripting
Hi everyone :-)
If I have
ScriptLabel.grabFocus()in a button's callback, shouldn't the corresponding label be brought into focus when I press the button, and shouldn't I be able to start typing right away using the keyboard?Or is there something else I need to do here? Or is the function broken?
Thanks a lot
Oli -
RE: Where are we with Hise currently?posted in General Questions
@Lindon
I agree with you! I think the bug I mentioned is also a regression. -
RE: Where are we with Hise currently?posted in General Questions
@DanH
I also remember that the MatrixModulator still does not render continuously when no note is pressed, which means that the modulation in the LAF of the slider only works when a note is played. This problem does not occur if only a matrixTargetId without MatrixModulator is used.When it comes to modulation, however, I think it is more important to solve the envelope problem that I described in this post: https://forum.hise.audio/topic/14434/envelope-or-filter-trigger-problem
But I think @Christoph-Hart has that on his list.@ustk I can confirm that the modulation system in effect plug-ins works in principle. I just tested it. It makes sense to me that the MatrixModulator doesn't work, as I think it needs a trigger input from a note, similar to an envelope, which is not the case with an effect plug-in. But that's just a guess and I haven't tested it.
-
RE: Table Broadcasterposted in General Questions
@DanH
I just checked. The function is still there...:Table.setContentCallback(var contentFunction)But be careful: this function is only available for a
Table, not for aScriptTable. Maybe that's why you can't see it? To use it, you have to get the actual table, for example from an LFO.However, the function only fires when adding, deleting, or changing a point. Can't you use a timer for something like a PaintRoutine?
-
RE: Table Broadcasterposted in General Questions
@DanH
That is strange because I used it.
I will have a look when I'm at my computer.

