HISE Logo Forum
    • Categories
    • Register
    • Login

    setTimestretchOptions - How does it work?

    Scheduled Pinned Locked Moved Unsolved General Questions
    5 Posts 4 Posters 257 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.
    • M
      Mighty23
      last edited by Mighty23

      I would like to allow the user to select 'TimeStretching' in the Sampler's 'Voice Settings'.
      e1ab401e-4cf1-497a-9808-9d057e51e4a0-image.png

      I found this in the documentation, but I don't know how to use it. Can someone give me an example?
      42099e69-1ae3-4dd1-8434-4da78ffedeb0-image.png

      Did I find the right function or am I doing something wrong?

      Free Party, Free Tekno & Free Software too

      1 Reply Last reply Reply Quote 0
      • dannytaurusD
        dannytaurus
        last edited by

        There's a bit more info here: https://docs.hise.audio/scripting/scripting-api/sampler/index.html#settimestretchoptions

        Not much, but it might help.

        Meat Beats: https://meatbeats.com
        Klippr Video: https://klippr.video

        adrianmcroftA 1 Reply Last reply Reply Quote 0
        • adrianmcroftA
          adrianmcroft @dannytaurus
          last edited by

          @dannytaurus I only just fell on this item too, I'm sure you're 3 months past it already.
          But, for referemce (and for when I forget it again)....

          local options =
          {
          	"Tonality": 0,
          	"SkipLatency": 0,
            	"Mode": "TempoSynced", // "Disabled", "VoiceStart", "TimeVariant", "TempoSynced"
            	"NumQuarters": 0,
            	"PreferredEngine" : ""
          };
            		
          sampler.asSampler().setTimestretchOptions(options);
          
          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @adrianmcroft
            last edited by

            @adrianmcroft There's a working example/explanation in the docs - https://docs.hise.dev/hise-modules/sound-generators/list/streamingsampler.html#timestretching

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

            adrianmcroftA 1 Reply Last reply Reply Quote 0
            • adrianmcroftA
              adrianmcroft @d.healey
              last edited by

              @d-healey Then I probably need to not google on Boxing Day without my computer glasses.
              Many thanks.

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

              24

              Online

              1.7k

              Users

              11.8k

              Topics

              102.8k

              Posts