def getNeumes(seq, counter):
    """ Given a list of MEI note elements, return a string of the names of the neumes seperated by underscores.
    """
    neumes = str(seq[0].parent.parent.getAttribute('name').value)
    for k in range(1, counter):
        if seq[k].parent.parent.id != seq[k-1].parent.parent.id:
            neumes = neumes + '_' + str(seq[k].parent.parent.getAttribute('name').value)
    return neumes