A method for cortex stimulation is disclosed which may include the steps of collecting electric signals by a control system from the cortex through an electrode array determining signals by a virtual neural field having a virtual array corresponding the electrode array, the virtual array receiving the collected signals as an input and the virtual neural field being adapted to control the frequency spectrum of neural activity in the cortical target, each stimulation signal being determined by a value of the virtual potential at each point of the virtual array and emitting the stimulation signals in the cortex through the electrode array.