Simple button conundrum...



  • Hi guys,

    I'm probably missing something really stupid here, but if anyone can help it would get rid of my headache 😂

    I have 2 buttons that switch panels (that works fine)

    I also want those same two buttons to toggle between having 2 LFO modulators being bypassed and enabled, as a workaround for not being able to switch between ms and tempo sync mode.

    Button1 should turn on the LFO Modulator for ms mode and turn off the LFO Modulator for Tempo Sync Mode... and Button2 vice versa, at the same time as switching panels

    The code I have should work fine but its telling me that one of the modules isn't found. Can anyone spot my mistake?

    Snippet below:

    HiseSnippet 2637.3oc6ZssaabbFdoj1XSJKG6Z01TzaFHzBPYYKwk5fkiSfnkjoiZDkHDkTRpqgypcGRNvKmgYOnC1Q.9xdWxc8snHOB9En.Asu.9QvW16Z+mY1k6rTjhqTjULBBuPPyg+Y9++9ONyrUcYVXOOlqVlraeTarVlqoW6HpeyUZZRnZqsJuipMM8vtncqss1xG01zyCaqkIyvOlOiLYGQS76sKsroiI0BG2kl1tLhEdcRKhebuUK84DGmxl13sIsTl8bkVyhQWg4vB.tYX8BZsMsdtYC7Fl7oMjtVlO3Q1DelaMeSermVlQVlYeTslrCnx4uKwirmCl2vPqFrPxtKybr4bLuWsUZRbrqFI0dZZYzqFiACKwfw0qPrIc5OFKtgX.TLEp3QlgNM1yPk8Jjd1KiB6Mhj8todMKWRa+3Q371n5qQ8wt0MAUfJaImq1P+qQzWgAyf5OcKymiK6BM5PQ9EJT3Nn4KTXxGLVtwxMyLdGP7sZhZaRwNdHnQSzdA99Lp2X4.0jmOZeSWzF6T4YKuy1au4F0PeJp3CTGKb5P+O4oIFHbMC6erb0Ytn7DncgGfHnOQcQgNlZpIGK2KGKGB9EtjOg7TX1QBSCr+JrVsYTnQ9IVVLkIPSAK4TFSxEGNkx87zHrJeFmft3cbZO9zo9tLmULcb1CrMyynxsKreNQGykHB0gPwn5ATKeBih5Zd4sh116..hS.NVBcXVlNHh8g.eFt2SSn13C2rdLUQLm7ucCeRQcZGLsgeyH.jOwvsHAbLsGXeFwVhs8SQjn0+3nsQHTbqBeViF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2jFK+NfFW1Ch2Eppi4QXWiKhuaq1o961h6HJtwXUmKd4ca6BUZ.XTJbF2B7c4eVApe2X0La01ACZMWetdVYQ1BuO10CmnuxvQljUZ+85yriGL9L1MMced8.5yaNypLqfVPo0dyHWUz5j8bMcOBkuB.OSNyTn4KXf1Fa0jxPgSoJv8n7kCbbj+6VftA6hsmblkAvU.3dn7FEWbu1slblB.82E0YDT9UaAK7zGXtu75YkJ+vif7emYbMGXVBgKZLGAzXGMd20gclqxrmeeYi7d8m+1k2wcFNcr6.ppMaDOVivMYdDcerC3YFVU6p35lAN9Q8lzsrBixZ2jQIVIsrgvIMD2eRLu2SA5g99w0wC+FuzVXGLjRS8B9WGNcqoa2NmWbYZRaE9ejtjcQ7XIneYbL0g+EzwTeOKu2kwdzxzxk8LK4GWC2V9phd.4lJxhjUuBuMpyWEjtdgoKvuCPxyrr3v8cMzz5MMEOGzL64fl4NGzL+4flENGzbuyAMKdpzvSF8v.n3boqHzQ0GIKKOSmJJxLr1+Gv4mIYr
    


  • Here is the code as well if anyone can spot the problem at a glance...

    //toggle between lfo modulators on and off with buttons **NOT WORKING??**
    const var LFOms = Synth.getEffect("LFOms");
    const var LFOsync = Synth.getEffect("LFOsync");
    const var Button1 = Content.getComponent("Button1");
    
    
    inline function onButton1Control(component, value)
    {
    if (value ==1)
        {
        LFOsync.setBypassed(1);
        LFOms.setBypassed(0);
        }
    else
        {
        LFOsync.setBypassed(0);
        LFOms.setBypassed(1);
        }
    };
    
    Content.getComponent("Button1").setControlCallback(onButton1Control);
    


  • Fortunately, it's super easy to switch between tempo sync and ms for the LFOs. You can just set the attribute for the modulator variable. Does this solve it for you?

    HiseSnippet 1044.3ocyW80aaaCDmxNba1cNacse.DxSNXcFxsoocXXnpwIdvXwIFyYcEnOzQKQESDIRMIpzZTzOC8490Xen1y6av1Qp+Q2Xj5Yr1M+fAti2w62c2OdjZRhvillJRPVsNaQLEY843oK3x4ClSXbznCQVaiGSRkzD6bUGrHljlR8QVVM+Ak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MHt2zFBqwY7Ns3LpcZcIv.to7FKR389dftWPPRlyvuwL1j3RffHpWo9pP8jVdYMGNZrn7agbp+XTH6hEVu32REFV47svvg++nBCeOKRy4wdz1x1i+X6vOdEgt7Ek8.malzucQzZh13de0MHT4oJKt0M5issEv8mTQSq+zT8TPyzmBZl4TPysNEzL6oflaeJnYtijFQvn60ERGNzTD5n9xgIBWnWL7BCq8+fdc9yq
    


  • @ulrik Brilliant mate. Thank you. Thats a much tidier way to do it as well. I assume the callbacks for the buttons were getting confused with the way I had it before?



  • @Lunacy-Audio

    Cheers dude. That does work for switching the modes, but the only thing with this way around is that the values don't change on the GUI. So even when you are in ms mode, i't still shows 1/16 (or whichever speed is selected) reflecting which option is selected in the component specific properties.

    Screen Shot 2020-07-28 at 18.44.24.png Screen Shot 2020-07-28 at 18.44.20.png Screen Shot 2020-07-28 at 18.44.14.png



  • @SteveRiggs For sure. There are a few solutions to this. You can hide and show two different knobs the way you are currently, but a much cleaner way is to actually change the mode of the knob in the script. Here's a really simple example:

    HiseSnippet 968.3ocsV0saaaCElxwbaVctnEXO.D9JGfrV4s1tgELTu3jL30kDiorhcWACEULQnHEjn5pWQ.1k6psa260dQ1Sv1NjT1RI0oM0.iWX3yOeG9wCOmC0rBMiWVpKPA8NcQNGE7w33EJy7IyoBEZ59nf6hOhVZ3EDup8VjSKK4Inffs9VqhfdcQt0e+z8nRphwaTgPOWKX7uWjILMZmM9YBo7PZB+TQVKuez3oLsZhVpq.9rENBkSYWPOmeL05VGLJ3CNHQXzEwFpgWB9rmNYQ7b8Oq79+bQo3LI2JLBECAxqFMYtPlLa4YsDgB5Nq4juk+j+I3iDIhU5ax.2yYfzfncNHnyUoT2qPoQ2DkNTKSrA3FnWPK500Su6iiYEhbSiEK2tCdpBtbRoPZuMs79h5v5fmnAOTlGjQufeXAHrBwvmDEsC4wQQaua+v9gBkTn3jzJEyHzJhVsWkwnUirQnPKGxzY4ZEDqcHujJq3a2O708CIvRpYTIIuPmWtqWi+WQJYn2URsm10CeHwvgPQJWnXMpcvIecaOsqAY5D9fuhL3TKFn5jMXGxJOtbW2euzigKK4WamxJeW6PyF.ki2br6G1aYprjauFx4EFAuDxoYeW7IGObvyT5yFAAvsM1b5kt75RTmyMSVlAGNnN2NXaazpyvSnR4YPM+vqm5sAq08xwZC+D0vsCecXuvKCIW2TZ5ZsUGLIuXslsG+h2Fvgppry3EKu8W5HThd0df6b65AX97RKG0poJg4jbdsbSWh0l+TuzZDZ0gssplyXasti1ZbqQ0a1Dhpu2f1wN0tCtZbMi2stYzeKgD.G6gquxPtrS6gfnaBdrTjvKbv+Prq5YMf+wo6SMT6PgZB0T5A51m+RXBqeDQO797xKL5bGiqqzfamaAmeEJ.G7mvtsv9me2S5UQn26j1uZEkIrwKVI7qoisMWvfaraVeFswwe6uFCuqjGK9Ed6GQxDIIR9LcovV7Ys7O+Krd5eLtrJMUXIJFZpgmQdiQjvfZcRkjZt5za6yT0FrQr8XR6nPErSKZyf2iQ5Qqcj9n0UMcKo68wyDF170y2Nqgu1xy+m4a8Cj8wGjlxYlFx1Ee3OsouF9dPkePWYDpyOhZJb2+GWkECei.iCLQofY91Z1N1RVubjU1lYh4pDmfsBp13HqbPswQKMBUlrB8KX9FU6SvejSCvIk6qO5AeFDHSV0ghwQOHBAUqhWvX1TwmBbe8X9rM.ymuAXdzFf4wa.lmrAX9hM.yW9VwX+nruoxny7sIfhYG3lTFDbfhBUYtJRz+AHoajaG
    


  • @Lunacy-Audio

    Ahhh I see! Thanks mate. Thats been bugging me for ages! 🤣 This will save some time now. Much appreciated!



  • Happy to help 😀



  • There is some strange behaviour with this configuration.

    When you set it to a sync value , then to ms you get a certain value . If you go back to sync and then to MS you get another value ? Same with the other way around ?
    MS.gif



  • @lalalandsynth It's normal behaviour, because you cannot directly transalte ms (0-2000+) to sync (0-18) and vice versa.
    1/4 (5th sync position) => 5ms
    250ms => 1/64T (250 is greater than 18...)
    You need to re-calculate the approaching value using Engine.getMilliSecondsForQuarterBeatsWithTempo()and consort...

    That is said, what is the difference with Engine.getMilliSecondsForQuarterBeats()?
    The API says "current tempo"... So it is the host tempo I imagine?



  • Yes, but its strange that it goes from a 1/4 to 8 ms , then you do the same thing again and it goes to 5 ms , that is very unexpected behaviour. If you look at the start of the example I dont change anything , just hit the button again and get different results.



  • @lalalandsynth You're right I noticed that once too… it is maybe because of some rounding somewhere in the process… dunno…


Log in to reply
 

24
Online

810
Users

3.0k
Topics

25.5k
Posts