KSP Error

Hello i am receiving an error that say “change tune…. is not allowed in this callback type!” but according to the user manual, change tune can only be used in the on note on release callbacks…. HELP
on note
$key := %keynum[$EVENT_NOTE]
$bend := %tune[$EVENT_NOTE]
change_note ($EVENT_ID, $key)
change_tune ($EVENT_ID, $bend, 0)
end on
Comments
-
if you run this
on init declare %keynum[128] declare %tune[128] declare $key declare $bend end on on note $key := %keynum[$EVENT_NOTE] $bend := %tune[$EVENT_NOTE] change_note ($EVENT_ID, $key) change_tune ($EVENT_ID, $bend, 0) end on
you will see there are no errors.
0 -
I am also receiving this error when trying to upload kontakt script generated with Scala. Any help would be much appreciated.
Here's the script:
on init
declare %keynum[128]
declare %tune[128]
declare $bend
declare $key
%keynum[0] := 12
%tune[0] := -4292
end on
on note
$key := %keynum[$EVENT_NOTE]
$bend := %tune[$EVENT_NOTE]
change_note ($EVENT_ID, $key)
change_tune ($EVENT_ID, $bend, 0)
end on
0 -
the script above also runs with no errors.
Please use code block when writing code, it is painful to read as regular text.
0
Categories
- 10.8K All Categories
- 22 Welcome
- 449 Hangout
- 59 NI News
- 209 Tech Talks
- 1.1K Native Access
- 4.9K Komplete
- 624 Komplete General
- 1.1K Komplete Kontrol
- 1.9K Kontakt
- 489 Reaktor
- 156 Battery 4
- 271 Guitar Rig & FX
- 203 Massive X & Synths
- 212 Other Software & Hardware
- 2.3K Maschine
- 14 Sampling Room
- 2.6K Traktor
- 2.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