OpenBCI/OpenBCI_Processing — pull request #18 by chipaudette (2014-11-23 22:03:32+00:00)
Title: Adding ability to Notch 50Hz or 60Hz

Added code so that the user can enable a 50 Hz notch instead of a 60 Hz notch. There is no GUI button for it. Should we do one? Once the user does it once, it's not like they'll want to toggle back-and-forth. I mean, they're only going to have 60Hz interference or 50Hz. Should we really clutter the GUI with this extra button?

Until we decide to add GUI button, a user desiring 50Hz has to go into the code (EEG_Processing.pde), find the `defineFilters()` function, and change `if (true)` to `if (false)`...

//define filters...assumes sample rate of 250 Hz !!!!!
private void defineFilters() {
int n_filt = filtCoeff_bp.length;
double[] b, a, b2, a2;
String filt_txt, filt_txt2;
String short_txt, short_txt2;

//loop over all of the pre-defined filter types
for (int Ifilt=0;Ifilt