I'm exploring what it would take to catch program-change MIDI messages and translating them into keyswitched note-on/off messages.
The K2 scripting manual I have doesn't seem to acknowledge that a program select message even exists. Is this indeed true from the perspective of Kontakt 2?
I'm guessing the alternative is to watch the midi note on/off sequence and if there's not a big break between off/on pairs, switch to the slur/portamento instrument, and otherwise switch to the "other" instrument. If we had a time machine (or a slight delay in all sound so that our script could respond to a midi stream after-the-fact), we could use the same technique to generate a switch to staccato sounds, too.