def get_channels_no(sound_file):

    wr = wave.open(sound_file, 'r')
    nchannels, sampwidth, framerate, nframes, comptype, compname = wr.getparams()
    return nchannels
A simple shortcut for replacing text in files with sed.
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/first_peaks_method.py/get_channels_no--crossover with--dataset/ETHPy150Open Fizzadar/pyinfra/pyinfra/modules/files.py/replace