AudiodeviceOut and midiOut sync

Hello,
I am trying to send a pulse at the same time to a midiOut and an audiodeviceOut, so I inserted a delay of the amount of audio buffer before midiOut, but I still can’t get it perfectly in sync. Do you know if there is a better way to do this?
Here is the file :
audioMidiSync.toe (3.8 KB)
Thank you !

Its really dependant of what you do with your midi, wich connection (real midi cable, usb, network) and wich device, same with the sound. I just would put the delay slider on sample instead of second to obtain a more precise delay. The better synch will be your ear.

1 Like

Ok, thank you Jacques!