A libretto is the text uised in, or intendit for, an extended muisical wirk such as an opera, operetta, masque, oratorio, cantata or muisical.