celemony melodyne:

http://www.celemony.com/cms/



absolutely stunning program.

different detection modes

- 'percussive'
- 'melodic'
- 'polyphonic'

there's a vst version as well. but that doesn't have the same functions. superb nonetheless.

melodyne is the 'industry standard', i'd say.

i used it to analyze bassline-patterns from tracks as well. esp. good when the bassline patterns are free, i.e. in a break without percussion clogging the detection up.