diff --git a/Source/Processors/Editors/FilterEditor.cpp b/Source/Processors/Editors/FilterEditor.cpp index ae074a8d52f2b29d5b7d04688845dae0e666cff1..46d828348c6b010cacbbdae976f671b6aa6ab506 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 fac605e313fdad922107a5eed5ee30e1cdc77354..64ebf7e2574343dcb3741a27d3c797da0a1e968c 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); }