maxrmorrison/pyfoal

Apply constant duration shift

Closed this issue · 1 comments

The original open-source implementations use a constant shift when loading the mlf file as follows

        if (SR == 11025):
            st = (float(lines[j].split()[0])/10000000.0 + 0.0125)*(11000.0/11025.0)
            en = (float(lines[j].split()[1])/10000000.0 + 0.0125)*(11000.0/11025.0)
        else:
            st = float(lines[j].split()[0])/10000000.0 + 0.0125
            en = float(lines[j].split()[1])/10000000.0 + 0.0125 

Fixed in b738f16