An easy-to-use platform for EEG experimentation in the classroom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixed bug where NobleWinRT bindings were trying to load on Windows

+4 -3
+4 -3
app/utils/eeg/muse.js
··· 13 13 MUSE_CHANNELS, 14 14 PLOTTING_INTERVAL 15 15 } from "../../constants/constants"; 16 + import { MUSE_SERVICE, MuseClient, zipSamples } from "muse-js" 17 + import { from } from "rxjs" 16 18 17 - const bluetooth = require("bleat").webbluetooth; 18 - const { MUSE_SERVICE, MuseClient, zipSamples } = require("muse-js"); 19 - const { from } = require("rxjs"); 20 19 21 20 const INTER_SAMPLE_INTERVAL = -(1 / 256) * 1000; 22 21 22 + let bluetooth = {} 23 23 let client = {}; 24 24 if (process.platform != "win32" || release().split(".")[0] >= 10) { 25 25 // Just returns the client object from Muse JS 26 + bluetooth = require("bleat").webbluetooth; 26 27 client = new MuseClient(); 27 28 client.enableAux = true; 28 29 }