essentia icon indicating copy to clipboard operation
essentia copied to clipboard

LogSpectrum - Make number of octaves configurable

Open xaviliz opened this issue 3 years ago • 5 comments

Hi guys,

I was using LogSpectrum lately. I realize the output spectrum it is limited to 7 or 8 octaves.

acumulated_spectrum__Duke   Jones_This Could Be (Chill Mix)

acumulated_spectrum_log_spectrum__Duke   Jones_This Could Be (Chill Mix)

Do you know if there is some way to extract the LogSpectrum for all frequencies? It would be nice to cover the whole spectrum without discarding HF content or to providing n_octaves as a parameter.

Thanks in advance

xaviliz avatar Sep 30 '21 10:09 xaviliz

This should be as easy as making _nOctave a parameter. Right now it is hardcoded. A pull-request is welcome.

dbogdanov avatar Sep 30 '21 13:09 dbogdanov

yes, that would be nice. I will do a PR next week

xaviliz avatar Sep 30 '21 16:09 xaviliz

Added as parameter and a unittest in https://github.com/MTG/essentia/pull/1203

xaviliz avatar Nov 17 '21 16:11 xaviliz

@xaviliz the PR https://github.com/MTG/essentia/pull/1203 was closed. Any updates on its future?

dbogdanov avatar Mar 18 '24 09:03 dbogdanov

Thanks! Not so much. It would be nice to assess it as spectral descriptor in different tasks.

xaviliz avatar Mar 18 '24 12:03 xaviliz