Refactored code in get_pedal_by_score to config
Add pedal_config