Logic Pro's ability to detect beats by identifying transients in audio material allows you to create groove templates. You can then use these to take the feel of one piece of audio and apply to it to another audio (or MIDI) region.
Identify your Source Material
Although taking your groove from a preformed two- or four-bar loop is possible, it is also likely that your source material will be a full track. The first step in this process then, involves lining it up to the beat and bar lines in Logic Pro, and identifying a region of manageable length (two bars, for example). As in previous tutorials where this process was detailed in Pro Tools (see: Using Beat Detection for Groove Quantizing in Pro Tools) we shall use Stevie Wonder's Superstition as the example source material. There are two clear bars of drums at the beginning'"after a two beat count-in'"that are ideal for this purpose.
Note: you will need to retain regions for all audio that you use a source material for groove templates (you can have as many as you like) in the project that you intend to use them in. There are two ways to approach this:
The planned way: this involves preparing all the groove templates beforehand in a separate project. Keep the regions that relate to each groove template in a folder (pack them into a folder by choosing Folder > Pack Folder from the local Region menu), then save the Project as a template (File > Save as Template'