Tokøta from Mastering.com walks through Logic Pro's region inspector for quick, non-destructive pitch and time changes to a sample, no Flex Time required.
Transpose a region up to three octaves in either direction using the semitone field, then fine-tune with cents (plus or minus 50) to nudge a sample sharp or flat until it sits naturally in the mix.
For time stretching, hold Option and drag the bottom corner of the audio region to compress or expand it, useful when a sample's original tempo doesn't match your project.
A faster alternative: right-click the region, go to Tempo, and choose Apply Project Tempo to Region and Downbeat. Logic analyzes the audio and snaps it to your session tempo automatically.