Skip to content

Commit

Permalink
Tweaked eeg viewer for muse
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpigeon committed Sep 19, 2020
1 parent b934755 commit bcb2a4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions app/components/ViewerComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,14 @@ class ViewerComponent extends Component<Props, State> {
}

render() {
const trueAsString = 'true' as any;
return (
<webview
id="eegView"
src={`file://${__dirname}/viewer.html`}
autosize
nodeintegration
plugins
autosize={trueAsString}
nodeintegration={trueAsString}
plugins={trueAsString}
/>
);
}
Expand Down
2 changes: 1 addition & 1 deletion app/components/d3Classes/EEGViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class EEGViewer {
this.zoom = 1;
this.zoomScalar = 1.5;
this.canvas = d3.select(svg);
this.margin = { top: 20, right: 10, bottom: 0, left: 20 };
this.margin = { top: 20, right: 10, bottom: 0, left: 30 };
this.channelMaxs = new Array(this.channels.length).fill(100);
this.channelMins = new Array(this.channels.length).fill(-100);
this.lastTimestamp = new Date().getTime();
Expand Down
2 changes: 1 addition & 1 deletion app/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const EMOTIV_CHANNELS = [
'AF4',
];

export const MUSE_CHANNELS = ['TP9', 'AF7', 'AF8', 'TP10', 'AUX'];
export const MUSE_CHANNELS = ['TP9', 'AF7', 'AF8', 'TP10'];

export const ZOOM_SCALAR = 1.5;
export const MUSE_SAMPLING_RATE = 256;
Expand Down

0 comments on commit bcb2a4c

Please sign in to comment.