Split code to re-use in a separate auxiliary function, getLogSpectrumReference().
Split code to re-use in a separate auxiliary function, getLogSpectrumReference().

MTG/essentia,MTG/essentia,MTG/essentia,MTG/essentia,MTG/essentia