def int2chroma_str(x):
    """Converts an int to a binary Chroma encoding

    Parameters
    ----------
    x : int

    Returns
    -------
    chroma_str : str
        String representing a binary chroma
    """

    chroma_str = "{:b}".format(x)
    return "0"*(12-len(chroma_str))+chroma_str