A man wearing a mask plays music by the side of a road.
A person is by a road playing music.
It decided to invalidate the smallest possible portion of the statute, excising only the viewpoint-based proviso rather than the entire exception of which it is a part.