On the Use of Memory for Detecting Musical Notes in Polyphonic Piano Music