Syncing MIDI with LFO rate

I am totally new to using an analogue synth and would like to know how I sync my LFO rate with midi. I am using Logic.

Any help or directions to help would be very appreciated!

Send it the CC-number and value for LFOrate, and…on each pressing of a note, by Logic or in realtime, the LFO will be reset to it’s begin.
De Rocker