Make an Additional Slider Range Adjustment
We originally set the slider range to run from 1000 to 8000. Since the slider resolution was only 100, this led to frequency steps of 70 Hz.
If we change the slider min and max values to be 1000 to 1100, we will get steps of 1 Hz.
In the OnInitialUpdate function we change the values to be:
// Initialize the sample slider\edit controls
m_sampleMin = 1000.0;
m_sampleMax = 1100.0;
We recompile and run the Osc Application. The slider now allows frequency steps of 1 Hz and covers the range 1000 Hz to 1100 Hz.