A role for self-gravity at multiple length scales in the process of star formation