Ah Ok! Sorry for my dumb's questions... So I could use Message.ignoreEvent(true) in the onNoteOff() function for the all drum set to emulate the one shot option, that's it?
Thanks again for your time
Ah Ok! Sorry for my dumb's questions... So I could use Message.ignoreEvent(true) in the onNoteOff() function for the all drum set to emulate the one shot option, that's it?
Thanks again for your time
Ok, I understand that. This HH things is a very particular case. But as far as I know, several sampler work this way for drums instruments, one shot and choke group. Do you think it would be possible to implement that in Hise? It’s certainly not a high priority but it could be a good feature…
Yes I think. I tried a lot of time. When « playback settings / playback » is « normal », it works great but when I switch to « one shot », it looks like the function noteOffByEventId doesn’t cut the sound.
Hi,
I'm back with another but related question. I would like to use the one shot option for my instrument but your script doesn't work anymore. Is there a way to make it work?
Thanks
Ludovic
Thanks for your answer and for your app by the way, it's great!
Do you think something like that could work?
var closeHiHatKey = 66;
var openHiHatKey = 70;
var evtList = [];
var evtListLength = 0;
var groupList = [];
groupList[0] = closeHiHatKey;
groupList[1] = openHiHatKey;
function onNoteOn()
{
for (var i = 0; i < groupList.length; i++) {
if (Message.getNoteNumber()==groupList[i]) {
evtListLength = evtList.length;
for (var j = evtListLength; j < 0; j--) {
Synth.noteOffByEventId(evtList[j]);
evtList.pop();
}
evtList.push(Message.getEventId());
}
}
}
function onNoteOff()
{
}
function onController()
{
}
function onTimer()
{
}
function onControl(number, value)
{
}
Hello,
I'd like to make a very basic drums vst with the ability to stop the open Hi-Hat sound when the the closed Hi-Hat is triggered. Is there a built-in solution or a script is needed?