The simplest comparators look for incoming CV levels which cross a reference voltage level, and when the incoming voltage is either over or under the reference (depending on how you have it programmed), it can send either a gate or trigger.
Right.they're called comparators, and there's several types.