tightened the CV inputs gate consistency.

There are some evil "goto" statements in the loop to skip to a
consistent place in the loop when a gate happens.