Text this: Performing Periodic Tasks: On-Line Learning, Adaptation and Synchronization with External Signals