Thus all Israel brought up the ark of the covenant of Yahweh with shouting, and with sound of the cornet, and with trumpets, and with cymbals, sounding aloud with psalteries and harps.
So David gave him the lyrics, and these guys started singing and worshipping the Lord with this song or psalm.