One slider pack controls two modulators?
-
@orange Actually I think I've thought of a possible way. Create two hidden slider packs that are set to control lfo1 and lfo2, then create a visible slider pack that controls the two hidden ones. I'm not sure if this is possible but it might be worth trying. I have to go out now otherwise I'd try it myself. Good luck!
-
I think it is possible with only arrays, not float values. But I can't find a way...
-
Try using one global LFO and connect the SliderPack to it. I've never come across the need of connecting a slider pack (or even a table) to multiple elements (and it would require a lot of rewriting to allow this because it messes with the ownership concept of the data models).
-
@Christoph-Hart @d-healey
Ok, I understand. I will solve this with an other option, disabling/enabling second modulator.I have 2 tables, 2 modulators, 1 combobox, 1 button.
Combobox selects waveshapes of 2 modulators at the same time. Button bypasses between modulator 1 & modulator 2.
When combobox selects table waveshape; it should check the button value (0 or 1) and it should decide which table to show. I've used a local variable for this. but it doesn't work :( (
value == 6
is table waveshape of the combobox selection.)... if(value == 6) { local button1value = TableChanger.getValue(); if(button1value == 0) { Table_For_LFOMod1.showControl(true); Table_For_LFOMod2.showControl(false); } if(button1value == 1) { Table_For_LFOMod1.showControl(false); Table_For_LFOMod2.showControl(true); } } };
This is the snippet:
HiseSnippet 1851.3oc6Zs0TabCEVKfRvFnkb4g9PeXm7joIwi20WvLYnwfARbCDbiIjzzGXVuV1VC6Em0xbIYnS9AzY5eo9VeMu2+D4ePqzpcWq0WVeoAJYlHRvHctnOcNGoUmy5xN15n1ssc.RKbv4sP.oEgUN2hzrXSMrEnzV.oaBKqYgL.addKs1sQ0.RRy9DFQoXyAbae5wapYnYoi5ND.bnMVGsK1DS5NZqBOCaXriVMzAXSAtyTnjtsUQaC6NTfLKLEnkl9wZMPOWiw1LPvIXzosARofoUS5brR02sQRZ6cmc5a1q7poT1ciWt5oU1YqjIeZwjmvH85sY+Fn2wwAYQNjJNPBJ8OzlDb6ZXhsSEhFAQ04baZW67JMsO0hO0GhaiqZfXcT.UnXhO7N1F0XKd1nfhMwF0J6a6ZCnZobWK4rbK4cg6gqgCFuqEcYWBxckPzzJMSTvSQDdoFe3II.u43v6VvJ5N3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HC+irw8LisKazoA1prlilIhl6NcYLCP.vyG13yq+CCsy6MIdPUkA04fqkWDoqJfzUWET01oFx4EZ0vcZy2tbh+tHoYEmz3iXRU+OMoUa3WdoEgJYxjZsLYVSIqqwymvBv7poRmOa1rqMsXLMv0s7iT2ByIJUk9GSOJUymihlUU5EkoxkOiR9zC0Rdiw8LfyB1y7AbgyC5T3ME7AszGn88AMT564mSL11iLW91iX232W3i+ECWSoOK6UAF+3GWHJLN+jbhaWuFnrfW6OecWu1uExq8LVoW8e1SIpV+VXnL6As7OHnjaLhXd5gb2wljCkEBt1W.leXZgoZjvTzv1esNWFFnFwxvxJisGA50CBUuSVMMsZiImKVl6KkZyNtv8VvxXhdyAi2YF.doOw5xFudU5dI310qizIcA6bvcd8zVV6AW08Tipr12L38WfMaYfdhOTVxa.Y2QF9aw..1BYnEx98Jdfp+.+RgA7dNjlM7Ba1wagMhWgPzABLfKeIE3NAV+YD.7hb.CYaYcQYumwLRLtiC5scPV5BCJWf8thJ00IU3OJv10W2eWufeXWTC5DIpvCPzCtpbtktHaULssIMwVMB+FntaghcZSrM809zdA1JDTK2aKJ8qvbYRd4z5ae8zGyMyXFycGl2TNvuwB9tlebIGwAAUWSP7H1lnNpyzuZ1l7oGO1aS97ji0W2170sMSKhuMz841xewbQtaCcuWwWN.dYVhRWCf6Kr6PnGIsmFwAyxY64cLqPyuR2MeVZlbrJ1IMCKCUd+Tr9tOzGYUKk+2+COhJr9RdDU7IdkLGlZ5N1GoyK0E63j4cGgttsb+9tDCtGqubPw0X1FSbM7Q55rqV+Pp0YvRnNwRjdhkHyDKQ1IVhbSrDqNwRjOBIXe+b1nC8Ac73c.3ewRFZhF
-
Your code needs some work. Give me a few minutes :p
-
Okay, here's a version that works. I made it so the button hides/shows the tables, not sure why you wanted their visibility set by the dropdown menu, the button made more sense to me so that's what I went with. I've used the onControl callback rather than a separate callback function but you can do it which way you prefer.
HiseSnippet 1890.3oc6Zs0bSbCEVaRDDavTt8PenOrSdxg.Id8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42QyMqrCgz9AN7awLkUxFc7nD6vEcRyosFE01OARkWBWt3hmNO8bbexCEm5DFJdCtSVMxcxiIOmeKp.wQwZmSP7HN8jeTW0e1b54S26y8zyWlpw91ooucZZRQ70g9ukW8qlz9tNzOKjud.7U4kUcN.tOkzgxtoZWcpKlWg2S5XWiUMlgeOz4e0y7ZNlhWOqXbN9X+TDPNl9C9W1S.QM9Xk.hZgDOSVCacCWxAFhlhwuNYV+YX6aG++9QRA2kOVMpMbbaiM1DefgAOQ76vrN8Wh7isDEFaIJN1RTZrkX4wVhUFaIJODI3+oyb+NrWzIh2Af+yxYRsZ
Tips...
You have some horrible code :p
Stuff like this:
Panel1.showControl(false); Panel2.showControl(true); Panel3.showControl(false); Panel4.showControl(false); Panel5.showControl(false);
Whenever you find yourself repeating the same code like this you need to either be using a function or a loop. In this case I'd have changed it to a loop (using an array). I've actually not touched the panel show/hide code as I don't know what it's for but I have created the array :)
const var TableChanger = Content.getComponent("TableChanger");
TableChanger isn't a very good name, it tells us what the control does but not what the control is. In your small example it doesn't matter too much but in a larger project it could cause a headache. I've renamed it tobtnTable
it's a button that does something with the tables :) -
@d-healey wow thank you so much :) You are a great coder :)
Selector shows only tables (not Panel1, Panel2...etc relatively they are selected). But how can we show only this function when combobox selects table? -
HiseSnippet 1749.3oc6Ys0aaaCElJIrswodq2dbOPjWlyRqikuj3frt5FmK0qIMY0YscnnHPQh1lnRjpRz4BJxP+ALf8WZusW1C8mR+GrQJJIK6X6D6tTzBT8fkHO29HOmCIOz65wLw99LOf1z6chKFnccX8Sn7VUaYPnfZqAztJbWCJ1Fr5ItF99XKfl1jaJIpM8TffmO7fUMrMnl3NcA.OiQLwaQbH7N85V4wDa6MLrv6QbRvcwJ0LYzpLaVaAPlDlC3ZX9Zil3mXHYaBHPCttEgy7pyM3Xef1TqxrNodK1QTE+Oi3SNvFKanCpKTjp6MX1VRDK6ETsEw1Z2nArOPnkc6L7mTM7uCbahEIt+NSC2Hf.piDImOzlXXvSOI7xc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JndUT8pTpPmj+t1saRn6Z3INCn3nJhIoIRB3q1sqUcFUIZuVnQBgZdITmBtb4jHcoDHcok.Gv7rvdO0vhz1WkHlzRoNGKk+ixRGzL5buWGpWrXtkKVbY8RAyXQDlAVNetBkKUpzxfCiV3PaxQAiETQF+TTjwAIhLFcTlu7hBzrjdunL2hkKpWtPtwEkEu7Q4zW4Ol48+sL3eLwXoOEX78uelggwoGkkVOtyRZ6V4j3F+0KpDuzvu20RCOVVoVzFL0DZ8agIOfrtn3rvbRIwuAlb6vAg3qMJKD2AwuamDH9ciKhyOTDCNaUVhZ8hjMYAfxpdCIHN5ZWUZIqlh5S3mjbuvKkpBunv8lvckUg0e7NQevqXqoKa7FVicZ35MZHNCWGvNEbiWLtET2+58ycdETe03q6f33Zi2LBJoC6.EzyfuzC.XMrsQWyeOWEcF0wuUoOWKh1jcOvl7hMvNmKuX3ABRfitjBbGgY+IR.3zJ.Ck4oAnr20XNmf0O7fM7vuoMlZlnSTE4UKUqiSpxeVQlp2HJUOg3agaJLTxd1CKVsp9ITyjtq5NLFuEg1r6Kr5NU1hwbWmJW5xJoRp11mybhL53d.15bravoE0dIbwhYubdNS593GJNwELT71RmLJ1cJiI+LeUTEhii09LAwmS1S9yGheJxd9vC9Xyd9+ozqulM80rowEw2BFrKO5Kli8cKXvoP9xAv2PVV0mAv8or1bwJUaav8HxJ7dRam5hpwLwBnRk2MorPiIjWZhpcNY6fiHfoVAM9WwSHQcYasPh5QD+jXCGCSO19lpa.Stbx0B5QLtoA+YZSC2V1FEemax4FGhEYeSS4AwumX1o+RjejknvHKQwQVhRirDKNxRrzHKQ4gHg7+Q7gsEazoh2Af+CvcqcL+�
Edit: I just noticed a little typo in the onControl callback, see if you can find it :p
-
Tables are now hidden/shown when selecting a panel too. I also fixed the typo but you should still try and find it :)
HiseSnippet 1798.3oc6YkrbSbDFdFa2fsLJgsC4PNzkuDoXPViVrkKffv1XvgE6fb.RQQQMdlVRcwLcKlokwtnHEO.op7Jka4RNviB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S38vt9M3mFyAwgJQbanhybLk39STsKJZK2h.h3Ja7u7mHhVh1lQDshI9IwF91NAzW3ntLLwzIyJ6gOtIx+cw4.OPzFlb8aBeiO1E+BGGwFwuJ26LXIJM1RTdrknxXKQ0wVhkGaIVYrkn1HjP7Gqdqt7E5T46FF+GQPsB7B�
-
@d-healey we need to hide tables when Panel1, Panel2...etc are selected. Actually I will replace Panel1, Panel2.. with images of waveshapes (sine, triangle...etc.) later.
So we need 2 individual parameters relationship with each other. Combobox selection and btnTable.
-
Combobox should select only one choice (Panel1, Panel2....Table).
-
When table selected, then it should show/hide Table_For_LFOMod1 or Table_For_LFOMod2 depending on btnTable's state.
Because of that I thought if and statement for this relations.
-
-
Isn't that what the last one I posted does?
-
@d-healey Yes it does :) You are great :)
-
Wait a minute, when panels are selected, even btnTable is tweaked, it shouldn't show tables because combobox selected Panel. But it shows
-
I don't quite understand. Are you saying that when a panel is selected you want the button hidden?
-
@d-healey
Actually this project is a gain modulation plugin.- There are 2 modulators. One modulator is in TempoSync mode. Other one is in free mode. We are using just one modulator at once by switching a temposync button (you call it btnTable).
- Also there are 2 different tables. One is for tempoSync. Other is for free mode. Because one table or sliderpack controls only just one modulator.
- So we are selecting the TempoSync or Free modulator (and also TempoSync Table or Free Table) with a button (btntable).
- We are controlling both of the modulator waveshapes with just a combobox.
- Consider that Each Panel is a selected waveshape's image. Sinewave is Panel1. Triangle is Panel2...etc. So we can se selected waveshape on screen.
- But when combobox selects table, we should only see dedicated Table (TempoSync or Free)
That's it.
-
@orange Why use two LFOs? Why not just use one and turn the tempoSync button on/off from the GUI?
But when combobox selects table, we should only see dedicated Table (TempoSync or Free)
Isn't that what my last version does?Edit: Oh I see what you mean!
-
HiseSnippet 1818.3oc6Yk0aSbDGe1jLPhClx0C8g9vn7Rsa.Gu9HwQ.ESRHPJGIEmBTgPnM6N1dD6NiY2wAhPTwGfJ0uR8s9RkJeT3aP6brW1w1I1zf.I1G7ty7+527+Xt7N9LabP.yGXL2tGzACL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WT1VsEAL0Q03eEOgDMksMBIZFQ7ShM7rr8YO2VeYXxoSlU0iXbSU+skyAuurMJ952j9FOhC4411xMheEg2YvRTZrkn7XKQkwVhpisDKO1RrxXKQsQHg7er8lcEKzoy2Af+C.v9SxU�
-
@d-healey
I tried that. I've also tried to change the knob's modes, other parameters... by selecting TempoSync. But it gives conflict that knob values can't be saved. I write it on the forum but there is no final solution.The thread was that:
https://forum.hise.audio/topic/666/changed-knob-mode-with-a-button-but-knob-value-can-t-be-saved/4
-
@d-healey Cool, but this time btnTable can't be pressed when Panels are selected.
We could also use this button too with selecting between two modulators (TempoSync or free) without showing tables when Panels are selected.
-
Yeah I just disabled the button when the panel is selected but you can change it do something else if you need to. I think you've got enough to go with. I'm still puzzled about the other issue though. When you say the values can't be saved in VST host, what host are you using?