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
- 21 Welcome
- 746 Hangout
- 73 NI News
- 353 Tech Talks
- 1.6K Native Access
- 7.2K Komplete
- 936 Komplete General
- 1.7K Komplete Kontrol
- 2.6K Kontakt
- 656 Reaktor
- 229 Battery 4
- 394 Guitar Rig & FX
- 263 Massive X & Synths
- 390 Other Software & Hardware
- 3.1K Maschine
- 25 Sampling Room
- 3.8K Traktor
- 3.5K 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