add formula to calculate freq from note