Modular flavor symmetry on a magnetized torus | Synapse