def computeStrideLength(window_length, overlap_ratio):
    """
    Convert window length (units of samples) and window overlap ratio to stride
    length (number of samples between windows). This assumes uniform sampling.
    """
    return round(window_length * (1 - overlap_ratio))