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.

Tweaked eeg viewer for muse

+6 -5
+4 -3
app/components/ViewerComponent.tsx
··· 113 113 } 114 114 115 115 render() { 116 + const trueAsString = 'true' as any; 116 117 return ( 117 118 <webview 118 119 id="eegView" 119 120 src={`file://${__dirname}/viewer.html`} 120 - autosize 121 - nodeintegration 122 - plugins 121 + autosize={trueAsString} 122 + nodeintegration={trueAsString} 123 + plugins={trueAsString} 123 124 /> 124 125 ); 125 126 }
+1 -1
app/components/d3Classes/EEGViewer.js
··· 14 14 this.zoom = 1; 15 15 this.zoomScalar = 1.5; 16 16 this.canvas = d3.select(svg); 17 - this.margin = { top: 20, right: 10, bottom: 0, left: 20 }; 17 + this.margin = { top: 20, right: 10, bottom: 0, left: 30 }; 18 18 this.channelMaxs = new Array(this.channels.length).fill(100); 19 19 this.channelMins = new Array(this.channels.length).fill(-100); 20 20 this.lastTimestamp = new Date().getTime();
+1 -1
app/constants/constants.ts
··· 109 109 'AF4', 110 110 ]; 111 111 112 - export const MUSE_CHANNELS = ['TP9', 'AF7', 'AF8', 'TP10', 'AUX']; 112 + export const MUSE_CHANNELS = ['TP9', 'AF7', 'AF8', 'TP10']; 113 113 114 114 export const ZOOM_SCALAR = 1.5; 115 115 export const MUSE_SAMPLING_RATE = 256;