Code to read EEG data via a soundcard or Arduino