Draft: Add parameter to IOP models to adjust duotone frequency
new parameter "duotone_frequency" takes the first frequency of the duotone as an argument, e.g. "960" or "1920".
The code then adjusts the sine correction accordingly when doing the fit to find duocrossing, see duotime() function
Also, fixes a long standing bug where linear correction was applied the wrong way, making the curve less linear, not more.
This has been fixed, greatly reducing the error if the duotone sampling region is not well centered.
rates higher than 960 should not be used for IOPs running at an ADC rate on the first ADC of 65k or less
The code will try to make adjustments, while also issuing a warning.