Use the Scripter MIDI plug-in in Logic Pro for iPad
The Scripter plug-in lets you load and use scripts to process or generate MIDI data in real time. A number of pre-built Scripter processors are included.
Parameters such as buttons, pop-up menus, and sliders are shown in the plug-in.
Note: Logic Pro for iPad Scripter provides compatibility with Logic Pro for Mac projects. You can load presets for this plug-in, but script editing is possible only in Logic Pro for Mac.

Load a pre-built Scripter processor
In Logic Pro, do one of the following:
Load a setting from the Browser.
Load a patch that contains a Scripter instance from the Browser.
Load a channel strip setting that contains a Scripter instance from the channel strip Settings pop-up menu or Browser.
Load a project that contains a Scripter plug-in with a running script.
You do not need to explicitly save an active script as a setting, patch, and so on. Saving the project retains the script and status of all Scripter plug-ins.
Download this guide: PDF