def METHOD_NAME(self, x, nbytes):
    att = self.attdet.run(nbytes, x)
    pitch_present = self.ltpf.run(x)
    x = self.mdct.forward(x)[:self.ne]
    (e, nn_flag) = self.energy.compute(x)
    if nn_flag:
        self.ltpf.disable()
    bw = self.bwdet.run(e)
    x = self.sns.run(e, att, x)
    x = self.tns.run(x, bw, nn_flag, nbytes)
    (xq, lastnz, x) = self.spec.quantize(bw, nbytes,
        self.bwdet.get_nbits(), self.ltpf.get_nbits(),
        self.sns.get_nbits(), self.tns.get_nbits(), x)
    return pitch_present