I have problem with change_tune events - it works with some Kontakt instruments (for example it works perfectly with Mark I Rhodes) and doesn't work with another (for example Orchestral - Trombone).
I did some investigation, and this function works with Trombone inside "on note" event, but doesn't work with "on controller" with proper note id.
The idea is to change the tunning after CC messages.
Here is a code without "CC information" just change a tune with any CC. We talk about single-note-playing 1 MIDI-voice polyphony.
on init
declare $n:=0
on note
$n:=$EVENT_ID
{ change_tune($n,20000,0) -THIS WOKRS PERFECTLY}
end on
on controller
change_tune($n,7*20000,0)
{this DOESN"T WORK AT ALL IN TROMBONE, but works perfectly in Mark I}
end on