Adaptive Synchronization of Neural and Physical Oscillators