The technique of writing music to match the meaning of the text is called

• transposition.
• lining out.
• a capella.
• word painting.

Word painting.