The variation in loudness and softness in music is called dynamics. Dynamic markings (piano, forte, crescendo, etc.) shape emotional impact, structure, and character of a composition.