Arthurx wrote:maybe one can use the sustain pedal use to control switching
for example between pizcato violins and continious sound.
That can be done without scripting. The sfz format supports it. But normally, you want to use sustain pedal for sustain.
Many of the new mappings include an sfz that loads all of an instrument's articulations, and switches between them using a "Sound Variation" controller (CC #70). The sfz has "full" in the name. For example, the violin ensemble has an sfz named "violins_full.sfz".
If you send controller 70 with a value of 0, the normal sustained violin sound plays. If you send controller 70 with a value of 127, then the violins play legato (ie, a less pronounced attack on each note). If you send controller 70 with a value of 1, then the normal violins play with vibrato. A value of 126 plays legato, with vibrato. A value of 2 plays tremulo. And a value of 3 plays pizzicato.
"cellos_full.sfz" does the same for the cello ensemble. "violin_full.sfz" works for the solo violin. Etc.
So you can switch between all the violin articulations with "violins_full.sfz", and set some buttons/levers on your controller to send controller 70 at the above values.
I'm already ahead of you in the planning stages. The new updates are already mapped to make it easy to switch articulations on-the-fly without needing to deal with multiple sfz files, nor multiple midi channels. I just haven't gotten around to writing docs, and providing midi file examples. There are big plans for NBO.