[week12] Brainwave listening

https://drive.google.com/file/d/0B57YUpLXmyszWlVkWnRjR1pwaEE/view?usp=sharing

OpenBCI_GUI.pde

uncommented “import ddf.minim.*;” in line 19

declared Minim, AudioOutput and Oscil objects

stop data streaming button can also stop sound

MenuList.pde

change into “public class MenuList extends controlP5.Controller { “ in line 18

to solve ambiguity of class Controller between controlP5 and Minim library

reference: https://processing.org/discourse/beta/num_1210518638.html

EEG_processing.pde

It calculates the average alpha and beta wave level from the first two channels (0,1). 

Then it maps the average alpha level to sine wave sound, and beta level to square wave sound.