Forum

    • Register
    • Login
    • Search
    • Categories

    Unsolved How Do I Find the Transport Position in Seconds

    General Questions
    2
    5
    140
    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.
    • clevername27
      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.healey
        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

        clevername27 1 Reply Last reply Reply Quote 1
        • clevername27
          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.healey 1 Reply Last reply Reply Quote 0
          • d.healey
            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

            clevername27 1 Reply Last reply Reply Quote 0
            • clevername27
              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

              13
              Online

              985
              Users

              6.6k
              Topics

              60.8k
              Posts