Buttons and knobs triggering other buttons
-
@orange Thank you! No plans for that now but I'm sure you saved me from future headaches
-
@blezzbeats Hi and welcome!
I enabled the "saveInPreset" on you buttons and also set the sampler to 12 groups, you had only 5 in there
HiseSnippet 4008.3oc4bzzaabbcojWGIZq7giKPZPB5ZgzTJXYY9kHkhqqVJIJKUKIRSJYW2.i3UKGRtvK2gc2k1VwUsFEH.8V50dpAH+A5kBji5RukCEHGxkhhTzSoMGBPQOm9lY1OlcIWIRJZE2ThPCMe7dy6q4Mu2LOlxlXUjkE1TH1j6reajPryKVceC6lqzTQyPXiUg9Eqfa0VGYJr79sUrrP0DhEa7aPFN1jmQf94qWZYEcECUjeWBB2Fqoh1Tqklseukkuolt9ZJ0P6n0ha1Yk2PEarBVG2AHkwESJzVQ8AJMPaqPl1XhBwNawZZ1Xyp1J1HKgXmYYbs8q1D+HC17uslk1d5HRiTBUADw5dMrdMBES5UXklZ50J6xxVB.RK6K.FmI.tn3VZ0z752WP7xzAj7gfWdDarih7RwSdI6exKFG4cFF48JhUUM0Za6OBg1Nm3FF1Hy5JfJfmrXyUXrwEEWACyvvdtVJO.slIzvChD4RlbVozymblqMU7ohCJBKaoGpXJsWGaangz0kd26EZnpJTahTvXT6k4Zfrc5KwztCNMCgtMmCYn.xfJ3NF0pf2SyHQcEcKT3U8AzELStYkxjG9t.7cwYkxBjX1Tv2zv2Lv2rv24guv7xl+dDTTGaJkPC.N40jzj9w.hlSGYzvtIz7xWdloh+johKAeJZzPy.MmEx9ln8Y1bIdf06pcuYkXsrl6QZ1MKn2toRB2dLQ0lUJ4bYlgPtGvPzfrnNxx4Z2wpYBWcAHzVA1bgMfFIldY5TlV5xDDdYoTyPWKNfARjP0DnMw5qnnquGrKIA1fAoS+ND3Tw0LzA9TpdGCUaMrgTn4kP0comEj65cP9DqV8Dt8PZ5zK4iNVUQWRynF5w.O6xTz1kp6iwYtlzUupzFzogq6LOI6lJ1R1lZMZf.wojpCC3icOKEfKK.D8CQ2vD2ocB15QDIWCP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JI1jqjRPn2vjdHfIyP.S1g.l4GBXxMDvjeHfYgiDFxCPUniMtEy6GzQ4hLCqXdgmDabg+alZSw6
-
@ustk Thank you and thanks for the help! It didn't change anything unfortunately, worth noting might be that the ActiveGroup actually doesn't change, it's just the visual feedback on the buttons that goes a bit bananas
When I looparoo this:
for (i = 0; i < ks.length; i++)
{
buttons.push(Content.getComponent("Button" + (i + 1)));
buttons[i].setControlCallback(onButtonControl);
}Does it also grab the other buttons and knobs on the interface?
-
@ulrik Thanks Ulrik!
Every time I added a new group it would hop back to the lowest amount that already existed so I just didn't bother (still only have 5 groups sampled so far).
Still does the same thing though. I noticed now more precisely how to recreate the bug. Switching articulations from the UI only works fine, as long as I don't touch note 36-47 on the controller. It will switch to the correct group audio-wise, but consequently the next button press on the UI (crush, poly, chorus or even the attack/release knobs) will have the buttons on the UI switch to the highest group (baby)What is the pros and cons of saveInPreset?
-
I'm having a quick look at your code now.
First thing I notice.
local index = buttons.indexOf(component); // Index of button that triggered callback { Sampler1.setActiveGroup(index + 1); }// Call the function that changes your articulation here
You have curly braces but there is no reason for them to be there. it doesn't make a difference to your problem but it's just something I noticed.
There is definitely something weird happening in your project. If you play two keyswitches then press the chorus button it will jump back to the last accent. I haven't worked out the cause yet but I'll look into a little more.
What is the pros and cons of saveInPreset?
There are no pros/cons, you enable it if you want the control's value to be stored in a preset or you disable if you don't.
-
Solved it. There's some strange behaviour with the radioGroup that is a mystery to me so I rolled my own instead. I simplified some of your code while I was at it. I also renamed your buttons because I thought that might be causing some kind of conflict, it wasn't.
HiseSnippet 3962.3oc4azzaabbcoj2XIZq7giKPZPR6ZgzTJXYE9kHkhqqVJIJKUKIJSJYW2.i3UKGRNPK2gc2k1VwUsFEH.8V50dpAH+A5kBji5RukCEHGxkhhTzSoMGBPQOm9lY1OlcIoDohnpaJQnil2LuYdeMu4My6wsrH5HaahkTrw2d+VHoXWTtx9lNMVpgF1TZskkhIKuYw6Js39szrsQUkhEazaR6J13mSh84qVXQMCMScT.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zuOQ9C1Ym+3BKhaQLzrnYxJ3oKoY0x6IKg6xRAxeF5efbZ1yPy+vdF4GF7rx44sotyLQ577bN8Qk2m2NxC5OTdJyw79cnxzs2sABY3Zix.nvfL.xr+T2kYG8y818mzcnvum7GV7j6WXTg0+RdUFxx6ap0DqayV7KJSOwvpyW63lvZ2QRRjjnf2tAL9FvNauC79jO4xGR6HjuvOr0M9GKPgF1e3gexE2VMXM6RdXB5L5BAXu7gAcypnC2tTyj4eIfYTuxugvR1g+46oxdnRjUW3W2d5jRjRdnaeQWquZA2N5XgDohMfat0tUWvJZGRcjXzSt43Y7iKedtImeQOPM3F2sQn8yi.pRO4jZ7O6SW3tBEAwg+6De4BqfPU2MPL+429i+qKrLxPK7gT+upfZ7fHAY+Xmbe7c+e5ShhpUQZUsHjlday9c+tuXga2VK3Yr+rO5yWPPd9f+xJ+8E1hX6rB1vIXG6WtvlDyqst+C4q79+yuXgRscZ01YnHR66XTdAvc3y.glbFaAbTRjm2MKLJrBE6Y7X0tnLKuAJz2A4ay5NcuoB3M2+lGK1nHuSQhMhABtxgnqbuhOaD4yFpjUZXuqN+drTZcLFDfJMY+ZQGWlUoXJo7tAqrbxYRRqJN76pqSiM4Zojj5NNoOA3j4DfS1S.NydBvI2I.m7m.bl6Hwgl.pBscHM4d+..aUjaXEyO7jXiJ8eL5PXcL
-
@d-healey Thank you so much it works perfect now! On to study how to recreate the code myself. Legato stuck on hanging notes when switching to/from poly mode is the last piece of the functionality puzzle then its on to UI design I think. I'm using your mono script that you specifically made a bypass button for to avoid hanging notes if I recall correctly - it's placed as a midi processor directly on the sampler. Do you remember any dos and don'ts for it on top of your head?
-
@blezzbeats I don't even remember what I had for dinner last night!
-
@d-healey said in Buttons and knobs triggering other buttons:
@blezzbeats I don't even remember what I had for dinner last night!
-- you had fish.
Next Question????
-
@Lindon Hahah, well. To prohibit my poly button from hanging notes. What would the best logic be? Not allow it on onNoteOn?
-
@blezzbeats Allow note offs to pass through even when the bypass button is enabled.
-
@d-healey I surrender on this, tried modifying your mono mode script all types of ways but I just end up messing up something else. Don't I need to check for the event "if the bypass button is pressed when keys are held down" rather than "check the status of the bypass button when keys are let go of"? Or does button.getValue() trigger any time a button is pressed. Because I can have the bypass button active and let go of the keys without hanging notes, it already allows note offs to pass through when the bypass button is enabled. Am I making sense?
-
Am I making sense?
Not to me. I can't remember the script so I'll need to re-familiarise myself with it to know what you're talking about.
-
Haha fair enough, when you have a moment - it's the midi processor on the sampler. If you load up a sample map you'll notice that pressing the "Poly" key on the interface doesn't hang any notes. But press it again while playing a chord and you'll get a sweet eternal sound. On top of that try playing legato style after that and notice the pitchbend incrementally increase up each time you let go and press again. This only happens after notes are left hanging.
HiseSnippet 4312.3oc6b07aiibkmxt4L1paOomNMVjMHYWNFIyJi1iG8gsjc5zqorkb2daaKMVxcmFCZLMMUIoBMEoBIk6VyrdQuGBvdKy0bZGf7OPtDf4n+CXNDf4PtrXQGr.AHebX.VjyIupXQxhjh1Tdr77UHflwrp5U06268pWUupdrqaZnhrrLLERMayg8QBotlXig51c2rqBVWX6JBoDE2q5CE1XXeEKKTKgTol9tjpRM6UDnOe15annonqh7KRP3AFXUzN3dXa+RqKeerl1VJsPMw83Z8xxaqZnuoglw.fMlVLqPeE0mpzAsmBoYSIJj5Up1BaaX1vVwFYIj5JaXzZXitFOS2o8O.agOTCQdImPCnibJdKCsVDNlTpvlcwZsp6BWKAnSq6C9oc.+ME2E2B6UtuP35zJj7ofWdjZpSi8xwydYSN6khi8thC685hMTMw8s8qgvaWUbacajYaEPEvyVNsUXpFhhaZ.sP2dodJOEskI7hGEYJtR1EkVNa1Et8bomKMU2uTKTaj4lJZZGBJBqL1lCPNUC5IKaoiTLkZnzquFxLmzcjbnoCxlUVl4cqbdVmxdcIjtBHG12Xfdq8MNDqmoshlUjt9oVPm9tEJtnTgRvuUgeqQXQ3WN3Wd3WA32xvuUfeP6VtziIcQaCSoLXf3r2VBK8igNZIMjdG6tvq25VKLW5OXtzRvSU8NXczRVH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YWn8cgY1tq79IexMOgTQ.egeT+67GWmTZP+gm7IWqor+XNpqJyqxvCDPckS7qllFarpjKT3+mixvdk+AbCYD+yORld9wHyQfWVMQ4DgrmvpK7X8YqypHx.wyE6BgQNn+HnJbEBQt65yu43k7Y9+pNlbdohEwfyOqn3SnBPUFXt5C4x5kS9KY9yquEB05Pew7KemO9+c8JHMEOG.sa+6W+qrBpY82SI8iBkcmHdehn7hp6gTZYZXzycZ1u3W7GV+cFn3e6B+1e4KWmSd9j+ms9+Vutgk8VXMa+Yr+402yP+s1w69Uj9Y+o+v50FX2efcf08m9xdOJeKvc3WB1ZxWLV.t4bEKk+b1bcnbEKv7FvPH30TIHTQoW+P2ojWZyw8oaWwbHeYxo+se55OLXBwQSlB2DQ6qQNjtFSjdWWatPo5FuDNXlIARWNmNQbUQWLYDWR4E2rnqj3sLSXbou3iI6rxnmBieF8.OuY3L5gnHFYF8bc4DkQOtIcweOid9BLidtjy5supkEK2Pj574qNwseCQpywu5vvWWrth92717woIRdMVl4HQ+zb9Rt96ZhzzpPhr3vWm0cptcEfM1e6rnxzH2EpRMkF2t6nOtetOSId4vkzuVl2S04D4I75LzR.tTm9O5hyJR+3Yjx4dP7DoaObK76opRNVj2JmfvnoH+XSQgwlhkGaJVYron3XSQowlhUOEJHYdS4Av1Xb71AETupigTJuc7jZZg+FMCn7W.
-
Snippets don't include samples, do you have a snippet using a sine-wave generator?
-
@d-healey
Here, all my Poly button does is activate the bypass button so play a chord when Bypass is activated and deactivate it.The only difference with the sine wave generator seems to be you can hit the notes that hang again and shut them off but with the sampler you can't
HiseSnippet 1481.3oc4XstaaaCEVJIpnVaqXsqXX+TsXnPFKM0Nqsa.AaM2b5LZSqQb5k+UvHQYSDIRMIprZLjmks2j8JrGk9FrcNTRVTNxo1CXs.aBv.VmKjemq7PMHQ3QSSEIFlsNdRL0v7SsFNgKGu2XBiazeeCyqYcHIURSbxIs6jXRZJ02vzb0GiDLaslg54cOZWRHg6QqHYX7RAyi9TVDSV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r2DtyQ6LkN34aIhvPL+EpdZAr03hG10HiB0b4pT+0gSLgTuR4f4HpOnh8hMnhW9YsZBJ384L4yioSeO+XzRJcLlV7qSpxnzopLlFDqhTCSWWb9OdOhBwAQkpojtVw7P4ySXvfgfZYULTggxgnOnow7TeXHymlnT+JVpwnuntun+9DIAGVq.O.FioPGXz6ZtO8LXz77Q2ZYsOM8ToHVA3nXXtZbf20V.H+V3Rsl1vtMo7OFZqf86C0J0+8R0QsSkSvf7UrvImLhX99gzAB3BZ3E2pFb+OhHuc5qa+aamlEDvdq5p6ArvnTnoSb+Hneqg4Mrf6E3.URjrPoS5ovTygL9oT+iEJ4+vcs2UWr6t8dl2tUIFGxhhCo83mQCg.qBi2.hjJ6rjZ8osOTvEwiEblmdlxQksn0wdiFzNRIw6zJJ2b6ingTh9Uy95seJzwhj.9I5+PeQ2E2WbYwquxJGtNXlly+M9bEq9+yOWwQhLIbrzgDHQEaY.GROTjk3QAjv4vYoX2iUvdO4u2oraxPJ2W8xeAOEL6huaVvraIyOH6QDwKQ7Fu7l5Xt7UUT.6lq9visrNDe2oaY6bz2.8.YuwyCc12E7NMqwlKsFe6Rqw8WZMdvRqwCWZM9tkViu+Rz.+RJ6jIEQ4kd.gA8TGiZZ1iSfLWUVtweCHUd7uH
-
@blezzbeats So is that Bypass2 button something you've added?
-
Try removing this line from the note off callback
Message.ignoreEvent(true);
-
@d-healey I just changed the name of it because it seemed to confuse which button it was linked to from the UI. IT WORKS NOW THANK YOU! Never thought about messing with that line it looked dangerous :D What does it do?
-
@blezzbeats Kind of self explanatory, it ignores incoming events (MIDI notes). :p