anchor.diff:      startX = parseInt($('#iframe').contents().find('#sel-start').css('left'));
       stopX = parseInt($('#iframe').contents().find('#sel-stop').css('left'));
       pitch_sel = pitch.filter(function(el, idx) { return idx >= startX && idx <= stopX; });
  -    avg_data = '';
  +    avg_data = 'Selection (ms): <span style="width: auto; color: blue">' + oSound.startPos + '</span>&ndash;<span style="width: auto; color: blue">' + oSound.stopPos + '</span>&nbsp;';
  +    var sum = function(a, b) { return a + b; };
  +    var min = function(a, b) { return Math.min(a, b); };
  +    var max = function(a, b) { return Math.max(a, b); };
  +    var avg = function(ary) { return (ary.reduce(sum) / ary.length).toFixed(2); };
  +    var stats = function(ary) { return [ ary.reduce(min), avg(ary), ary.reduce(max) ].join('<span style="width: auto; color: white">/</span>'); };
       if (pitch_sel.length > 0) {
  -      avg_data += 'Avg. pitch: <span style="width: auto; color: black">' + (pitch_sel.reduce(function(a, b) { return a + b; }) / pitch_sel.length).toFixed(2) + '</span>';
  +      avg_data += 'Pitch (min/avg/max): <span style="width: auto; color: black">' + stats(pitch_sel) + '</span>';
       }
       formants_sel = formants.filter(function(el, idx) { return idx >= startX && idx <= stopX; });
       if (formants_sel.length > 0) {
  
positive.code:   });
  });
  </script>
  <div id="mouse-avg"></div>
  </body>
  </html>
  
negative.code:    %><img id='small<%= i %>' src='<%= @conf['output_dir'] %>/<%= basename %>-wave.jpg' width='<%= width %>%' height='70' style='display:none'><%
     end
   %>
   <div style="background-color: #999; color: #fff; font-size: 80%; font-family: monaco,'VT-100','lucida console',courier,system;" id="mouse-avg"></div>
   <iframe id='iframe' height="237" width="100%" style="border: 0"></iframe>
  <script type="text/javascript">
  var scrollMode = false;
  