Skip to content
Snippets Groups Projects
Commit 5c6384bb authored by jsiegle's avatar jsiegle
Browse files

Changes to SpikeDisplayCanvas

parent 018580c3
Branches
Tags
No related merge requests found
......@@ -113,7 +113,8 @@ bool LfpDisplayNode::disable()
void LfpDisplayNode::setParameter (int parameterIndex, float newValue)
{
LfpDisplayEditor* ed = (LfpDisplayEditor*) getEditor();
ed->canvas->setParameter(parameterIndex, newValue);
if (ed->canvas != 0)
ed->canvas->setParameter(parameterIndex, newValue);
}
void LfpDisplayNode::process(AudioSampleBuffer &buffer, MidiBuffer &midiMessages, int& nSamples)
......
......@@ -137,7 +137,7 @@ bool SpikeDetector::addElectrode(int nChans)
float SpikeDetector::getDefaultThreshold()
{
return 0.14;
return 0.08;
}
StringArray SpikeDetector::getElectrodeNames()
......
......@@ -123,7 +123,7 @@ void SpikeDisplayCanvas::newOpenGLContextCreated()
activateAntiAliasing();
disablePointSmoothing();
glClearColor (0.667, 0.698, 0.918, 1.0);
glClearColor (0.667, 0.698, 0.718, 1.0);
resized();
//endAnimation();
}
......@@ -208,7 +208,7 @@ void SpikeDisplayCanvas::renderOpenGL()
//if(!plotsInitialized)
// initializeSpikePlots();
glClearColor (0.667, 0.698, 0.618, 1.0);
glClearColor (0.667, 0.698, 0.718, 1.0);
glClear(GL_COLOR_BUFFER_BIT); // clear buffers to preset values
// Get Spikes from the processor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment