Seamless crossfading issue: loadSampleMap() kills all voices
-
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!
-
@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