From fbac961a8ff6e09228a2e76a10a478274e1e56d4 Mon Sep 17 00:00:00 2001 From: jsiegle <jsiegle@mit.edu> Date: Tue, 18 Jun 2013 21:58:31 -0400 Subject: [PATCH] Remove verbose output from FilterNode --- Source/Processors/Editors/FilterEditor.cpp | 25 +--------------------- Source/Processors/FilterNode.cpp | 11 +++++----- 2 files changed, 7 insertions(+), 29 deletions(-) diff --git a/Source/Processors/Editors/FilterEditor.cpp b/Source/Processors/Editors/FilterEditor.cpp index ae074a8d5..46d828348 100755 --- a/Source/Processors/Editors/FilterEditor.cpp +++ b/Source/Processors/Editors/FilterEditor.cpp @@ -65,36 +65,13 @@ FilterEditor::FilterEditor(GenericProcessor* parentNode, bool useDefaultParamete highCutValue->addListener(this); addAndMakeVisible(highCutValue); - //createRadioButtons(35, 50, 160, lowCutValues, "Low Cutoff"); - //createRadioButtons(35, 90, 160, highCutValues, "High Cutoff"); - - // for (int n = 0; n < getNumChildComponents(); n++) - // { - // Button* c = (Button*) getChildComponent(n); - - // if (c->isVisible()) - // c->addListener(this); - - // if (c->getRadioGroupId() != 999) - // c->setVisible(true); - // } - } FilterEditor::~FilterEditor() { - // deleteAllChildren(); + } -// void FilterEditor::sliderValueChanged (Slider* slider) -// { - -// if (slider == lowSlider) -// getAudioProcessor()->setParameter(0,slider->getValue()); -// else -// getAudioProcessor()->setParameter(1,slider->getValue()); - -// } void FilterEditor::labelTextChanged(Label* label) { diff --git a/Source/Processors/FilterNode.cpp b/Source/Processors/FilterNode.cpp index fac605e31..64ebf7e25 100755 --- a/Source/Processors/FilterNode.cpp +++ b/Source/Processors/FilterNode.cpp @@ -133,7 +133,7 @@ void FilterNode::updateSettings() for (int n = 0; n < getNumInputs(); n++) { - std::cout << "Creating filter number " << n << std::endl; + // std::cout << "Creating filter number " << n << std::endl; filters.add(new Dsp::SmoothedFilterDesign <Dsp::Butterworth::Design::BandPass // design type @@ -189,20 +189,20 @@ void FilterNode::setParameter(int parameterIndex, float newValue) if (newValue <= 0.01 || newValue >= 10000.0f) return; - std::cout << "Setting channel " << currentChannel;// << std::endl; + //std::cout << "Setting channel " << currentChannel;// << std::endl; if (parameterIndex == 0) { - std::cout << " low cut to " << newValue << std::endl; + // std::cout << " low cut to " << newValue << std::endl; lowCuts.set(currentChannel,newValue); } else { - std::cout << " high cut to " << newValue << std::endl; + //std::cout << " high cut to " << newValue << std::endl; highCuts.set(currentChannel,newValue); } - std::cout << newValue << std::endl; + //std::cout << newValue << std::endl; setFilterParameters(lowCuts[currentChannel], highCuts[currentChannel], @@ -229,6 +229,7 @@ void FilterNode::setParameter(int parameterIndex, float newValue) // parameters[1].setValue(newValue, currentChannel); // setFilterParameters(lowCuts[currentChannel], newValue, currentChannel); // } + editor->updateParameterButtons(parameterIndex); } -- GitLab