HISE Logo Forum
    • Categories
    • Register
    • Login

    How to get the Duration of a Sample?

    Scheduled Pinned Locked Moved Solved Scripting
    3 Posts 2 Posters 84 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

      Does anyone please know how to get the duration of a Sample? Thanks!

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

        @clevername27 Assuming you already have the reference to the sample you can get some properties from it such as:

        s.get(Sampler.SampleStart);
        s.get(Sampler.SampleEnd);
        

        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 Brilliant - I hadn't thought of that - thanks!!!

          1 Reply Last reply Reply Quote 0
          • clevername27C clevername27 has marked this topic as solved on
          • First post
            Last post

          31

          Online

          1.8k

          Users

          12.1k

          Topics

          105.4k

          Posts