A new neurostimulator can listen to and stimulate electric current in the brain at the same time, potentially delivering fine-tuned treatments to patients with diseases like epilepsy and Parkinson's.