{"size": 506, "ext": "js", "max_stars_repo_path": "static/weka.js", "max_stars_repo_name": "douglasbagnall/sonograms", "max_stars_repo_stars_event_min_datetime": "2015-07-18T15:09:50.000Z", "max_stars_repo_stars_event_max_datetime": "2015-07-18T15:09:50.000Z", "max_issues_repo_path": "static/weka.js", "max_issues_repo_name": "douglasbagnall/sonograms", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "static/weka.js", "max_forks_repo_name": "douglasbagnall/sonograms", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.6315789474, "max_line_length": 79, "alphanum_fraction": 0.5909090909}
var SPECTROGRAM_TOP = 2500;
var SPECTROGRAM_BOTTOM = 1150;

var THRESHOLD = 2;

function call_detector(spectrogram, lower_freq, upper_freq){
    var i, j;
    var winners = [];
    for (i = 0; i < KNOWN_CALLS.length; i += 2){
        winners.push({
                score: THRESHOLD,
                left_pix: KNOWN_CALLS[i] * spectrogram.windows_per_second,
                right_pix: KNOWN_CALLS[i + 1] * spectrogram.windows_per_second,
                selected: 1
        });
    }
    return winners;
}
