Use Max MSP to continuously update Logic Pro's tempo

    May 07 2013 | 4:10 pm
    I have been struggling to make this work. Any help would be greatly appreciated.
    I have a swinging arm in an art piece. The arm is moving by use of a wiper motor. I'm using an Arduino to detect how fast the arm is revolving at any given time, sending that info in Max, to give Max a "tempo". I would like Max to continuously update Logic Pro so that the piece of midi music I composed will stay in sync with the revolving motor. I have everything set up except how to get Max to communicate with Logic Pro. I understand possibly using transport, in Max and using Tempo in Logic's Environment. But how to get the two to connect?
    Thanks in advance