def initialise_bar(bar_object, note_length, note_pitch):
    """This function adds a new note to an existing bar object.
    Keyword Arguments:
        bar_object: Our empty mingus bar object.
        note_length: A given note length in mingus syntax.
        note_pitch: A given note pitch in mingus syntax.
        """

    if note_pitch == "r":
        return bar_object.place_rest(note_length)

    # If note is note, we call function place_notes().
    else:
        return bar_object.place_notes(note_pitch, note_length)