I have computed the mel spectrogram with librosa like that:
self.Spectrogram = librosa.feature.melspectrogram(y=self.RawSignal, sr=self.sampling_frequency,
n_mels=128, fmax=8000)
I need to obtain the corresponding value of a given frequency (say 4400 Hz) in the normalized scale [0,127], since n_mels=128
. I have seen that 103 is the corresponding value to 4400 Hz, but I would like a generic formula.
PS. it is not the conversion formula from Hz to mels what I am searching for.
Thanks in advance