component limit1 "Limit the output signal to fall between min and max"; pin in float in; pin out float out; pin in float min_=-1e20; pin in float max_=1e20; function _; license "GPL"; author "Jeff Epler"; ;; FUNCTION(_) { double tmp = in; if(tmp < min_) tmp = min_; if(tmp > max_) tmp = max_; out = tmp; }