Compound encoder