marl / crepe

CREPE: A Convolutional REpresentation for Pitch Estimation -- pre-trained model (ICASSP 2018)
https://marl.github.io/crepe/
MIT License
1.13k stars 160 forks source link

Where does 1997.3794084376191 come from? #93

Open scorio-dev opened 1 year ago

scorio-dev commented 1 year ago

What is the rationale behind the constant 1997.3794084376191 in function

to_local_average_cents.cents_mapping = (
                np.linspace(0, 7180, 360) + 1997.3794084376191)

For the first bin cents = 1997.3794084376191. The frequency for for the first bin is computed as frequency = 10 * 2 ** (cents / 1200) This gives 31.7 Hz. That is somwhere between B0 (30.86771 Hz) and C1 (32.70320 Hz)