def octave(first, last):
    #octave_bands = OCTAVE_CENTER_FREQUENCIES
    #low = np.where(octave_bands == first)[0]
    #high = np.where(octave_bands == last)[0]
    #return octave_bands[low: high+1]
    return acoustics.signal.OctaveBand(fstart=first, fstop=last, fraction=1).nominal
Generate a Numpy array for central frequencies of octave bands.
dataset/ETHPy150Open python-acoustics/python-acoustics/acoustics/bands.py/octave