def move_note(inst, rule):
    """
    Moves individual notes from a src to a dest.
    :param inst:
    :param rule:
    :return:
    """
    for note_rule in rule['note_rules']:
        src_note = note_rule['old']
        dest_note = note_rule['new']

        for note in inst.notes:
            if note.pitch == src_note:
                note.pitch = dest_note

    return inst