Turn any part of a song into an M4R ringtone or text tone for your iPhone, then set it on the phone with GarageBand.
Settings
Good to know
Setting it with GarageBand on the iPhone
Touch and hold the GarageBand icon, tap Create New Audio Recording, then tap the Tracks button. Tap the instrument icon on the left, open the Loops Browser, tap Files, then "Browse items from the Files app" and find your M4R. Touch and hold it and drag it all the way to the left of the track, so there is no blank space before it. Tap the Navigation button, then My Songs. Tap More, Select, and select the song; tap Share, then Ringtone, name it and tap Export. When it is exported, tap "Use sound as": Standard Ringtone, Standard Text Tone, or "Assign to contact".
Choosing it later, or for one person
Your files stay on your device
How to make an iPhone ringtone
Open this page in Safari on the iPhone, or on a computer, and choose the song from Files. In Settings, iPhone is already chosen under "For" (one M4R serves as a ringtone or a text tone), then mark the part with "Suggest the chorus" or the handles on the timeline. Settings stops an iPhone ringtone at 30 seconds, the most GarageBand keeps. Press "Make ringtone" in the bottom bar and save the M4R file to Files on the iPhone.