Forum
    • Categories
    • Register
    • Login

    Seamless crossfading issue: loadSampleMap() kills all voices

    Scheduled Pinned Locked Moved Scripting
    scriptingsamplersample mapcrossfade
    2 Posts 2 Posters 16 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.
    • E
      emmanuelbuccheri
      last edited by

      Hi everyone,

      I'm working on an ambient pad instrument where seamless crossfading between sounds (while holding a chord) is essential.

      To achieve this, I built an A/B dual-sampler setup. The concept is simple: while the user holds a chord on Sampler A, I load a new sample map into the inactive Sampler B via script, and then crossfade the volumes.

      However, the moment my script calls Sampler.loadSampleMap() on Sampler B, HISE triggers a global note-off. All active voices are killed, and the audio playing perfectly in Sampler A is abruptly cut off.

      Is there any way to load a sample map into one sampler without killing the active voices of the other?

      If not, what is the standard approach in HISE to achieve seamless sound transitions without cutting the audio?

      Thanks in advance for any advice!

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @emmanuelbuccheri
        last edited by

        @emmanuelbuccheri Loading a sample map always stops the audio engine.

        To cross fade load the sample maps into two samplers at the start and crossfade between them. Or load the samples into multiple groups in the same sampler and use the group xfade feature.

        I have an old video that shows some techniques here: https://youtu.be/0cn1l8231n4

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

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

        20

        Online

        2.3k

        Users

        13.7k

        Topics

        119.2k

        Posts