Shunted-Josephson-junction model. II. The nonautonomous case | Synapse