HISE Logo Forum
    • Categories
    • Register
    • Login

    Different sample start points for different keys, using same sample?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 49 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.
    • F
      fakemaxwell
      last edited by

      I have a feeling I'm doing something wrong, as it seems that this should be working. Basically:

      Screenshot 2025-04-02 142509.png
      Screenshot 2025-04-02 142503.png

      This is the same sample, assigned to C3 and D3. C3 starts at the head of the sample, D3 starts later. I cannot get a working result, both keys playback the same start position. Whatever key was edited last is what both keys play.

      Went into the XML and tried setting "Duplicate" for both keys to 0 and 1, neither works (setting both to 1 results in no sound). Any ideas would be much appreciated.

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

        @fakemaxwell You need to call Engine.setAllowDuplicateSamples(false); in your on init. Yes false is correct - I know it makes no sense to me either.

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

        F 1 Reply Last reply Reply Quote 0
        • F
          fakemaxwell @d.healey
          last edited by

          @d-healey Ah, lovely. Thanks, searched the forums but not the docs with the right keywords.

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

          26

          Online

          1.7k

          Users

          11.8k

          Topics

          102.7k

          Posts