def weed_out_short_notes(pairs, **kwargs):
    """Remove notes from pairs whose duration are smaller than the threshold"""
    duration_threshold = kwargs.get('duration_threshold', 0.25)
    return [(n, d) for (n, d) in pairs if d > duration_threshold]