Interplay of electronic and magnetic phase modulation in a spin-polarised nanomagnet | Synapse