analyze.py updated with process_melody