Skip to content

Commit 330f0ee

Browse files
committed
Add subprocessor channel filtering by sample rate to LfpDisplayEditor
1 parent 6af9210 commit 330f0ee

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Source/Plugins/LfpDisplayNodeAlpha/LfpDisplayCanvas.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ int LfpDisplayCanvas::getChannelSampleRate(int channel)
573573

574574
void LfpDisplayCanvas::setDrawableSampleRate(float samplerate)
575575
{
576-
std::cout << "setting the drawable sample rate in the canvas" << std::endl;
576+
// std::cout << "setting the drawable sample rate in the canvas" << std::endl;
577577
lfpDisplay->setDisplayedSampleRate(samplerate);
578578
}
579579

@@ -2167,7 +2167,6 @@ int LfpDisplay::getRange(DataChannel::DataChannelTypes type)
21672167

21682168
void LfpDisplay::setChannelHeight(int r, bool resetSingle)
21692169
{
2170-
std::cout << "setting channel height in LfpDisplay" << std::endl;
21712170
if (!getSingleChannelState()) cachedDisplayChannelHeight = r;
21722171

21732172
for (int i = 0; i < numChans; i++)
@@ -2246,7 +2245,7 @@ float LfpDisplay::getDisplayedSampleRate()
22462245
// already as a result of some other procedure
22472246
void LfpDisplay::setDisplayedSampleRate(float samplerate)
22482247
{
2249-
std::cout << "Setting the displayed samplerate for LfpDisplayCanvas to " << samplerate << std::endl;
2248+
// std::cout << "Setting the displayed samplerate for LfpDisplayCanvas to " << samplerate << std::endl;
22502249
drawableSampleRate = samplerate;
22512250
}
22522251

Source/Plugins/LfpDisplayNodeAlpha/LfpDisplayEditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ void LfpDisplayEditor::updateSubprocessorSelectorOptions()
124124

125125
if (sampleRateToSet >= 0)
126126
{
127+
subprocessorSelection->setSelectedId(sampleRateToSet + 1, dontSendNotification);
127128
setCanvasDrawableSampleRate(sampleRateToSet);
128129
}
129130
}
@@ -132,7 +133,6 @@ void LfpDisplayEditor::setCanvasDrawableSampleRate(int index)
132133
{
133134
if (canvas)
134135
{
135-
std::cout << "selected index = " << index << std::endl;
136136
((LfpDisplayCanvas*)canvas.get())->setDrawableSampleRate(*(inputSampleRates.begin() + (index)));
137137
}
138138
}

0 commit comments

Comments
 (0)