C++ frequency scaling library