def get_playseq(data, length):
    """return data read from file as a list of pattern numbers

    also return highest pattern number
    """
    result = []
    highpatt = 0
    for bytechar in data[:length]:
        test = int(bytechar)
        result.append(test)
        if test > highpatt:
            highpatt = test
    return result, highpatt