Generalized number-phase lattice encoding of a bosonic mode for quantum error correction | Synapse