def estimate_tuning(input_file):
print('<STR_LIT>', input_file)<EOL>y, sr = librosa.load(input_file)<EOL>print('<STR_LIT>')<EOL>y_harm = librosa.effects.harmonic(y)<EOL>print('<STR_LIT>')<EOL>tuning = librosa.estimate_tuning(y=y_harm, sr=sr)<EOL>print('<STR_LIT>'.format(<NUM_LIT:100> * tuning))<EOL>
Load an audio file and estimate tuning (in cents)