2 Buttons 1 Parameter



  • Can I link 2 buttons to control 1 parameter.

    example: if either of a bottom move the other follows.

    Don't know if I'm explaining correctly.

    thanks in advance!!!



  • @jay Yes, but only with scripting.



  • @d-healey Can you do an example for me, please?



  • @jay Tomorrow I will



  • @d-healey Thanks bud



  • Radio group or does that mess things up?



  • Here's one way to do it - I used knobs rather than buttons but the same technique will work with either. In this example I have 3 knobs, one of them is invisible and is linked to the octave control of the sine wave generator, the other two knobs aren't linked to any control but moving either of them will change the value of all three knobs and trigger the .changed() function of the invisible knob.

    I like this method because it means we still have access to the parameter ID system.

    HiseSnippet 1235.3oc4W0sSabDEdVa1zZmBpHkJ0KGg5E1JoDaHIsRTTLXCHqD.KVBsRHT5vtisGwtyrY1wzZEwaRunOJ8QnuB8MH22KnmY103gzEiMo+H0tHg24727Mm4721QJ7oIIBIxozgCioHmOw0aHW0uYeBiiZ2B4rf6tjDEUhSIs4vXRRBM.43TbGMAmRygLOu64aRBIbe5XRHzQBlO8krHlZL0NMdAKLbaR.8PVjkzOoQaeAuoHTL.vSQ2ZnXh+Yjdz8HZwJ3hbt2VALkP5oHJZBxYtMEAC85K9Adp7GwRXmFR0Kpi7.CkRdaQXfFw52QM6yBC5L5bmfPNtcF6EJl5Edf6tr.1UzG6M9TCC7XMr8GNElD7peGgmiE7lKEdK554KYwpwbzX69ts4vEUWBbEXCqTYQE9oBtMEfDb0xQjynaKgEWoQkmUq1ivOsVspqMe44KCWDIJ74DI9Lt3zD753iOwvvr73Zm.TFYrdTUSQTrfCKprzK.Apuj1JohVexhthknqLYQW0RzZmrbhV.tRJBaRBCOEBUpn40bS68dxRo+iwCYbJt6.tuhI33TtU7SU5QfOHb.s57ke67kwvSWgDWgA3r1ZXF9avqB+7vGVMkYlL5GVW7HafWe8Tu3wrSph0DY7Az0vO9wdmwhwp9TCa3EhBqjrd8nRZfgteFlGa2QFRevNRCsJo.bMiDWjJX5+G4TW1uOg2iFTo5ZZxku3pypfumPQ2mWoZ42VtT4KJ+9b51MOVYNzPpLOt5jZ4DTqBePzoT4HOalbPr80Sdt2zk73mFtXInf2lyT6GSyVON8pdNoWnr3MHQqXF.g2TlzrExRy7BYATIhAF4ibMw2HC1yJc8y67aEZflZkW4CQ4UyQ4W0tEQQzUJxNKv4KlJULsazoE8bnDbZciRtsnImoDwlCaVxEX5a839iPURm1vNNT+xRvKQrffPZGQBSe6ZWxOR2Tv042u7xKiHFEcQF+7Tueqn2uLC98xFCGa8VMhra47fewrCWsrwMiJ68u7s5jsL5gV6es2z3VN22HxhGEy0F1lOy0SWy4aImSw6P4TIAB7gtcRnQGTOVKxht66q.9GJI7jXQBEc9nD.mhn+bKAnwjHXPn1P1cqzsnyXngqcaAcoeNbLFZ2BeFZgUK2VX4liMkvcQ2NLke+7wagbvKDy+2MdyFHXd2s51k5qFC14b296tqc+uaPYgTnbeSviYJMCPxOX5lmS6Wm14zhm54zd+P0wFtgGMhcHj2kXuauJAl9f9lCzWx1zaJHxbY8tmuMbFyUGOhZfzDsrQjX.Wcsnih2oAxtdRik74Lc1b+KL73e8Yde3EJJNcv8VluszHL5whhCoawOmFB8xxpNzh1kLHTcEUaPtqfKh6K3Le6.fCnYySYC8bOOanTvbV1UrOfFRI1AyeQiWBAgDI3ln2QWQ8o2ULoqqO2MEtXchI9+F02K9+y56GHF.eNPucIPfpdXo8FD4A0U8o.R3bZXhd.pB5ZioqqoWap6Q4AlEvbVWlwrtdsSFy5iX9OxdDQ7khWm8EO5X4O1PAN2byWuWxcW8Z7UiNq8MvvTrW66qc1eI3cxWiUlYMVcl03IyrFOcl03YyrFe0LqwWOAMz8d1XfRDkl5AD5rk4CGbb1hSfHWSTN5Ozd0MWM
    

    Here is another way of doing it. We use just two knobs/buttons and make them control whatever parameter we want them to control directly in the script callback. This isn't any more difficult and it doesn't require any invisible controls, but it does mean that the parameter the knobs are controlling is hard-coded and can't be selected via the parameter ID system.

    HiseSnippet 1199.3oc4W80SabDDeOatzZmRTiDUpOtBUUcnjRrojzJQQAv.QVI.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.4irK4VoaZFle6G+4e45yvL2ZkMCy2NwyvrmmBW8ChYhjHYxUJfcgP9AXoQRwSsWlf2LCe295C4h7aIYwkJ5MOcabOVpMtLUZrIaY8PYpPckrip2pgUtZQSA8KYxkY9WXvp+5q79y2nn5jA22wre0FfQWdXT.rk3bH.a2m2cXSnKKMPMjaQPtiTHi5IEbuhI.6C4yRTD5ktev4AvYLJVRrOD.rhIyexZu.SBYwXXBtkghlSdnXbGWercFbo5BS5+M5uW8+m822WlhiBe5NLLQUey+togtXeUO.QhP.AI5oApn6MlQ2PSa56ABeCANzvk4BaposxE1bfv+QViPlWr7U4S6qykeeCGbeKL+y1Z3ewFooCGPTGavIb3uxySGr+LL5TtEKM0V74SsEKO0V73o1hmL0V7ESsEe4XrPe2y5oJYXVoGxnyVlYqsr1RvvLWSVN4O.Hxzh5D
    


  • @d-healey said in 2 Buttons 1 Parameter:
    BIG Thank you David, you're the man, Exactly what I was looking for


Log in to reply
 

0
Online

325
Users

969
Topics

6.4k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.