HISE Logo Forum
    • Categories
    • Register
    • Login

    How Do I Find the Transport Position in Seconds

    Scheduled Pinned Locked Moved Unsolved General Questions
    5 Posts 2 Posters 279 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.
    • clevername27C
      clevername27
      last edited by

      Could someone please guild me in finding the host transport position in seconds? Thank you.

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

        Engine.getPlayHead() with one of these conversion functions - https://docs.hise.audio/scripting/scripting-api/engine/index.html#getmillisecondsforsamples

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

        clevername27C 1 Reply Last reply Reply Quote 1
        • clevername27C
          clevername27 @d.healey
          last edited by

          @d-healey Thank you for your reply, David. I can see how to get the current bar number, but nothing else. What am I missing?

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

            @clevername27 I'm not sure I've never used it

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

            clevername27C 1 Reply Last reply Reply Quote 0
            • clevername27C
              clevername27 @d.healey
              last edited by

              @d-healey Yeah, it's not something that (according to the documentation) that it appears you can do. JUCE has hooks for it, and there's a section of HISE that has that places that information as member variables (presumably with public access), but it's commented out. I've recompiled with the code, but I can't reference the variables—it may be a syntax thing, but I can' tell. (There's no error message, just nothing happens.)

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

              56

              Online

              1.7k

              Users

              11.7k

              Topics

              101.8k

              Posts