I remembered something I had to do on my Surface Pro 3 to fix audio glitches. I assume SP4 is the same. These devices have advanced power management schemes, and in the Control Panel -> Power Options, I could only see a "Balanced" scheme, and no "High Performance" option as I would usually use for audio applications. But the balanced scheme throttles the CPU. You could see the CPU frequency constantly changing in the Pianoteq -> Options -> Perf screen.
After some messing around, I found a way to force the SP3 into solid high performance using the "powercfg" command. You can try this by running (Windows + R) the following command: "powercfg /s SCHEME_MIN" (this means minimum power management, ie max power)
You should now see a "High Performance" option in the Power Options that should be selected as the current scheme. The CPU frequency in Pianoteq should be constant.
My performance factors:
Balanced = 23
High Performance = 39
Unfortunately, this power option doesn't show up if you select Balanced again. It is automatically hidden! The way round this is to duplicate the scheme as a custom one, but that involves a bunch more (ugly) powercfg commands. Try the above first, and let us know if it works.
Interestingly, it seems to be the CPU switching that caused the glitches more than the actual power level. With further experimentation, I was able to create a power scheme that throttled the CPU to a constant 50% power, and it worked fine. This could be useful if you're running on batteries and want to prolong the life.