;; if chan is -1 set global reverb mix
(bind-func main_reverb
(lambda (input:i64 amt:float)
(cond ((= input 0) (dspmt.rmix (clamp amt 0.0:f 2.0:f)))
((= input 1) (dspmt.r1 (clamp amt 0.0:f 2.0:f)))
((= input 2) (dspmt.r2 (clamp amt 0.0:f 2.0:f)))
((= input 3) (dspmt.r3 (clamp amt 0.0:f 2.0:f)))
((= input 4) (dspmt.r4 (clamp amt 0.0:f 2.0:f)))
((= input 5) (dspmt.r5 (clamp amt 0.0:f 2.0:f))))
void))