Melody class generates strings.