Welcome to Decent Sampler Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote
How can I make one note to stop playing when I play another note?

Let me explain a little more, I'm developing a drum library, and have set 4 Hi-Hat options (Foot  Close, Closed, Loose and Open), they all have round-robins and velocity layers, and are set to 4 different notes.

I would like to have only one of these 4 notes triggered at a time, as if I trigger "Open" and then trigger "Foot Close", the first one would stop. Is it possible?
in Sample Creation by mauriloureiro (830 points)

1 Answer

+1 vote
 
Best answer

Thanks for your question! I've been working on this all last week, and I've just uploaded a new version of the sampler that adds support for this. The way to do it now is by putting your hi-hat samples in a separate group and using the (completely undocumented) "tags" and "silencedByTags" attributes as follows:

<DecentSampler>
    <groups>
        <group tags="hihat" silencedByTags="hihat" silencingMode="fast">
            <!-- Your hi-hat samples go here. -->
        </group>
    </groups>
</DecentSampler>

That being said, this is all a little experimental. I've made a blog post about my concerns here: https://www.decentsamples.com/2021/06/14/decent-sampler-now-has-experimental-support-for-legato-samples-and-voice-muting/

by decentsamples (6.3k points)
selected by mauriloureiro
Thanks Dave, you're the best!
Just downloaded the latest version and gotta be testing it in a while!
Hi Dave! Got the version 1.0.11, done some testing here but doesn't seem to work yet. Is it maybe because the drums are like "one shot" samples, and not held notes?
Try adding `silencingMode="fast"` to your group(s). I will modify the example above as well.
About the `silencingMode` attribute: a value of "fast" means we immediately silence, whereas "normal" means we trigger the ADSR release phase.
Now I'm getting somewhere! Thanks a lot, worked just fine!!
...