> ?Having ? If (knob!=old_knob) ? as an outside conditional would avoid executing some code, but that doesn't buy more than a few microseconds.?
It also wouldn't work. ?If the knob is hard left or hard right, then we scan down or up by 10khz continuously once every 200ms, even if the knob stays put.