How to send triggered notes (script) to different samplers simultaneously??? (Solved)
-
I have different scripted note triggers that are targeting 3 different samplers to play different stuff at the same time... So sequence no. 1 should only to sampler no.1, Sequence no. 2 should only be sent to sampler no.2, etc.
For the triggering, I am using the Synth.playNoteWithStartOffset, in which I can specify the midi channel for each of them. I simply set the offset at the end to 0 since I don't really need that.
In the samplers, I am using a Midi Channel Setter for each of them. But this doesn't seem to work. The midi still gets sent to all 3 of them, so all the samplers play all the sequences at the same time.... What a mess!!
Is there a way to achieve this?
Thanks for any advice on this!
u
-
@UrsBollhalder Ok. So this seems to be getting a habit here... Me answering my own questions... But the Midi Channel Filter processor seems to do the trick! In hope this might be helpful to others, I'll leave it here!
-
Add a separate script to each sampler.
-
@d-healey Hello, everyone. I'm also trying the same thing, I have three samplers, and when I play notes, it causes me to play the notes of all the samplers simultaneously. I tried using the sampler component in the script, but I'm not sure how to make the notes play a particular sampler when a button is pressed instead of all the samplers' notes. Can someone provide me a code snippet for that? It would be really helpful for me. I am new to HISE.