warning: ‘float pulse::frequency(float)’ defined but not used [-Wunused-function]