Lame encoder