Text this: Generation of controllable magnetic stimuli