Ported Dirac encoder