XY Pad to Control 4 Gains
-
Hi i am trying to create a XY Pad that Controls 4 Gains
i am able to get it to work with 3 gains and still get the XY Pad paint routine working
but as soon i add the 4th Gain Callback i lose the XY Pad Paint Routine
but all the 4 Gains are responding to the Mouse callback
(created with Master Branch)
i can't get it to Work
What is Wrong!uncomment line 101 to 106 to make the test!
HiseSnippet 2125.3oc6Zs7aijTFucxz6NwKd0LqFwA3RQDfZmD631t2cPZ.kL40rgYch034QFEhV0t6x1kR4tr5t8D6clHARbmabdOuG1S7GvJj3.23FhaffCHNwEtfPB9pp51c431NY7xtZB3VJNtp56wuuG0W8ncMelCNHf4qkYoGOnKVKy2Pu9.uv1a21l3os+NZYtsd0sPGgdNplsK5w3fPssFz0NH.6pkIyhOfSVlktgl34uuwV1TaOGbRWZZOkQbveDoCILo2Za9PBktmsK9wjNJTas49NLusYTVO.RKpWRqqsyo1svGXyIaAcsLu0ttjPle8P6PbfVlarEycP81ry7jz+TR.oAEyaXpUGDjr68XTWNh48pscaB0sVroGnARoVhiXQoi3N5UItjg8m3PtkX.TBGp9iLKLM3YpBuRoBuRoAuLJv6FR3ca85N9jtgIivw16nuuWH1uoMDBTgkjVsEv4z2lAT3EVri8o387gFC4v3CJUZMD7Q96kKatrPfHHD8BaezQOGh807nneDJl6V3vsYc5x7fFFKGSvxbNS3qNoSWJlmhXBrJxq3LtaylXGfK4vHw3SjyxWBmkmHmUtDNqLQNstDNsV9hdnS8XMB.tN9j6g3izj4iLHPGktGhf9gHK3eqtZ9bYeYtrH3QP+wjSlnG8g.AKupAYUy7bcoxSw.Nkdg9L511TZCXBhgH.vI7bt1WecTUVu.LZ6sxkMN1vYSz6PlZ1yyIjv7Lvu.zYB3HMQxtJ5PINmhcQu5UHYGt91sPIM6vk2YswXZdIqQRf+D1lDTz0NztXevJqZCdSeauV3HQ2GstjDvteFwMrsQ90PP5GxL1dGUHCRSHCTDxGhIsZGFIkQDRzSRGIeS5SKI7oO0l1CaXthBvUkhjTSURKLB0CxON4kmfjGL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wms11CSE5Lqd7hTZ8GdaEeQiMGn13L9FFR5vey1hkTU6ARmYmEmTCf5aouM+HVAqg9P1Kv9nuOZG3DVsfoqZcYc608PuGwEgfn3n9XvcJgVEv9JUv1cyNLWf0uo9AL+N1TxmfcghWNfXsag05Pbco3Zr.BOeO45Y9ia3haZ2iJ2boZ+A8Z1jzmCwu2qEDKq.wO0SEhO4MEHVYRP728p2TfnkBD09te8EnG+ZotkdUlaOpc3n2XFewfnA35Q8po3W+jGn+ApWi3W5qQKsa46pB2aqWiD5zNc7tPJ3Ep37UMditTxb5xqiJAr2Peuil0afz7peCjpWP5MGdSwCWtW.k2UW8F8lz0D+oe1JG7E6fo1i3.elZsy+4u4uk1EIuuGThLrFiZ6eQ2+hiZyKd0r4KwNmdNB2jPeEkSa9e8b52SW3xQWalD9d5hThqO.9V5v1EdC.txabqUUaXS4PcZ8C50oNqGTwGfpGreFPQ5YVfuYQY6R71b.UG64JZ7ugmnAM4syDMnY7fZutECJO42YzOcqKoXfl1y2bdwf4EClWL3+QJFTYJECNbdwf4EClWL3+eJFXM4iI7YObdwf4EClWL35awfuNzQGaGe1G6D8dXfol2TzCX2dhexXKoWk2FM7Zt00KUrD+huHeriC+9SJ.9mz4o7LvSkYfGqYfm2eF34ClAdt6LvyOXp7v+0yc+dgrNx7+j2UAECycdG0F5YdvnyrT+8sIz0972obbx.LCwOTsf+tdtpyj1qGkNFM7Nu.c0OEelZagNASh22KuC+cU7y2X3K8J4NXkK7HmIqMEa5Geswlpbksoiu1XSlWYa5jqM1T4Qsop01U7hvxjYWwqwV16+AA+6GNC```
-
You probably don't want those
if (value)
statements in each of your knob callbacks.Since all your callbacks are doing the same thing, you only need one callback.
You need to add
this.repaint();
in your mouse callback (why it was working without that at all I'm not sure :p )Why is this in the feature request category?
-
@d-healey
Thank's David you gave me the Answer Now it's Working!
P.S. i posted this in Feature Request
because there was already a Post About it in Feature Request
[XY Pad](https://forum.hise.audio/topic/1637/feature-request-xy-pad/11
i just did a Follow U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