_Adjusting the Tempo to Fit Regions_
The +Options > Tempo Adjust Tempo using Region Length and Locators+ command adjusts the MIDI tempo, making the length of the selected Audio Region exactly match the distance between the locators (Cycle area). If you want to use this function to adapt the MIDI tempo to match the tempo of a drum loop, make sure that the drum loop is cycling smoothly (use the Sample Editor for this), and that the length of the Region corresponds exactly to a specific musical length of the audio material. As an example, to ensure that the Region measures exactly two bars when played back, set a Cycle to match the musical length of the Region (two bars, in this case), and select +Options > Tempo > Adjust Tempo using Region Length and Locators.+
-----
If this isn't what you had in mind, you need to perform Beat Mapping.
The Beat Mapping track helps by defining the bar positions of existing musical events (e.g. accents in Audio Regions) without changing their absolute time position, thereby preserving the audible result with its original timing.
This is achieved in two steps: First, you graphically connect musical events (Transients in Audio Regions, which correspond to the beginning of strongly accented notes) to the desired bar positions in the Beat Mapping track, by drawing lines between them with the mouse. Logic will automatically insert a tempo change event for each of these bar position locations, causing the note to be played at its previous absolute time position, despite its altered bar position.
Logic must first analyze Audio Regions in order to find rhythmically prominent spots, which can subsequently be linked to a bar position. During this analysis, Logic searches for transients: Positions where the audio recording becomes a lot louder—over a very short time span (a signal “spike”, in other words). This is typical of drum recordings, but the analysis of other instruments or complete mixes (depending on the musical context) can also produce usable results.
To detect transients, select the Audio Region and click the Analyze button in the Track List of the Beat Mapping track. Following analysis, the transients are displayed as small vertical lines at the bottom of the Beat Mapping track, just like the notes in MIDI Regions.