pub fn gate(buf: &ProcBuf, frame: usize) -> f32