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

Remove verbose output from FilterNode

parent 0a38c98a
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment