1. A method for detecting the pitch values of notes in a musical sound signal, comprising the steps of: identifying one or more voiced segments in the sound signal using an energy function of the sound signal; applying a gradient-based processing to said voiced segments for dividing each voiced segment into one or more notes; and deriving pitch values of the respective notes in the sound signal.