Musical depiction of words in text. Using the device of word painting, the music tries to imitate the emotion, action, or natural sounds as described in the text. For example, if the text describes a sad event, the music might be in a minorkey. Conversely, if the text is joyful, the music may be set in a majorkey. This device was used often in madrigals and other works of the Renaissance and Baroque.