Generalized Hamiltonian dynamics | Synapse