@@ -122,17 +122,17 @@ class W_emg extends Widget {
122122 // realtime
123123 fill (channelColors[colorIndex], 200 );
124124 noStroke ();
125- circle(2 * colOffset/ 8 , rowOffset / 2 , scaleFactor * emgSettingsValues. averageuV[ channel] );
125+ circle(2 * colOffset/ 8 , rowOffset / 2 , scaleFactor * emgSettingsValues. getAverageuV( channel) );
126126
127127 // circle for outer threshold
128128 noFill ();
129129 strokeWeight (1 );
130130 stroke (OPENBCI_DARKBLUE , 150 );
131- circle(2 * colOffset/ 8 , rowOffset / 2 , scaleFactor * emgSettingsValues. upperThreshold[ channel] );
131+ circle(2 * colOffset/ 8 , rowOffset / 2 , scaleFactor * emgSettingsValues. getUpperThreshold( channel) );
132132
133133 // circle for inner threshold
134134 stroke (OPENBCI_DARKBLUE , 150 );
135- circle(2 * colOffset/ 8 , rowOffset / 2 , scaleFactor * emgSettingsValues. lowerThreshold[ channel] );
135+ circle(2 * colOffset/ 8 , rowOffset / 2 , scaleFactor * emgSettingsValues. getLowerThreshold( channel) );
136136
137137 int _x = int (5 * colOffset/ 8 );
138138 int _y = int (2 * rowOffset / 8 );
@@ -142,7 +142,7 @@ class W_emg extends Widget {
142142 // draw normalized bar graph of uV w/ matching channel color
143143 noStroke ();
144144 fill (channelColors[colorIndex], 200 );
145- rect (_x, 3 * _y + 1 , _w, map (emgSettingsValues. outputNormalized[ channel] , 0 , 1 , 0 , (- 1 ) * int ((4 * rowOffset/ 8 ))));
145+ rect (_x, 3 * _y + 1 , _w, map (emgSettingsValues. getOutputNormalized( channel) , 0 , 1 , 0 , (- 1 ) * int ((4 * rowOffset/ 8 ))));
146146
147147 // draw background bar container for mapped uV value indication
148148 strokeWeight (1 );
0 commit comments