Selecting Midi Key Range for different plugins
I would like to use a midi keyboard to play 2 different vst instruments at same time, but filtering the midi notes to a specific key range for each instrument, so I can use low notes for playing a bass and high notes for playing a piano.
I did several experiments but could not make it work properly. Find attached my last version (not working well). Any ideas?
Thanks in advance.
you do not want stripnote, you want to put the split between unpack 0 0 and pack 0 0
split point note 60 example :
if $i1 < 60 then $i1 $i2 else out2 $i1 $i2
that´s clever, SA... one pack object saved.
better would be to use changeable split point...
if $i1 < $i3 then $i1 $i2 else out2 $i1 $i2

Thanks Roman & Source Audio! I`ve implemented the "IF" solution to filter the midi messages, but not sure how to add the pitchbend info to the final message. See attached patch.
Source audio used midiparse Note off/on for "IF" object but I would need to filter the midievent message.
Im also interested to filter messages between 2 values, so let`s say notes within C0-B1 goes to plugin A and notes within D3-F4 goes to plugin B.
adding pitch bend to the note message?... there is only one set of CCs per channel.
p.s.:
hm, but that question is still legit when we think about note pressure, or if you for some reason want to split a controller.
i would control a second gate object from the note gate one =(the if object)

note that it will stop working when two notes overlap, say like when a chord is played.
alternatively you could repeat the procedure of the if object but apply it to the controller input instead of the note numbers:
if $i1<$i3 then $i4 else out2 $i4
and oh well, because we do not need lists we can suppress "if" again and go back to easier objects:
< 60 (note input)
+1
gate 2 (something else input)
the trigger method from the image should be the cheapest.
Hey Roman, I need to play chords. I mean that as i am using midiparse:NoteON/OFF for filtering through "IF", the pitchbend info is not included within the message sent to "IF". How can i filter midievent message (which includes pitch info)?
Have you checked my last patch?
in case i understand you right, you can´t.
if you have one pitchbend controller coming in, it will always affect all the notes which land on whatever target instrument(s). so when you split the controller data up onto to instruments according to their notenumber, it can only affect either side.
why dont you just send the pitchbend to both instruments?
You`re right. Sending it to both instruments will work for Pitch. Thanks