How do I get the A4 to record MIDI coming from Logic Pro?

I want to record my Logic Pro sequences into the A4 so I can ditch the DAW.

The A4 is receiving MIDI from Logic Pro fine, but I haven’t been able to get the A4 to record the MIDI it’s receiving.

What’s the trick?