To record a track in GarageBand, follow these steps: