HISE Logo Forum
    • Categories
    • Register
    • Login

    Simple button conundrum...

    Scheduled Pinned Locked Moved General Questions
    22 Posts 7 Posters 1.4k 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.
    • 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

                                  30

                                  Online

                                  1.7k

                                  Users

                                  11.8k

                                  Topics

                                  102.5k

                                  Posts