wait() sometimes ignored?

{
The code below works fine on instruments I created. It also tested fine on Kontakt Retro machines and factory selection instruments.
The loop starts at 10 and counts down with a 1 second wait between each down count. Status bar shows the count down, 1 # per second.
On some, for example, all the Play Series Selection instruments, the loop takes 1/2 the time because it seems as if every other wait is ignored. You can see in the status that instead of 1 number appearing each second, it displays 2.
Anyone have any idea why the 1 second wait is not waiting sometimes in certain instruments?
Kontakt 6.6.1 on Windows 10
}
on init
declare $waittime
declare $steps
declare @steptrail
end on
on note
$steps := 10
$waittime := 1000000
@steptrail :=""
while($NOTE_HELD = 1)
while($steps>=0)
@steptrail :=@steptrail & " [" & $steps & "]"
message(@steptrail)
wait($waittime)
dec($steps)
end while
end while
end on
Categories
- All Categories
- 19 Welcome
- 1.5K Hangout
- 65 NI News
- 819 Tech Talks
- 4.2K Native Access
- 17K Komplete
- 2.1K Komplete General
- 4.4K Komplete Kontrol
- 5.9K Kontakt
- 1.6K Reaktor
- 390 Battery 4
- 871 Guitar Rig & FX
- 440 Massive X & Synths
- 1.3K Other Software & Hardware
- 5.9K Maschine
- 7.6K Traktor
- 7.6K 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