HISE Logo Forum
    • Categories
    • Register
    • Login

    Time Stretch Sampler Issue

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 83 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.
    • P
      pede
      last edited by

      Hi! i hope everything is going well.
      I am developing a vst, and i wanted the user to be able to turn on and off the time stretch feauture.
      I tried with sampler.setAttribute(16,1); but it does not work. (since i saw that 16 is the right number)
      Also if i print the attribute 16 i get always -1, no matter what setting is selected.

      So is it impossible to do in that way? should i have 2 samplers with 2 different options and activate the one i need? wouldn't that waste a lot of memory?

      Thanks a lot, i really appreciate this community.

      P.S.
      To declare the sampler variable i use const var sampler = Synth.getSampler("sampler");

      P 1 Reply Last reply Reply Quote 0
      • P
        pede @pede
        last edited by

        @pede oh and i would like to go from disabled to voicestart, i didn't clarify that.

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

          Hi,

          I would avoid the time stretching feature, it doesn't work properly.

          I'd also avoid magic numbers, if you right-click on the sampler's header and select Dump parameter ID & values you can find the name of the constant that you need. This way if the magic numbers are updated in the future your code will still work, also it's more readable.

          91b840f8-6a2c-4551-8c44-bfafcc7a1677-image.png

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

          1 Reply Last reply Reply Quote 0
          • P
            pede @pede
            last edited by

            @pede thank you this is really helpful. I will def use this.

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

            29

            Online

            1.7k

            Users

            11.8k

            Topics

            102.5k

            Posts