HISE Logo Forum
    • Categories
    • Register
    • Login

    All samplers are being reversed with the same sample map

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 306 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.
    • ?
      A Former User
      last edited by A Former User

      I have 2 different samplers, I am using 2 different buttons to make the dedicated sampler play the reversed. I am using the below setAttribute function for it.

      It works great but if both 2 samplers have the same sample map, if I want to make one of them reversed, both of them are being reversed. What am I missing here?

      Sampler.setAttribute(Sampler.Reversed, value);
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @A Former User
        last edited by d.healey

        015dc41a-b352-462c-8aec-f5a9ca0b82f4-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
        • ?
          A Former User @d.healey
          last edited by

          @d-healey Thanks. So, where do I need to add it?

          Engine.setAllowDuplicateSamples(true);
          
          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @A Former User
            last edited by

            @harris-rosendahl You want to set it to false (I know, counterintuitive). Put it near the top of your on init callback.

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

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @d.healey
              last edited by

              @d-healey Thank you so much!

              I put it on the Synth.deferCallbacks(true); function on init, Now it works!

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

              54

              Online

              1.7k

              Users

              11.7k

              Topics

              101.8k

              Posts