1

I use Librosa library to calculate chroma from audio signal.

chroma = librosa.feature.chroma_stft(y=audiosignal, sr=44100, window=window, n_fft=8192, hop_length=3276)

I would like to know how to find the pitch class value in Hz? because the Librosa library return chromagram value with shape=(n_chroma, t), but I want to get "frequency" and "time" information.

Thanks.

IT_Guy
  • 25
  • 7

1 Answers1

0

If you want Hz, maybe you're looking for librosa.feature.stft which returns a frequency in Hz instead of a pitch class.

Julia Meshcheryakova
  • 3,162
  • 3
  • 22
  • 42
Kyle
  • 28
  • 1
  • 3
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jan 08 '23 at 08:42