HISE Logo Forum
    • Categories
    • Register
    • Login

    Simple button conundrum...

    Scheduled Pinned Locked Moved General Questions
    22 Posts 7 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Casey KolbC
      Casey Kolb @SteveRiggs
      last edited by Casey Kolb

      @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
      

      Casey Kolb
      Founder & CEO of Lunacy Audio
      Composer | Producer | Software Developer

      SteveRiggsS 1 Reply Last reply Reply Quote 1
      • SteveRiggsS
        SteveRiggs @Casey Kolb
        last edited by

        @Lunacy-Audio

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

        www.anarchyaudioworx.com

        www.facebook.com/groups/audioworx/

        1 Reply Last reply Reply Quote 0
        • Casey KolbC
          Casey Kolb
          last edited by

          Happy to help 😀

          Casey Kolb
          Founder & CEO of Lunacy Audio
          Composer | Producer | Software Developer

          1 Reply Last reply Reply Quote 1
          • lalalandsynthL
            lalalandsynth
            last edited by

            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

            https://lalalandaudio.com/

            https://lalalandsynth.com/

            https://www.facebook.com/lalalandsynth

            https://www.facebook.com/lalalandsynth

            ustkU 1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @lalalandsynth
              last edited by ustk

              @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?

              Can't help pressing F5 in the forum...

              S 1 Reply Last reply Reply Quote 1
              • lalalandsynthL
                lalalandsynth
                last edited by lalalandsynth

                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.

                https://lalalandaudio.com/

                https://lalalandsynth.com/

                https://www.facebook.com/lalalandsynth

                https://www.facebook.com/lalalandsynth

                ustkU 1 Reply Last reply Reply Quote 0
                • ustkU
                  ustk @lalalandsynth
                  last edited by

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

                  Can't help pressing F5 in the forum...

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sawer @ustk
                    last edited by Sawer

                    @ustk How to apply this on a label instead? So that when tempoSync is activated the label changes from ms to n/n? Thanks
                    Screen Recording 2022-04-12 at 12.09.20.gif

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      Sawer @Sawer
                      last edited by

                      Update, tried again using Engine.getQuarterBeatsForMilliSeconds(double milliSeconds), the numbers get to 0.00nnnn. I'm sure it's possible to get the tempo format value to the label just like in the knob. Just need to know how.

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @Sawer
                        last edited by

                        @Sawer What about Engine.getTempoName() ?

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          Sawer @d.healey
                          last edited by

                          @d-healey Screenshot 2022-04-12 at 13.05.56.png
                          Looks like this function doesn't work anymore. Tried also assigning it to a variable but nothing. Not in the autocomplete list as well.

                          d.healeyD 1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey @Sawer
                            last edited by

                            @Sawer You're not using the latest version of HISE?

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              Sawer @d.healey
                              last edited by

                              @d-healey I am. Is that function working at your end?

                              d.healeyD 1 Reply Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @Sawer
                                last edited by d.healey

                                @Sawer

                                I am. Is that function working at your end?

                                Yes, on the latest develop branch.

                                It was added back in February.

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

                                S 2 Replies Last reply Reply Quote 0
                                • S
                                  Sawer @d.healey
                                  last edited by

                                  @d-healey Ok, will upgrade today.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sawer @d.healey
                                    last edited by

                                    @d-healey Update and working! Thanks

                                    1 Reply Last reply Reply Quote 1
                                    • First post
                                      Last post

                                    12

                                    Online

                                    1.7k

                                    Users

                                    11.9k

                                    Topics

                                    103.3k

                                    Posts