This document discusses EEG signal background and real-time processing. It begins by describing different methods of measuring brain activity, including EEG. It then discusses the source of EEG signals and how they are generated by synaptic activity and summed across electrodes. The document outlines controlling alpha oscillations and using them in brain-computer interfaces. Finally, it discusses real-time processing and closed-loop systems, including buffering data, connecting different recording devices, and creating online analysis pipelines to generate control signals.