Code to read EEG data through sound card or Arduino.