The composer Giovanni Paisiello had written one with the same title , and another was composed in 1796 by Nicolas Isouard . An opera based on the play had previously been composed by Giovanni Paisiello , and another was composed in 1796 by Nicolas Isouard .