added support to change frequency based on sample rate