from typing import Tuple


def get_accidental_adjustment(string: str, in_front: bool = True) -> Tuple[int, str]:
    """
    Get the accidental adjustment of the accidentals at the beginning of a string.

    Parameters
    ----------
    string : string
        The string whose accidentals we want. It should begin with some number of either 'b'
        or '#', and then anything else.

    in_front : boolean
        True if the accidentals come at the beginning of the string. False for the end.

    Returns
    -------
    adjustment : int
        -1 for each 'b' at the beginning of the string. +1 for each '#'.

    new_string : string
        The given string without the accidentals.
    """
    adjustment = 0

    if in_front:
        while string[0] == "b" and len(string) > 1:
            string = string[1:]
            adjustment -= 1

        while string[0] == "#":
            string = string[1:]
            adjustment += 1

    else:
        while string[-1] == "b" and len(string) > 1:
            string = string[:-1]
            adjustment -= 1

        while string[-1] == "#":
            string = string[:-1]
            adjustment += 1

    return adjustment, string