Melody Detection in Polyphonic Audio by Rui Pedro Paiva