When I press record, the first note I play on a virtual instrument is almost always delayed, no matter how long I wait after pressing record. After stopping playback, I trigger a note on the keyboard and once again, the first note I play is either unheard or only partially heard. What is causing this and how do I get around it? I use a 2012 Mac mini quadcore server with 16gb ram, 1 internal 480gb ssd and 1 internal 1tb sshd. Almost all virtual instruments are being hosted in vienna ensemble pro 5 with no external slave computer. My buffer setting in Logic Pro x is 512. Any advice would be greatly appreciated.