@CatABC I think I have confirmed that I can use fewer RR groups to achieve my purpose. I set up variables to store the key I pressed first, then calculated the interval, and set the group I wanted to play based on the interval. This should be simple for everyone. As a beginner in HISE, it took me a lot of effort. Anyway, thank you for your help!💗 Following is my test code
local a = Message.getNoteNumber(); if(Synth.isLegatoInterval()) { leginterval = a - lastNote; Message.setNoteNumber(lastNote); if (leginterval == 2) { Sampler.setActiveGroup(2); } } else { Sampler.setActiveGroup(-1); } lastNote = a;