Most likely this worked correctly previously with a different value of sizef.
I'd suggest to exclude sizef from the expression because note index only depends to variable frequency and base note frequency.
So the final expression should be something like the following
int note = (int)(12 * log(<Multiplicative_inverse_of_C-1_frequency> * (freqbins[(int)(mp.x / uiScale)])) / log(2));
Version
24.05
Plugin type
Native / JACK, AU, CLAP, LV2, VST2, VST3
OS
Windows
DAW / Host (if applicable)
No response
Description
Sassy Scope incorrectly calculates note from frequency. C#6 instead of A5 (~880 Hz) C#5 instead of A4 (~440 Hz) E3 instead of C3 (~130.8 Hz)
https://en.wikipedia.org/wiki/Piano_key_frequencies
The root cause is wrong calculation here https://github.com/DISTRHO/Cardinal/blob/7bee0220eb4da4c143d194192050b614d60b25b7/plugins/Cardinal/src/sassy/sassy_scope.cpp#L510
Most likely this worked correctly previously with a different value of
sizef
.I'd suggest to exclude
sizef
from the expression because note index only depends to variable frequency and base note frequency. So the final expression should be something like the followingint note = (int)(12 * log(<Multiplicative_inverse_of_C-1_frequency> * (freqbins[(int)(mp.x / uiScale)])) / log(2));