change_tune (KSP) question
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
Comments
-
You should probably try and use event marks. For example:
on note set_event_mark($EVENT_ID, $MARK_28) end on on controller change_tune(by_marks($MARK_28)... end on
0 -
It doesn't work either, but I had figure it out.
What happends is: some instruments during playing are creating new note events. After you play a note, there is some work in background and the same note receives some new event number. In case of "trombone" is old+1.
If it would be another one, you have to check all active events in CC event and write it on the output - it's in Kontakt doc, part of it (you need declare vars)
get_event_ids(%test_array) $a := 0 $note_count := 0 @events_no := "" while($a < $ARRAY_SIZE and %test_array[$a] # 0) if( $a = 0) {you can put change_tune here for changing all of active events} @text := @text & "found"& %test_array[$a] set_text($tekst, @text) end if inc($note_count) inc($a) end while
Then check out which event is "change_tune" sensitive, and that's it.
Thanks for trying helping me.
0 -
you can also change_tune($ALL_EVENTS) if that's simpler
0 -
For test, yes, but there is a lot of things going on (chords with change pitch of one note in it), so I had to track this particular event.
0
Categories
- All Categories
- 19 Welcome
- 1.3K Hangout
- 59 NI News
- 664 Tech Talks
- 3.5K Native Access
- 14.6K Komplete
- 1.7K Komplete General
- 3.8K Komplete Kontrol
- 5K Kontakt
- 1.5K Reaktor
- 345 Battery 4
- 760 Guitar Rig & FX
- 392 Massive X & Synths
- 1.1K Other Software & Hardware
- 4.9K Maschine
- 6.4K Traktor
- 6.4K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators