A signal bearing medium, comprising a sorting program for determining values of a readback signal envelope in order to determine head modulation activity of a head assembly in a disk drive facility wherein the sorting program, when executed by a processor, performs a method, comprising:
- receiving a frequency modulated readback signal representative of data read by a head assembly from a storage medium;
- and
- locating envelope samples within a window of the of the readback signal, each envelope sample comprising an Nth largest envelope sample and an Nth smallest envelope sample.