if axis == -1 and not x.flags["F_CONTIGUOUS"]:
warnings.warn("librosa.util.frame called with axis={} "
"on a non-contiguous input. This will result in a copy.".format(axis))
x = np.asfortranarray(x)
elif axis == 0 and not x.flags["C_CONTIGUOUS"]:
warnings.warn("librosa.util.frame called with axis={} "
"on a non-contiguous input. This will result in a copy.".format(axis))
x = np.ascontiguousarray(x)